09/28/04 EGS: Created.

IN_WSM_PRO_DPVW

(SQL View)
Index Back

SELECT B.BUSINESS_UNIT , B.WO_ID , B.WO_TASK_ID , B.RES_LN_NBR , C.BUSINESS_UNIT , C.PRODUCTION_ID , C.MG_OUTPUT_TYPE , C.MG_OUTPUT_ITEM , C.OP_SEQUENCE , C.MG_OUTPUT_QTY_CODE , D.HASH_KEY , '020' , C.BUSINESS_UNIT %Concat X.PEG_KEY_SEPARATOR %Concat C.PRODUCTION_ID , %TrimSubstr(C.MG_OUTPUT_ITEM, 1, 18) , C.MG_OUTPUT_SCHD_QTY - C.COMPLETED_QTY , BB.QTY_PEGGED , SUM(E.QTY_PEGGED) - BB.QTY_PEGGED , C.MG_OUTPUT_SCHD_QTY , 'Y' , SPH.NEW_END_DATE , SPH.NEW_END_TIME , %Dttm(SPH.NEW_END_DATE, SPH.NEW_END_TIME) , BB.HARD_PEG , BB.PEG_STATUS , BB.DT_TIMESTAMP FROM PS_WM_WO_MAT_HASH B , PS_IN_PEGGING BB , PS_SF_OUTPUT_LIST C , PS_SF_PRDNID_HEADR SPH , PS_SF_OUTPUT_HASH D , PS_IN_PEGGING E , PS_INSTALLATION_IN X WHERE B.HASH_KEY = BB.DEMAND_HASH AND BB.DMD_ORDER_TYPE = '110' AND D.HASH_KEY = BB.SUPPLY_HASH AND BB.SUP_ORDER_TYPE = '020' AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.PRODUCTION_ID = D.PRODUCTION_ID AND C.MG_OUTPUT_TYPE = D.MG_OUTPUT_TYPE AND C.MG_OUTPUT_ITEM = D.MG_OUTPUT_ITEM AND C.OP_SEQUENCE = D.OP_SEQUENCE AND C.MG_OUTPUT_QTY_CODE = D.MG_OUTPUT_QTY_CODE AND SPH.BUSINESS_UNIT = C.BUSINESS_UNIT AND SPH.PRODUCTION_ID = C.PRODUCTION_ID AND E.SUPPLY_HASH = BB.SUPPLY_HASH AND E.SUP_ORDER_TYPE = '020' GROUP BY B.BUSINESS_UNIT , B.WO_ID, B.WO_TASK_ID, B.RES_LN_NBR, C.BUSINESS_UNIT, C.PRODUCTION_ID, C.MG_OUTPUT_TYPE, C.MG_OUTPUT_ITEM, C.OP_SEQUENCE, C.MG_OUTPUT_QTY_CODE, D.HASH_KEY, X.PEG_KEY_SEPARATOR, C.MG_OUTPUT_SCHD_QTY, C.COMPLETED_QTY, BB.QTY_PEGGED, SPH.NEW_END_DATE, SPH.NEW_END_TIME, BB.HARD_PEG, BB.PEG_STATUS, BB.DT_TIMESTAMP

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_WO Character(5) VARCHAR2(5) NOT NULL Business Unit Work Order
2 WO_ID Character(10) VARCHAR2(10) NOT NULL Work Order Identification
3 WO_TASK_ID Number(5,0) INTEGER NOT NULL Task Number
4 RES_LN_NBR Number(5,0) INTEGER NOT NULL Resource Line No.
5 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
6 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
7 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
8 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.
9 OP_SEQUENCE Number(4,0) SMALLINT NOT NULL Operation Sequence
10 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
11 PEG_HASH Character(28) VARCHAR2(28) NOT NULL 07/29/04 EGS: Created
12 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
13 PEG_ORDER_KEY Character(30) VARCHAR2(30) NOT NULL Used to store the various Order Number formats in 1 field
14 PEG_LINE_KEY Character(30) VARCHAR2(30) NOT NULL Used to Store the concatenation of Line, Demand, Sched, Kit, etc in 1 field.
15 QTY_AVAILABLE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Available
16 QTY_PEGGED Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/16/04 EGS: Created.
17 BAD_PEG_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Bad Pegged Quantity
18 QTY_ORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/21/04 EGS: Created
19 PEG_FLAG Character(1) VARCHAR2(1) NOT NULL 06/17/04 EGS: Created.
20 SCHED_DATE Date(10) DATE Schedule Date
21 SCHED_TIME Time(15) TIMESTAMP Schedule Time
22 SCHED_DTTM DateTime(26) TIMESTAMP 08/16/01 JNW (CN#PL900-1.0): Added
23 HARD_PEG Character(1) VARCHAR2(1) NOT NULL 09/01/04 EGS: Created
24 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged
25 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp