IN_SDA_QRYMS_VW(SQL View) |
Index Back |
---|---|
Sup/Dmd Dbrd Mfg SupplyPrdn supply - used in the query for a pivot grid |
SELECT H.BUSINESS_UNIT , H.PRDN_AREA_CODE , O.MG_OUTPUT_ITEM , O.MG_OUTPUT_TYPE , H.PRODUCTION_ID , H.PROD_STATUS , H.PRODUCTION_TYPE , H.MA_PRDN_ID_FLG , H.BOM_CODE , H.RTG_CODE , H.REVISION , H.NEW_START_DATE , H.NEW_END_DATE , O.MG_OUTPUT_SCHD_QTY , O.COMPLETED_QTY , CASE WHEN O.MG_OUTPUT_TYPE = 'CP' THEN H.SCRAP_QTY ELSE 0 END , O.PEG_STATUS , M.INV_ITEM_GROUP , M.INV_PROD_FAM_CD , M.UNIT_MEASURE_STD FROM PS_SF_PRDNID_HEADR H , PS_SF_OUTPUT_LIST O , PS_MASTER_ITEM_TBL M , PS_SET_CNTRL_REC C WHERE H.PROD_STATUS < '40' AND O.BUSINESS_UNIT = H.BUSINESS_UNIT AND O.PRODUCTION_ID = H.PRODUCTION_ID AND O.MG_OUTPUT_TYPE <> 'WB' AND (H.EXPECTED_PRDN_QTY - H.COMPLETED_QTY - H.SCRAP_QTY) > 0 AND M.SETID = C.SETID AND C.SETCNTRLVALUE = O.BUSINESS_UNIT AND C.RECNAME = 'MASTER_ITEM_TBL' AND M.INV_ITEM_ID = O.MG_OUTPUT_ITEM |
# | 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 | MG_OUTPUT_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
10/22/98 (CN#EN800-6.0) LAJ...Created
Stores the output item type on a Bill of Materials. The type could represent either a co-product (primary or secondary) or a by-product (waste or recycle).
11/23/98 (CN#SF800-13) JNW added teardown xlat
CP=Primary CS=Co-Product RB=Recycle TD=Teardown WB=Waste |
5 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
6 | 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 |
7 | 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 |
8 | MA_PRDN_ID_FLG | Character(1) | VARCHAR2(1) NOT NULL |
10/18/99 SCC CN#IC800: Add label MAINTAIN_PID
N=No Y=Yes |
9 | BOM_CODE | Number(2,0) | SMALLINT NOT NULL | CN# EN800-3.0, anna 09/21 added new field to database |
10 | RTG_CODE | Number(2,0) | SMALLINT NOT NULL | Routing Code |
11 | REVISION | Character(4) | VARCHAR2(4) NOT NULL | 01/27/2000 RML Added "As of" label |
12 | NEW_START_DATE | Date(10) | DATE | Start Date |
13 | NEW_END_DATE | Date(10) | DATE | Due Date |
14 | EXPECTED_PRDN_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | Production End Qty |
15 | COMPLETED_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | Completed Qty |
16 | SCRAP_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | Scrapped Qty |
17 | PEG_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
07/21/04 EGS: Created
10=Open 20=Completed 30=Canceled 40=Not Pegged |
18 | INV_ITEM_GROUP | Character(15) | VARCHAR2(15) NOT NULL | Item Group |
19 | INV_PROD_FAM_CD | Character(10) | VARCHAR2(10) NOT NULL | Family |
20 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |