09/28/04 EGS: Created.

IN_WSP_PO_DP_VW

(SQL View)
Index Back

SELECT B.BUSINESS_UNIT , B.WO_ID , B.WO_TASK_ID , B.RES_LN_NBR , C.BUSINESS_UNIT , C.PO_ID , C.LINE_NBR , C.SCHED_NBR , C.DISTRIB_LINE_NUM , D.HASH_KEY , '010' , C.QTY_PO_STD_EXP , BB.QTY_PEGGED , SUM(E.QTY_PEGGED) - BB.QTY_PEGGED , C.QTY_PO_STD_EXP , BB.QTY_RECEIVED , BB.QTY_COMPLETE , BB.QTY_COMPLETE , 'Y' , S.DUE_DT , S.DUE_TIME , %Dttm(S.DUE_DT, S.DUE_TIME) , BB.HARD_PEG , BB.PEG_STATUS , BB.DT_TIMESTAMP FROM PS_WM_WO_PO_HASH B , PS_IN_PEGGING BB , PS_PO_LINE_DISTRIB C , PS_PO_LINE_SHIP S , PS_PO_HASH D , PS_IN_PEGGING E WHERE B.HASH_KEY = BB.DEMAND_HASH AND BB.DMD_ORDER_TYPE = '115' AND D.HASH_KEY = BB.SUPPLY_HASH AND BB.SUP_ORDER_TYPE = '010' AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.PO_ID = D.PO_ID AND C.LINE_NBR = D.LINE_NBR AND C.SCHED_NBR = D.SCHED_NBR AND C.DST_ACCT_TYPE = 'DST' AND C.DISTRIB_LINE_NUM = D.DISTRIB_LINE_NUM AND S.BUSINESS_UNIT = C.BUSINESS_UNIT AND S.PO_ID = C.PO_ID AND S.LINE_NBR = C.LINE_NBR AND S.SCHED_NBR = C.SCHED_NBR AND E.SUPPLY_HASH = BB.SUPPLY_HASH AND E.SUP_ORDER_TYPE = '010' AND ((E.PEG_STATUS < '30' AND BB.PEG_STATUS < '30') OR BB.PEG_STATUS = '30') GROUP BY B.BUSINESS_UNIT, B.WO_ID, B.WO_TASK_ID, B.RES_LN_NBR, C.BUSINESS_UNIT, C.PO_ID, C.LINE_NBR, C.SCHED_NBR, C.DISTRIB_LINE_NUM, D.HASH_KEY, C.QTY_PO_STD_EXP, BB.QTY_PEGGED, BB.QTY_RECEIVED, BB.QTY_COMPLETE, S.DUE_DT, S.DUE_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 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
7 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
8 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
9 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
10 PEG_HASH Character(28) VARCHAR2(28) NOT NULL 07/29/04 EGS: Created
11 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
12 QTY_AVAILABLE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Available
13 QTY_PEGGED Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/16/04 EGS: Created.
14 BAD_PEG_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Bad Pegged Quantity
15 QTY_ORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/21/04 EGS: Created
16 QTY_RECEIVED Number(16,4) DECIMAL(15,4) NOT NULL Received Qty
17 QTY_COMPLETE Number(16,4) DECIMAL(15,4) NOT NULL Quantity Complete
18 QTY_COMPLETE_PEG Number(16,4) DECIMAL(15,4) NOT NULL Quantity Complete
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