ORD_OPTSHP_VW

(SQL View)
Index Back

Optional Ship Demand

Optional kit components that have not been allocated

SELECT S.SHIP_FROM_BU , D.DEMAND_SOURCE , S.BUSINESS_UNIT , S.ORDER_NO , S.ORDER_INT_LINE_NO , S.SCHED_LINE_NBR , D.INV_ITEM_ID , D.DEMAND_LINE_NO , S.DOC_REFNUM FROM PS_IN_DEMAND D , PS_ORD_SCHEDULE S WHERE S.SHIP_FROM_BU = D.BUSINESS_UNIT AND D.DEMAND_SOURCE = 'OM' AND S.BUSINESS_UNIT = D.SOURCE_BUS_UNIT AND S.ORDER_NO = D.ORDER_NO AND S.ORDER_INT_LINE_NO = D.ORDER_INT_LINE_NO AND S.SCHED_LINE_NBR = D.SCHED_LINE_NBR AND S.SHIP_OVRD_QTY = 0 AND D.OPTIONAL_SHIP = 'Y' AND D.IN_FULFILL_STATE BETWEEN '20' AND '50' AND NOT EXISTS ( SELECT 'X' FROM PS_DEMAND_PHYS_INV DPI WHERE DPI.BUSINESS_UNIT = D.BUSINESS_UNIT AND DPI.DEMAND_SOURCE = D.DEMAND_SOURCE AND DPI.SOURCE_BUS_UNIT = D.SOURCE_BUS_UNIT AND DPI.ORDER_NO = D.ORDER_NO AND DPI.ORDER_INT_LINE_NO = D.ORDER_INT_LINE_NO AND DPI.SCHED_LINE_NBR = D.SCHED_LINE_NBR AND DPI.INV_ITEM_ID = D.INV_ITEM_ID AND DPI.DEMAND_LINE_NO = D.DEMAND_LINE_NO)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

Prompt Table: SP_BUIN_NONVW

2 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

Default Value: OPR_DEF_TBL_IN.DEMAND_SOURCE

3 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit

Default Value: OPR_DEF_TBL_IN.SOURCE_BUS_UNIT

Prompt Table: SP_BU_FS_NONVW

4 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
5 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
6 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
7 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID

Prompt Table: BU_ITM_INV_VW2

8 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
9 DOC_REFNUM Character(20) VARCHAR2(20) NOT NULL Counter sale document reference number