IN_SDA_QRYMD_VW(SQL View) |
Index Back |
---|---|
Sup/Dmd Dbrd Mfg DemandComponent demand - used in the query for pivot grid |
SELECT H.BUSINESS_UNIT , H.PRDN_AREA_CODE , H.INV_ITEM_ID , H.PRODUCTION_ID , H.PROD_STATUS , H.PRODUCTION_TYPE , H.MA_PRDN_ID_FLG , H.NEW_START_DATE , H.NEW_END_DATE , H.EXPECTED_PRDN_QTY , H.COMPLETED_QTY , H.SCRAP_QTY , C.COMPONENT_ID , C.OP_SEQUENCE , C.QTY_CODE , CASE WHEN O.WORK_CENTER_CODE IS NULL THEN ' ' ELSE O.WORK_CENTER_CODE END , CASE WHEN O.WORK_CENTER_CODE IS NULL THEN H.NEW_START_DATE ELSE O.OP_START_DT END , CASE WHEN O.WORK_CENTER_CODE IS NULL THEN H.NEW_START_TIME ELSE O.OP_START_TIME END , C.ISSUE_QTY , C.SOURCE_CODE , C.NON_OWN_FLAG , C.SF_QTY_PER , C.YIELD , C.CURR_SCHED_QTY , C.YIELD_QTY , C.PEND_CONSUME_QTY , C.PEND_LOSS_QTY , C.PICK_QTY , C.ISSUE_METHOD , M.INV_ITEM_GROUP , M.INV_PROD_FAM_CD , M.UNIT_MEASURE_STD FROM PS_SF_PRDNID_HEADR H JOIN PS_SF_COMP_LIST C ON C.BUSINESS_UNIT = H.BUSINESS_UNIT AND C.PRODUCTION_ID = H.PRODUCTION_ID LEFT OUTER JOIN PS_SF_OP_LIST O ON O.BUSINESS_UNIT = C.BUSINESS_UNIT AND O.PRODUCTION_ID = C.PRODUCTION_ID AND O.OP_SEQUENCE = C.OP_SEQUENCE JOIN PS_SET_CNTRL_REC SC ON SC.SETCNTRLVALUE = C.BUSINESS_UNIT AND SC.RECNAME = 'MASTER_ITEM_TBL' JOIN PS_MASTER_ITEM_TBL M ON M.SETID = SC.SETID AND M.INV_ITEM_ID = C.COMPONENT_ID WHERE H.PROD_STATUS < '40' AND C.SOURCE_CODE IN ('1', '2') AND (C.CURR_SCHED_QTY - C.ISSUE_QTY - C.YIELD_QTY) > 0 |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PRDN_AREA_CODE | Character(10) | VARCHAR2(10) NOT NULL | Production Area |
3 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
4 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
5 | PROD_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
Production Status
10=Entered 15=Firmed 20=Released 30=In Process 40=Pend Cmpl 50=Completed 60=Clsd/Labor 70=Clsd/Acctg 90=Canceled |
6 | PRODUCTION_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
JNW 11/1/98 (CN#SF800-13) activated teardown xlat
PR=Production RW=Rework SV=Service TD=Teardown |
7 | MA_PRDN_ID_FLG | Character(1) | VARCHAR2(1) NOT NULL |
10/18/99 SCC CN#IC800: Add label MAINTAIN_PID
N=No Y=Yes |
8 | NEW_START_DATE | Date(10) | DATE | Start Date |
9 | NEW_END_DATE | Date(10) | DATE | Due Date |
10 | EXPECTED_PRDN_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | Production End Qty |
11 | COMPLETED_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | Completed Qty |
12 | SCRAP_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | Scrapped Qty |
13 | COMPONENT_ID | Character(18) | VARCHAR2(18) NOT NULL |
04/10/00 (Internet Architecture) SCC: Uppercase label Id.
Prompt Table: MG_ITEM_APPR_VW |
14 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL |
Operation Sequence
Prompt Table: %EDITTABLE21 |
15 | QTY_CODE | Character(3) | VARCHAR2(3) NOT NULL |
Per
ASY=Assembly ORD=Order |
16 | WORK_CENTER_CODE | Character(10) | VARCHAR2(10) NOT NULL | Work Center |
17 | OP_START_DT | Date(10) | DATE | Operation Start Date |
18 | OP_START_TIME | Time(15) | TIMESTAMP | Operation's Start Time |
19 | ISSUE_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | 07/28/99 SCC CN#SF800-9.0: Added label id TO_ISSUE_QTY |
20 | SOURCE_CODE | Character(2) | VARCHAR2(2) NOT NULL |
8/5/97 lee - inactivated source code 4 - service
1=Make 2=Buy 3=Expense 4=Service 5=Floor Stock 6=Planning |
21 | NON_OWN_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
07/30/1998 WHS CN#ENH8.0: Created Translate Values 'Y'es and 'N'o
N=No Y=Yes Y/N Table Edit |
22 | SF_QTY_PER | Number(16,10) | DECIMAL(15,10) NOT NULL | 07/06/99 SCC CN# SF800-9.0: Added label Quantity |
23 | YIELD | Number(8,4) | DECIMAL(7,4) NOT NULL | Component Yield |
24 | CURR_SCHED_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | 07/28/99 SCC CN#SF800-9.0: Added label id TO_CURR_SCHED |
25 | YIELD_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | 10/12/99 SCC CN#SF800-9.0: Added label id TO_YIELD_QTY |
26 | PEND_CONSUME_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | 10/12/99 SCC CN#SF800-9.0: Added label id TO_PEND_CONSUME |
27 | PEND_LOSS_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | 10/12/99 SCC CN#SF800-9.0: Added label id TO_PEND_LOSS |
28 | PICK_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | Pending Pick Quantity |
29 | ISSUE_METHOD | Character(4) | VARCHAR2(4) NOT NULL |
Component Issue Method
COM=Use Comp. ISS=Issue KIT=Kit REPL=Replenish |
30 | INV_ITEM_GROUP | Character(15) | VARCHAR2(15) NOT NULL | Item Group |
31 | INV_PROD_FAM_CD | Character(10) | VARCHAR2(10) NOT NULL | Family |
32 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |