IN_CNTR_DEL_VW

(SQL View)
Index Back

Container delivery view

Date Initials Issue Description 020210 dms 1913661001 Remove IN_DLV_SHUOM_VW from view SQL.

SELECT DETL.BUSINESS_UNIT , DETL.DEMAND_SOURCE , DETL.SOURCE_BUS_UNIT , DETL.ORDER_NO , OUTR.OUTER_MOST_CNTR_ID , DETL.ORDER_INT_LINE_NO , DETL.SCHED_LINE_NBR , DETL.INV_ITEM_ID , DETL.DEMAND_LINE_NO , DETL.SHIP_CNTR_ID , D.DELIVERY_ID , CASE DETL.UNIT_MEASURE_VOL WHEN OUTR.UNIT_MEASURE_VOL THEN DETL.SHIPPING_VOLUME ELSE %Round(%DecMult(DETL.SHIPPING_VOLUME, (SELECT U.CONVERSION_RATE FROM PS_UNITS_CVT_TBL U WHERE U.UNIT_OF_MEASURE = DETL.UNIT_MEASURE_VOL AND U.UNIT_OF_MEASURE_TO = OUTR.UNIT_MEASURE_VOL)), 4) END , CASE DETL.UNIT_MEASURE_WT WHEN OUTR.UNIT_MEASURE_WT THEN DETL.GROSS_WEIGHT ELSE %Round(%DecMult(DETL.GROSS_WEIGHT, (SELECT U.CONVERSION_RATE FROM PS_UNITS_CVT_TBL U WHERE U.UNIT_OF_MEASURE = DETL.UNIT_MEASURE_WT AND U.UNIT_OF_MEASURE_TO = OUTR.UNIT_MEASURE_WT)), 4) END , %Round(%DecMult(%DecMult(OUTR.SHIP_HEIGHT, OUTR.SHIP_LENGTH), OUTR.SHIP_WIDTH), 4) , CASE OUTR.UNIT_MEASR_WT_USER WHEN ' ' THEN OUTR.GROSS_WEIGHT ELSE OUTR.GROSS_WEIGHT_USER END , 0 , CASE OUTR.UNIT_MEASR_WT_USER WHEN ' ' THEN (OUTR.GROSS_WEIGHT - OUTR.EMPTY_WEIGHT) ELSE (OUTR.GROSS_WEIGHT_USER - OUTR.EMPTY_WEIGHT) END , OUTR.EMPTY_WEIGHT , OUTR.UNIT_MEASURE_VOL , CASE OUTR.UNIT_MEASR_WT_USER WHEN ' ' THEN OUTR.UNIT_MEASURE_WT ELSE OUTR.UNIT_MEASR_WT_USER END , D.IN_FULFILL_STATE , D.QTY_REQUESTED , D.QTY_REQUESTED_BASE , D.QTY_BACKORDER , D.QTY_BACKORDER_BASE , D.QTY_ALLOCATED , D.QTY_ALLOC_BASE , D.QTY_PICKED , D.QTY_PICK_BASE , D.QTY_PICK_OVRIDE , D.QTY_PICK_OVR_BASE , CASE D.QTY_PROMISED_BASE WHEN 0 THEN 0 ELSE CASE D.UNIT_OF_MEASURE WHEN M.UNIT_MEASURE_STD THEN D.QTY_PROMISED_BASE ELSE %Round(%DecDiv(D.QTY_PROMISED_BASE, (SELECT U1.CONVERSION_RATE FROM PS_INV_ORDR_UOM_VW U1 WHERE U1.SETID = M.SETID AND U1.INV_ITEM_ID = DETL.INV_ITEM_ID AND U1.UNIT_OF_MEASURE = D.UNIT_OF_MEASURE)), 4) END END , D.QTY_PROMISED_BASE , D.QTY_SHIPPED , D.QTY_SHIPPED_CONV , D.LAST_QTY_SHIP , D.LAST_QTY_SHIP_BASE , CASE DETL.UNIT_OF_MEASURE WHEN D.UNIT_OF_MEASURE THEN DETL.QTY ELSE %Round(%DecMult(DETL.QTY, (SELECT U2.CONVERSION_RATE FROM PS_IN_SH_OR_UOM_VW U2 WHERE U2.SETID = M.SETID AND U2.INV_ITEM_ID = DETL.INV_ITEM_ID AND U2.FROM_UOM = DETL.UNIT_OF_MEASURE AND U2.TO_UOM = D.UNIT_OF_MEASURE)), 4) END , CASE DETL.UNIT_OF_MEASURE WHEN M.UNIT_MEASURE_STD THEN DETL.QTY ELSE %Round(%DecMult(DETL.QTY, (SELECT U3.CONVERSION_RATE FROM PS_IN_SH_OR_UOM_VW U3 WHERE U3.SETID = M.SETID AND U3.INV_ITEM_ID = DETL.INV_ITEM_ID AND U3.FROM_UOM = DETL.UNIT_OF_MEASURE AND U3.TO_UOM = M.UNIT_MEASURE_STD)), 4) END , CASE DETL.UNIT_OF_MEASURE WHEN (CASE D.IN_FULFILL_STATE WHEN '60' THEN D.UNIT_MEASURE_SHIP WHEN '70' THEN D.UNIT_MEASURE_SHIP ELSE CASE U.INV_UOM_TYPE WHEN 'SHIP' THEN D.UNIT_OF_MEASURE ELSE M.UNIT_MEASURE_STD END END) THEN DETL.QTY ELSE %Round(%DecMult(DETL.QTY, (SELECT U3.CONVERSION_RATE FROM PS_IN_SH_OR_UOM_VW U3 WHERE U3.SETID = M.SETID AND U3.INV_ITEM_ID = DETL.INV_ITEM_ID AND U3.FROM_UOM = DETL.UNIT_OF_MEASURE AND U3.TO_UOM = CASE D.IN_FULFILL_STATE WHEN '60' THEN D.UNIT_MEASURE_SHIP WHEN '70' THEN D.UNIT_MEASURE_SHIP ELSE CASE U.INV_UOM_TYPE WHEN 'SHIP' THEN D.UNIT_OF_MEASURE ELSE M.UNIT_MEASURE_STD END END)), 4) END , 0 , 0 , D.UNIT_OF_MEASURE , CASE D.IN_FULFILL_STATE WHEN '60' THEN D.UNIT_MEASURE_SHIP WHEN '70' THEN D.UNIT_MEASURE_SHIP ELSE CASE U.INV_UOM_TYPE WHEN 'SHIP' THEN D.UNIT_OF_MEASURE ELSE M.UNIT_MEASURE_STD END END , CASE D.IN_FULFILL_STATE WHEN '60' THEN 'N' WHEN '70' THEN 'N' ELSE CASE U.INV_UOM_TYPE WHEN 'SHIP' THEN 'N' ELSE 'Y' END END , 0 , DETL.QTY , 0 , D.IN_ZERO_PICKED_FLG , B.SOFT_ALLOC_FLG , I.SOFT_ALLOC_FLG , D.UNIT_OF_MEASURE , DETL.UNIT_OF_MEASURE , 0 , 0 , 0 , 0 , OUTR.FREIGHT_AMT , OUTR.FREIGHT_CURRNCY_CD , OUTR.FREIGHT_CURRNCY_CD , M.SETID FROM PS_SHIP_CNTR_HDR INNR JOIN PS_SHIP_CNTR_HDR OUTR ON OUTR.BUSINESS_UNIT = INNR.BUSINESS_UNIT AND OUTR.SHIP_CNTR_ID = INNR.OUTER_MOST_CNTR_ID JOIN PS_SHIP_CNTR_INV DETL ON %Join(COMMON_KEYS, SHIP_CNTR_HDR INNR, SHIP_CNTR_INV DETL) JOIN PS_IN_DEMAND D ON %Join(COMMON_KEYS, IN_DEMAND D, SHIP_CNTR_INV DETL) JOIN PS_MASTER_ITEM_TBL M ON M.INV_ITEM_ID = DETL.INV_ITEM_ID LEFT OUTER JOIN PS_DF_SETUP_IT_INV I ON I.BUSINESS_UNIT = D.BUSINESS_UNIT AND I.INV_ITEM_ID = D.INV_ITEM_ID JOIN PS_DF_SETUP_INV B ON B.BUSINESS_UNIT = D.BUSINESS_UNIT LEFT OUTER JOIN PS_UOM_TYPE_INV U ON U.SETID = M.SETID AND U.INV_ITEM_ID = D.INV_ITEM_ID AND U.UNIT_OF_MEASURE = D.UNIT_OF_MEASURE AND U.INV_UOM_TYPE = 'SHIP'

# 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 SHIP_CNTR_ID Character(20) VARCHAR2(20) NOT NULL Shipping Container ID
6 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
7 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
8 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
9 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
10 CHILD_SHIP_CNTR Character(20) VARCHAR2(20) NOT NULL Child Shipping Container ID
11 DELIVERY_ID Character(10) VARCHAR2(10) NOT NULL Delivery ID
12 CNTR_DTL_NET_VOL Signed Number(17,4) DECIMAL(15,4) NOT NULL Shipping Volume
13 CNTR_DTL_NET_WT Signed Number(17,4) DECIMAL(15,4) NOT NULL Shipping Weight
14 CNTR_GROSS_VOLUME Signed Number(17,4) DECIMAL(15,4) NOT NULL Packing Volume
15 CNTR_GROSS_WEIGHT Signed Number(17,4) DECIMAL(15,4) NOT NULL Shipping Weight
16 CNTR_NET_VOLUME Signed Number(17,4) DECIMAL(15,4) NOT NULL Total Volume
17 CNTR_NET_WEIGHT Signed Number(17,4) DECIMAL(15,4) NOT NULL Net Weight
18 EMPTY_WEIGHT Signed Number(17,4) DECIMAL(15,4) NOT NULL Empty Weight
19 CNTR_UOM_VOL Character(3) VARCHAR2(3) NOT NULL Container volume unit of measure
20 CNTR_UOM_WT Character(3) VARCHAR2(3) NOT NULL Weight UOM
21 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
22 QTY_REQUESTED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested
23 QTY_REQUESTED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested Base
24 QTY_BACKORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL Backorder Qty
25 QTY_BACKORDER_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Backorder Base Qty
26 QTY_ALLOCATED Signed Number(17,4) DECIMAL(15,4) NOT NULL Allocated quantity
27 QTY_ALLOC_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity allocation
28 QTY_PICKED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Picked
29 QTY_PICK_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Pick Base
30 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.
31 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.
32 QTY_PROMISED Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Promised
33 QTY_PROMISED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Promised Base
34 QTY_SHIPPED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
35 QTY_SHIPPED_CONV Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
36 LAST_QTY_SHIP Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Last Shipped
37 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'.
38 DELIV_QTY_PACK Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Packed
39 DELIV_QTY_PACK_BSE Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Packed Base
40 DELIV_QTY_PACK_SHP Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Packed Shipped
41 DELIV_WORK_QTY Number(16,4) DECIMAL(15,4) NOT NULL Delivery Working Quantity
42 DELIV_WK_QTY_SHIP Number(16,4) DECIMAL(15,4) NOT NULL Delivery Shipped Work Qty
43 DELIV_UOM_QTY Character(3) VARCHAR2(3) NOT NULL Delivery Order Qty UOM
44 DELIV_SHIP_UOM_QTY Character(3) VARCHAR2(3) NOT NULL Delivery Ship Qty UOM
45 USE_STD_UOM_FLAG Character(1) VARCHAR2(1) NOT NULL Use Standard UOM
46 DELIV_TOTWK_QTY Number(20,4) DECIMAL(19,4) NOT NULL Delivery Working Quantity
47 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity
48 TOTAL_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Total Quantity
49 IN_ZERO_PICKED_FLG Character(1) VARCHAR2(1) NOT NULL Zero Picked
50 SOFT_ALLOC_FLG Character(1) VARCHAR2(1) NOT NULL Soft Reserve
51 SOFT_ALLOC_FLG2 Character(1) VARCHAR2(1) NOT NULL Soft Reserve
52 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
53 PACK_UOM Character(3) VARCHAR2(3) NOT NULL Packing UOM
54 NET_UNIT_PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price
55 NET_UNIT_PRICE_BSE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price (base)
56 EXTENDED_NET_PRICE Signed Number(29,4) DECIMAL(27,4) NOT NULL Ext Net Amount
57 EXT_NET_PRC_BASE Signed Number(29,4) DECIMAL(27,4) NOT NULL Extended Net Price (base)
58 FREIGHT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Freight Amount
59 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
60 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
61 SETID_INV_ITEM Character(5) VARCHAR2(5) NOT NULL Inv Items SETID