09/28/04 EGS: Created.

IN_WSM_XSS_DPVW

(SQL View)
Index Back

SELECT B.BUSINESS_UNIT , B.WO_ID , B.WO_TASK_ID , B.RES_LN_NBR , C.BUSINESS_UNIT , C.DEMAND_SOURCE , C.SOURCE_BUS_UNIT , C.ORDER_NO , C.ORDER_INT_LINE_NO , C.SCHED_LINE_NBR , C.INV_ITEM_ID , C.DEMAND_LINE_NO , C.DESTIN_BU , D.HASH_KEY , '035' , C.LAST_QTY_SHIP_BASE , BB.QTY_PEGGED , SUM(E.QTY_PEGGED) - BB.QTY_PEGGED , C.LAST_QTY_SHIP_BASE , BB.QTY_RECEIVED , BB.QTY_COMPLETE , 'Y' , %DatePart(C.SCHED_ARRV_DTTM) , %TimePart(C.SCHED_ARRV_DTTM) , C.SCHED_ARRV_DTTM , BB.HARD_PEG , BB.PEG_STATUS , BB.DT_TIMESTAMP , 'Y' FROM PS_WM_WO_MAT_HASH B , PS_IN_PEGGING BB , PS_IN_DEMAND C , PS_IN_DEMAND_HASH D , PS_IN_PEGGING E 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 = '035' AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.DEMAND_SOURCE = D.DEMAND_SOURCE AND C.SOURCE_BUS_UNIT = D.SOURCE_BUS_UNIT AND C.ORDER_NO = D.ORDER_NO AND C.ORDER_INT_LINE_NO = D.ORDER_INT_LINE_NO AND C.SCHED_LINE_NBR = D.SCHED_LINE_NBR AND C.INV_ITEM_ID = D.INV_ITEM_ID AND C.DEMAND_LINE_NO = D.DEMAND_LINE_NO AND C.LAST_QTY_SHIP_BASE > 0 AND C.IN_FULFILL_STATE IN ('50', '60', '70') AND E.SUPPLY_HASH = BB.SUPPLY_HASH AND E.SUP_ORDER_TYPE = '035' 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.DEMAND_SOURCE, C.SOURCE_BUS_UNIT, C.ORDER_NO, C.ORDER_INT_LINE_NO, C.SCHED_LINE_NBR, C.INV_ITEM_ID, C.DEMAND_LINE_NO, C.DESTIN_BU, D.HASH_KEY, C.LAST_QTY_SHIP_BASE, BB.QTY_PEGGED, BB.QTY_RECEIVED, BB.QTY_COMPLETE, C.SCHED_ARRV_DTTM, 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 DEMAND_SOURCE Character(2) VARCHAR2(2) NOT NULL Demand Source
IN=Material Request
OM=Sales Order
PL=Planning Requisition
PO=Purchase Order
PR=Purchasing Requisition
RT=Material Return
SF=Production Request
WM=Work Order
7 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit
8 ORDER_NO Character(10) VARCHAR2(10) NOT NULL Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
9 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
10 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
11 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
12 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
13 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
14 PEG_HASH Character(28) VARCHAR2(28) NOT NULL 07/29/04 EGS: Created
15 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
16 QTY_AVAILABLE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Available
17 QTY_PEGGED Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/16/04 EGS: Created.
18 BAD_PEG_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Bad Pegged Quantity
19 QTY_ORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/21/04 EGS: Created
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 SCHED_TIME Time(15) TIMESTAMP Schedule Time
25 SCHED_DTTM DateTime(26) TIMESTAMP 08/16/01 JNW (CN#PL900-1.0): Added
26 HARD_PEG Character(1) VARCHAR2(1) NOT NULL 09/01/04 EGS: Created
27 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged
28 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
29 CHECK_PUTAWAY Character(1) VARCHAR2(1) NOT NULL Check For Putaway