SF_PURGE_CPM_VW

(SQL View)
Index Back

SF Purge Cfg Direct Prdn Order

03/18/03 PWF MG Archive Record

SELECT D.BUSINESS_UNIT , D.PRODUCTION_ID , D.ORDER_NO , D.ORDER_INT_LINE_NO FROM PS_CP_OPT_HDR A , PS_SF_PRDNID_HEADR D WHERE D.BUSINESS_UNIT=A.BUSINESS_UNIT_IN AND A.PRODUCTION_ID=D.PRODUCTION_ID AND A.ORDER_NO=D.ORDER_NO AND A.ORDER_INT_LINE_NO=D.ORDER_INT_LINE_NO AND A.CP_MODE = 'M' AND EXISTS ( SELECT 'X' FROM PS_CP_ORD_LINE B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.ORDER_NO = B.ORDER_NO AND B.CP_ORD_STATUS IN ('X','P','E') ) AND D.PROD_STATUS <> '90'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
3 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
4 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line