IN_XRS_NWO_LSVW

(SQL View)
Index Back

Supply date after Demand Date

11/04/04 SR/ISC: Created

SELECT ISH.BUSINESS_UNIT %Concat X.PEG_KEY_SEPARATOR %Concat ISH.ORDER_NO , ISH.DEMAND_SOURCE %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(ISH.ORDER_INT_LINE_NO) %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(ISH.SCHED_LINE_NBR) %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(ISH.DEMAND_LINE_NO) , %DatePart(IP.SUP_DTTM) , IDH.BUSINESS_UNIT %Concat X.PEG_KEY_SEPARATOR %Concat IDH.WO_ID , %NUMTOCHAR(IDH.WO_TASK_ID) %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(IDH.RES_LN_NBR) , %DatePart(IP.DMD_DTTM) , IP.QTY_PEGGED , PLD.DESTIN_BU , MST.UNIT_MEASURE_STD , IP.DMD_ORDER_TYPE , IP.SUP_ORDER_TYPE FROM PS_IN_PEGGING IP , PS_IN_DEMAND_HASH ISH , PS_WM_WO_PO_HASH IDH , PS_IN_DEMAND PLD , PS_INSTALLATION_IN X , PS_MASTER_ITEM_TBL MST , PS_BU_ITEMS_INV A , PS_SET_CNTRL_REC C WHERE IP.SUPPLY_HASH = ISH.HASH_KEY AND IP.SUP_ORDER_TYPE = '035' AND IP.DEMAND_HASH = IDH.HASH_KEY AND IP.DMD_ORDER_TYPE = '115' AND IP.PEG_STATUS = '10' AND IP.SUP_DTTM > IP.DMD_DTTM AND ISH.ORDER_NO = PLD.ORDER_NO AND ISH.BUSINESS_UNIT = PLD.BUSINESS_UNIT AND ISH.ORDER_INT_LINE_NO = PLD.ORDER_INT_LINE_NO AND ISH.SCHED_LINE_NBR = PLD.SCHED_LINE_NBR AND ISH.DEMAND_LINE_NO = PLD.DEMAND_LINE_NO AND ISH.INV_ITEM_ID = PLD.INV_ITEM_ID AND A.BUSINESS_UNIT = C.SETCNTRLVALUE AND C.RECNAME = 'MASTER_ITEM_TBL' AND MST.SETID = C.SETID AND A.INV_ITEM_ID = MST.INV_ITEM_ID AND PLD.DESTIN_BU = C.SETCNTRLVALUE

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SUP_ORDER_KEY Character(25) VARCHAR2(25) NOT NULL Used to store the various Order Number formats in 1 field
2 SUP_LINE_KEY Character(25) VARCHAR2(25) NOT NULL Used to Store the concatenation of Line, Demand, Sched, Kit, etc in 1 field.
3 DUE_DT Date(10) DATE Specifies the date that a transaction is due. It is a generic field used in multiple PeopleSoft applications including Receivables Payables and Purchasing. For example it represents the date that payment is due for a voucher or the date that a scheduled shipment is due to be received.
4 DMD_ORDER_KEY Character(25) VARCHAR2(25) NOT NULL Used to store the various Order Number formats in 1 field
5 DMD_LINE_KEY Character(25) VARCHAR2(25) NOT NULL Used to Store the concatenation of Line, Demand, Sched, Kit, etc in 1 field.
6 SCHED_DATE Date(10) DATE Schedule Date
7 QTY_PEGGED Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/16/04 EGS: Created.
8 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
9 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
10 DMD_ORDER_TYPE Character(4) VARCHAR2(4) NOT NULL Used by Pegging Maintenance/Inquiry
030=Transfer Demand
070=Stock Request
090=Sales Order
110=Work Order Inventory
115=WO Non-Inventory
900=Work Order
11 SUP_ORDER_TYPE Character(4) VARCHAR2(4) NOT NULL Used by Pegging Maintenance/Inquiry
010=Purchase
020=Production
035=Transfer Supply
100=Requisition