IN_REQ_CP_VW

(SQL View)
Index Back

Canceled Orders with Pegs

10/05/04 SR/ISC: Created

SELECT DISTINCT PH.BUSINESS_UNIT %Concat X.PEG_KEY_SEPARATOR %Concat PH.REQ_ID , %NUMTOCHAR(PH.LINE_NBR) %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(PH.SCHED_NBR) %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(PH.DISTRIB_LINE_NUM) , RD.BUSINESS_UNIT_IN , IP.SUP_ORDER_TYPE FROM PS_IN_PEGGING IP , PS_REQ_HASH PH , PS_REQ_LINE RL , PS_REQ_LN_DISTRIB RD , PS_INSTALLATION_IN X WHERE IP.SUPPLY_HASH = PH.HASH_KEY AND IP.SUP_ORDER_TYPE = '100' AND IP.PEG_STATUS = '10' AND RL.BUSINESS_UNIT = PH.BUSINESS_UNIT AND PH.BUSINESS_UNIT = RD.BUSINESS_UNIT AND RL.REQ_ID = PH.REQ_ID AND RL.REQ_ID = RD.REQ_ID AND PH.LINE_NBR = RL.LINE_NBR AND PH.LINE_NBR = RD.LINE_NBR AND PH.SCHED_NBR = RD.SCHED_NBR AND PH.DISTRIB_LINE_NUM = RD.DISTRIB_LINE_NUM AND ( RL.CURR_STATUS = 'X' OR RD.DISTRIB_LN_STATUS = 'X' )

# 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 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
4 SUP_ORDER_TYPE Character(4) VARCHAR2(4) NOT NULL Used by Pegging Maintenance/Inquiry
010=Purchase
020=Production
035=Transfer Supply
100=Requisition