IN_PRO_NCPS_VW(SQL View) |
Index Back |
---|---|
IN Peg MSR Search View06/21/04 EGS: Created |
SELECT A.BUSINESS_UNIT , A.PRODUCTION_ID , A.MG_OUTPUT_TYPE , A.MG_OUTPUT_ITEM , A.OP_SEQUENCE , A.MG_OUTPUT_QTY_CODE , A.BUSINESS_UNIT , '020' , A.MG_OUTPUT_ITEM , A.MG_OUTPUT_SCHD_QTY - A.COMPLETED_QTY , SUM(QTY_PEGGED) , SUM(IP.QTY_COMPLETE) , SUM(IP.QTY_RECEIVED) , A.MG_OUTPUT_SCHD_QTY , C.NEW_END_DATE , C.NEW_END_TIME , IP.SUP_DTTM , C.PRDN_AREA_CODE , C.PROD_STATUS , C.PRODUCTION_TYPE , D.HASH_KEY , A.PEG_STATUS FROM PS_SF_OUTPUT_LIST A , PS_SF_PRDNID_HEADR C , PS_SF_OUTPUT_HASH D , PS_IN_PEGGING IP WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PRODUCTION_ID = C.PRODUCTION_ID AND A.PEG_STATUS < '40' AND D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.PRODUCTION_ID = A.PRODUCTION_ID AND D.MG_OUTPUT_TYPE = A.MG_OUTPUT_TYPE AND D.MG_OUTPUT_ITEM = A.MG_OUTPUT_ITEM AND D.OP_SEQUENCE = A.OP_SEQUENCE AND D.MG_OUTPUT_QTY_CODE = A.MG_OUTPUT_QTY_CODE AND IP.SUPPLY_HASH = D.HASH_KEY AND IP.SUP_ORDER_TYPE = '020' AND IP.PEG_STATUS < '30' GROUP BY A.BUSINESS_UNIT, A.PRODUCTION_ID, A.MG_OUTPUT_TYPE, A.MG_OUTPUT_ITEM, A.OP_SEQUENCE, A.MG_OUTPUT_QTY_CODE, A.MG_OUTPUT_ITEM, A.MG_OUTPUT_SCHD_QTY, A.COMPLETED_QTY, C.NEW_END_DATE, C.NEW_END_TIME, IP.SUP_DTTM, C.PRDN_AREA_CODE, C.PROD_STATUS, C.PRODUCTION_TYPE, D.HASH_KEY, A.PEG_STATUS |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
3 | 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 |
4 | MG_OUTPUT_ITEM | Character(18) | VARCHAR2(18) NOT NULL | 04/10/00 (Internet Architecture) SCC: Uppercase label Id. 10/22/98 (CN#EN800-6.0) LAJ...Created Stores the output item number on a Bill of Materials. This item may be either a co-product or a by-product on the BOM. The output type field determines which one it represents. There should always be at least one output item on the BOM at all times; this output item is the same as the BOMs item id. |
5 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
6 | MG_OUTPUT_QTY_CODE | Character(3) | VARCHAR2(3) NOT NULL |
01/28/98 (CN#EN800-6.0) LAJ...Created
Stores the quantity code for an output item on a Bill of Materials. It was created with the same values as qty_code, but by separating these two fields, it allows greater flexibility in the future.
ASY=Assembly ORD=Order |
7 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit |
8 | PEG_ORDER_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Used by Pegging Maintenance/Inquiry
010=Purchase 020=Production 030=Transfer Demand 035=Transfer Supply 070=Stock Request 090=Sales Order 100=Requisition 110=WO Inventory 115=WO Non-Inventory |
9 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
10 | QTY_AVAILABLE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Available |
11 | QTY_PEGGED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 06/16/04 EGS: Created. |
12 | QTY_COMPLETE | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Complete |
13 | QTY_RECEIVED | Number(16,4) | DECIMAL(15,4) NOT NULL | Received Qty |
14 | QTY_ORDER | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 06/21/04 EGS: Created |
15 | SCHED_DATE | Date(10) | DATE | Schedule Date |
16 | SCHED_TIME | Time(15) | TIMESTAMP | Schedule Time |
17 | SCHED_DTTM | DateTime(26) | TIMESTAMP | 08/16/01 JNW (CN#PL900-1.0): Added |
18 | PRDN_AREA_CODE | Character(10) | VARCHAR2(10) NOT NULL | Production Area |
19 | 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 |
20 | 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 |
21 | PEG_HASH | Character(28) | VARCHAR2(28) NOT NULL | 07/29/04 EGS: Created |
22 | PEG_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
07/21/04 EGS: Created
10=Open 20=Completed 30=Canceled 40=Not Pegged |