ORD_DEM_PHYS_VW

(SQL View)
Index Back

Order Demand Lot/Serial

Date Init. Issue # Description 01/26/01 JJM R-LBENNE-FZ7BB Changed SQL by adding S.CANCEL_FLAG = 'N' restriction to match ORD_SHIPMENT_VW 05/19/01 dms 7423901 Replace SCHED_LINE_NO with SCHED_LINE_NBR to match keys of ORD_SHIPMENT_VW 05/13/04 dms F-KNANN-V59N4 Replace sched_line_no 05/25/04 twh F-KNANN-V59N4 Replace demand table references with IN_DEMAND

SELECT D.SOURCE_BUS_UNIT , D.ORDER_NO , D.ORDER_INT_LINE_NO , D.SCHED_LINE_NBR , D.INV_ITEM_ID , D.DEMAND_LINE_NO , D.SEQ_NBR , D.BUSINESS_UNIT , D.INV_LOT_ID , D.SERIAL_ID , D.CONTAINER_ID , %Round(%DecMult(QTY_BASE, %DecDiv(1, CONV.CONVERSION_RATE)), 4) , D.QTY_BASE FROM PS_DEMAND_PHYS_INV D , PS_IN_DEMAND S , PS_SET_CNTRL_REC SC , PS_INV_ITEM_UOM CONV WHERE %Join(COMMON_KEYS, DEMAND_PHYS_INV D, IN_DEMAND S) AND S.DEMAND_SOURCE = 'OM' AND S.IN_FULFILL_STATE IN ('60', '70') AND SC.SETCNTRLVALUE = S.BUSINESS_UNIT AND SC.RECNAME = 'MASTER_ITEM_TBL' AND CONV.SETID = SC.SETID AND CONV.INV_ITEM_ID = D.INV_ITEM_ID AND CONV.UNIT_OF_MEASURE = S.UNIT_MEASURE_SHIP

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus 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
4 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
5 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
6 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
7 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
8 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
9 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
10 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
11 CONTAINER_ID Character(10) VARCHAR2(10) NOT NULL Container ID
12 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity
13 QTY_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity