IN_DEL_DQTYNVW

(SQL View)
Index Back

Delivery quantities

This is a copy of IN_DEL_DQTY_VW with the exception that it does no t include depleted orders. This is done by adding a check that PRO CESS_DATE is Not Null.

SELECT D.BUSINESS_UNIT , D.DEMAND_SOURCE , 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.IN_FULFILL_STATE , D.QTY_REQUESTED , D.QTY_REQUESTED_BASE , D.QTY_BACKORDER , D.QTY_BACKORDER_BASE , CASE D.QTY_PROMISED_BASE WHEN 0 THEN 0 ELSE CASE D.UNIT_OF_MEASURE WHEN T.UNIT_MEASURE_STD THEN D.QTY_PROMISED_BASE ELSE %Round(%DecDiv(D.QTY_PROMISED_BASE, (SELECT U.CONVERSION_RATE FROM PS_INV_ORDR_UOM_VW U WHERE U.SETID = T.SETID AND U.INV_ITEM_ID = T.INV_ITEM_ID AND U.UNIT_OF_MEASURE = D.UNIT_OF_MEASURE)), 4) END END , D.QTY_PROMISED_BASE , D.QTY_ALLOCATED , D.QTY_ALLOC_BASE , D.QTY_PICK_OVRIDE , D.QTY_PICK_OVR_BASE , D.QTY_PICKED , D.QTY_PICK_BASE , CASE D.QTY_PACK_BASE WHEN 0 THEN 0 ELSE CASE D.UNIT_OF_MEASURE WHEN T.UNIT_MEASURE_STD THEN D.QTY_PACK_BASE ELSE %Round(%DecDiv(D.QTY_PACK_BASE, (SELECT U.CONVERSION_RATE FROM PS_INV_ORDR_UOM_VW U WHERE U.SETID = T.SETID AND U.INV_ITEM_ID = T.INV_ITEM_ID AND U.UNIT_OF_MEASURE = D.UNIT_OF_MEASURE)), 4) END END , D.QTY_PACK_BASE , CASE D.QTY_PACK_BASE WHEN 0 THEN 0 ELSE CASE S.UNIT_MEASURE_SHIP WHEN T.UNIT_MEASURE_STD THEN D.QTY_PACK_BASE ELSE %Round(%DecDiv(D.QTY_PACK_BASE, (SELECT U.CONVERSION_RATE FROM PS_INV_ORDR_UOM_VW U WHERE U.SETID = T.SETID AND U.INV_ITEM_ID = T.INV_ITEM_ID AND U.UNIT_OF_MEASURE = S.UNIT_MEASURE_SHIP)), 4) END END , D.IN_ZERO_PICKED_FLG , D.LAST_QTY_SHIP , D.LAST_QTY_SHIP_BASE , D.QTY_SHIPPED , D.QTY_SHIPPED_CONV , S.USE_STD_UOM_FLAG , T.SETID , D.UNIT_OF_MEASURE , S.UNIT_MEASURE_SHIP FROM PS_IN_DEMAND D , PS_SET_CNTRL_REC SR , PS_MASTER_ITEM_TBL T , PS_IN_DLV_SHUOMNVW S WHERE D.IN_PROCESS_DATE IS NOT NULL AND SR.SETCNTRLVALUE = D.BUSINESS_UNIT AND SR.RECNAME = 'MASTER_ITEM_TBL' AND SR.SETID = T.SETID AND T.INV_ITEM_ID = D.INV_ITEM_ID AND %Join(COMMON_KEYS, IN_DLV_SHUOMNVW S, IN_DEMAND D)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
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
3 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit
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
8 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
9 IN_FULFILL_STATE Character(2) VARCHAR2(2) NOT NULL Inventory Fulfillment State
10=Pending
20=Unfulfilled
30=Releasable
40=Released
50=Confirmed
60=Shipped
70=Depleted
90=Canceled
10 QTY_REQUESTED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested
11 QTY_REQUESTED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested Base
12 QTY_BACKORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL Backorder Qty
13 QTY_BACKORDER_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Backorder Base Qty
14 QTY_PROMISED Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Promised
15 QTY_PROMISED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Promised Base
16 QTY_ALLOCATED Signed Number(17,4) DECIMAL(15,4) NOT NULL Allocated quantity
17 QTY_ALLOC_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity allocation
18 QTY_PICK_OVRIDE Signed Number(17,4) DECIMAL(15,4) NOT NULL Field used to override the net requested quantity when printing the pick play for non-soft reservation items.
19 QTY_PICK_OVR_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Field used to override the net requested quantity in standard uom when printing the pick play for non-soft reservation items.
20 QTY_PICKED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Picked
21 QTY_PICK_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Pick Base
22 QTY_PACKED Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Packed
23 QTY_PACK_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity Packed
24 QTY_PACK_SHIP Signed Number(17,4) DECIMAL(15,4) NOT NULL Shipped Quantity Packed
25 IN_ZERO_PICKED_FLG Character(1) VARCHAR2(1) NOT NULL Zero Picked
26 LAST_QTY_SHIP Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Last Shipped
27 LAST_QTY_SHIP_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Used to save the last value of quantity shipped from the Shipping Issues Panel in Standard UOM at the DEMAND_PHYS_INV and SHIP_INF_INV level. Default to the quantity picked from the Express Issues Panel or for cases where auto ship equals 'Y'.
28 QTY_SHIPPED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
29 QTY_SHIPPED_CONV Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
30 USE_STD_UOM_FLAG Character(1) VARCHAR2(1) NOT NULL Use Standard UOM
31 SETID_INV_ITEM Character(5) VARCHAR2(5) NOT NULL Inv Items SETID
32 UNIT_MEASURE_ORD Character(3) VARCHAR2(3) NOT NULL Ordering UOM
33 UNIT_MEASURE_SHIP Character(3) VARCHAR2(3) NOT NULL Shipment Unit of Measure