09/28/04 EGS: Created.

IN_XRS_WSMC_DVW

(SQL View)
Index Back

SELECT B.BUSINESS_UNIT , B.DEMAND_SOURCE , B.ORDER_NO , B.ORDER_INT_LINE_NO , B.SCHED_LINE_NBR , B.DEMAND_LINE_NO , D.BUSINESS_UNIT , D.WO_ID , D.WO_TASK_ID , D.RES_LN_NBR , C.BUSINESS_UNIT_IN , C.INV_ITEM_ID , D.HASH_KEY , '110' , ID.QTY_REQUESTED_BASE - ID.QTY_SHIP_BASE , BB.QTY_PEGGED , SUM(E.QTY_PEGGED) - BB.QTY_PEGGED , ID.QTY_REQUESTED_BASE , ID.QTY_ALLOC_BASE + ID.QTY_SHIP_BASE , BB.QTY_RECEIVED , BB.QTY_COMPLETE , 'Y' , C.WO_MAT_NEED_DT , BB.HARD_PEG , BB.PEG_STATUS , BB.DT_TIMESTAMP , 999 FROM PS_IN_DEMAND_HASH B , PS_IN_PEGGING BB , PS_WM_WO_SCHED_MAT C , PS_WM_WO_MAT_HASH D , PS_IN_DEMAND ID , PS_IN_PEGGING E WHERE B.HASH_KEY = BB.SUPPLY_HASH AND BB.SUP_ORDER_TYPE = '035' AND D.HASH_KEY = BB.DEMAND_HASH AND BB.DMD_ORDER_TYPE = '110' AND D.BUSINESS_UNIT = C.BUSINESS_UNIT AND D.WO_ID = C.WO_ID AND D.WO_TASK_ID = C.WO_TASK_ID AND D.RES_LN_NBR = C.RES_LN_NBR AND C.WO_COMMIT_FLAG = '3' AND ID.BUSINESS_UNIT = C.BUSINESS_UNIT_IN AND ID.DEMAND_SOURCE = 'WM' AND ID.SOURCE_BUS_UNIT = C.BUSINESS_UNIT AND ID.ORDER_NO = C.WO_ID AND ID.ORDER_INT_LINE_NO = C.WO_TASK_ID AND ID.SCHED_LINE_NBR = C.RES_LN_NBR AND ID.INV_ITEM_ID = C.INV_ITEM_ID AND ID.DEMAND_LINE_NO = 1 AND E.DEMAND_HASH = BB.DEMAND_HASH AND E.DMD_ORDER_TYPE = '110' AND (E.SUP_ORDER_TYPE <> '100' OR E.PEG_STATUS <> '20') AND ((E.PEG_STATUS < '30' AND BB.PEG_STATUS < '30') OR BB.PEG_STATUS = '30') GROUP BY B.BUSINESS_UNIT, B.DEMAND_SOURCE, B.ORDER_NO, B.ORDER_INT_LINE_NO, B.SCHED_LINE_NBR, B.DEMAND_LINE_NO, D.BUSINESS_UNIT, D.WO_ID, D.WO_TASK_ID, D.RES_LN_NBR, C.BUSINESS_UNIT_IN, C.INV_ITEM_ID, D.HASH_KEY, ID.QTY_REQUESTED_BASE, ID.QTY_ALLOC_BASE, ID.QTY_SHIP_BASE, BB.QTY_PEGGED, BB.QTY_RECEIVED, BB.QTY_COMPLETE, C.WO_MAT_NEED_DT, BB.HARD_PEG, BB.PEG_STATUS, BB.DT_TIMESTAMP

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_SUP Character(5) VARCHAR2(5) NOT NULL 07/29/04 EGS: Created
2 DEST_DMD_SRC Character(2) VARCHAR2(2) NOT NULL 07/29/04 EGS: Created
3 DEST_ORDER_NO Character(10) VARCHAR2(10) NOT NULL 07/29/04 EGS: Created
4 DEST_INT_LINE_NO Number(5,0) INTEGER NOT NULL 07/29/04 EGS: Created
5 DEST_SCHED_NBR Number(6,0) INTEGER NOT NULL 07/29/04 EGS: Created
6 DEST_DMD_LINE Number(4,0) SMALLINT NOT NULL 07/29/04 EGS: Create
7 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
8 WO_ID Character(10) VARCHAR2(10) NOT NULL Work Order Identification
9 WO_TASK_ID Number(5,0) INTEGER NOT NULL Task Number
10 RES_LN_NBR Number(5,0) INTEGER NOT NULL Resource Line No.
11 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
12 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
13 PEG_HASH Character(28) VARCHAR2(28) NOT NULL 07/29/04 EGS: Created
14 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
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 QTY_COMPLETE Number(16,4) DECIMAL(15,4) NOT NULL Quantity Complete
20 QTY_RECEIVED Number(16,4) DECIMAL(15,4) NOT NULL Received Qty
21 QTY_COMPLETE_PEG Number(16,4) DECIMAL(15,4) NOT NULL Quantity Complete
22 PEG_FLAG Character(1) VARCHAR2(1) NOT NULL 06/17/04 EGS: Created.
23 SCHED_DATE Date(10) DATE Schedule Date
24 HARD_PEG Character(1) VARCHAR2(1) NOT NULL 09/01/04 EGS: Created
25 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged
26 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
27 PRIORITY_NBR Number(3,0) SMALLINT NOT NULL Priority