IN_XRS_LINE_CVW

(SQL View)
Index Back

MSR Order for Pegging

05/30/06 EGS: Created

SELECT DISTINCT A.BUSINESS_UNIT , A.ORDER_NO , A.ORDER_INT_LINE_NO FROM PS_IN_DEMAND A , PS_BU_ITEMS_INV B WHERE A.DEMAND_SOURCE IN ('IN', 'PL', 'PR') AND A.INTERUNIT_FLG = 'Y' AND (EXISTS ( SELECT 'X' FROM PS_DF_SETUP_IT_INV WHERE BUSINESS_UNIT = A.BUSINESS_UNIT AND INV_ITEM_ID = A.INV_ITEM_ID AND SOFT_ALLOC_FLG = 'Y') OR (NOT EXISTS ( SELECT 'X' FROM PS_DF_SETUP_IT_INV WHERE BUSINESS_UNIT = A.BUSINESS_UNIT AND INV_ITEM_ID = A.INV_ITEM_ID AND SOFT_ALLOC_FLG = 'Y') AND EXISTS ( SELECT 'X' FROM PS_DF_SETUP_INV WHERE BUSINESS_UNIT = A.BUSINESS_UNIT AND SOFT_ALLOC_FLG = 'Y'))) AND (A.APPROVED_FLAG = 'Y' OR (A.APPROVED_FLAG = 'N' AND PEG_STATUS = '10')) AND (IN_FULFILL_STATE IN ('20', '30', '40', '50') OR PEG_STATUS IN ('10', '20')) AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INV_ITEM_ID = B.INV_ITEM_ID

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