DP_DDHUPD_IN_VW

(SQL View)
Index Back

extract inventory/shipmnt data

extract inventory/shipping data from SHIP_INF_INV for IN,PL,PR,RT demand source transactions. join to DDH index tablels to determine new/updated transaction

SELECT PS_DP_DDH_INV_VW.BUSINESS_UNIT , PS_DP_DDH_INV_VW.DATE_LAST_MAINT , PS_DP_DDH_INV_VW.NET_UNIT_PRICE , PS_DP_DDH_INV_VW.TRANSFER_COST , PS_DP_DDH_INV_VW.CURRENCY_CD , PS_DP_DDH_INV_VW.DEMAND_LINE_NO , PS_DP_DDH_INV_VW.DEMAND_SOURCE , PS_DP_DDH_INV_VW.INTERUNIT_FLG , PS_DP_DDH_INV_VW.SHIP_DATE , PS_DP_DDH_INV_VW.SHIP_DTTM , PS_DP_DDH_INV_VW.QTY_REQUESTED , PS_DP_DDH_INV_VW.QTY_REQUESTED_BASE , PS_DP_DDH_INV_VW.QTY_BACKORDER , PS_DP_DDH_INV_VW.QTY_BACKORDER_BASE , PS_DP_DDH_INV_VW.INV_ITEM_ID , PS_DP_DDH_INV_VW.ORDER_INT_LINE_NO , PS_DP_DDH_INV_VW.ORDER_NO , PS_DP_DDH_INV_VW.PRODUCT_ID , PS_DP_DDH_INV_VW.SCHED_LINE_NBR , PS_DP_DDH_INV_VW.SCHED_DATE , PS_DP_DDH_INV_VW.SCHED_DTTM , PS_DP_DDH_INV_VW.SHIP_TO_CUST_ID , PS_DP_DDH_INV_VW.SOURCE_BUS_UNIT , PS_DP_DDH_INV_VW.BUSINESS_UNIT_BI , PS_DP_DDH_INV_VW.UNIT_MEASURE_SHIP , PS_DP_DDH_INV_VW.UNIT_OF_MEASURE , PS_DP_DDH_INV_VW.SETID , PS_DP_DDH_INV_VW.DT_TIMESTAMP , %Dttm(PS_DP_DDH_INV_VW.DATE_LAST_MAINT, %TimeIn('00.00.00.000000')) , PS_DP_DDH_INV_VW.DT_TIMESTAMP , PS_DP_DDH_INV_VW.FORECAST_ITEM_FLAG , PS_DP_DDH_INV_VW.FORECASTER , PS_DP_DMDINDEX_IN.DP_DDH_ID , PS_DP_DDH_INV_VW.IN_FULFILL_STATE , PS_DP_DDH_INV_VW.SOURCE_CODE FROM PS_DP_DDH_INV_VW , PS_DP_DMDINDEX_IN WHERE PS_DP_DDH_INV_VW.BUSINESS_UNIT = PS_DP_DMDINDEX_IN.BUSINESS_UNIT(+) AND PS_DP_DDH_INV_VW.SOURCE_BUS_UNIT = PS_DP_DMDINDEX_IN.SOURCE_BUS_UNIT(+) AND PS_DP_DDH_INV_VW.ORDER_NO = PS_DP_DMDINDEX_IN.ORDER_NO(+) AND PS_DP_DDH_INV_VW.ORDER_INT_LINE_NO = PS_DP_DMDINDEX_IN.ORDER_INT_LINE_NO(+) AND PS_DP_DDH_INV_VW.SCHED_LINE_NBR = PS_DP_DMDINDEX_IN.SCHED_LINE_NBR(+) AND PS_DP_DDH_INV_VW.INV_ITEM_ID = PS_DP_DMDINDEX_IN.INV_ITEM_ID(+) AND PS_DP_DDH_INV_VW.DEMAND_LINE_NO = PS_DP_DMDINDEX_IN.DEMAND_LINE_NO(+)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 DATE_LAST_MAINT Date(10) DATE Date Last Maintained
3 NET_UNIT_PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price
4 TRANSFER_COST Signed Number(16,4) DECIMAL(14,4) NOT NULL Transfer Price
5 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
6 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
7 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
8 INTERUNIT_FLG Character(1) VARCHAR2(1) NOT NULL InterUnit
N=No
Y=Yes
9 SHIP_DATE Date(10) DATE Item Shipping Date
10 SHIP_DTTM DateTime(26) TIMESTAMP Ship Date/Time
11 QTY_REQUESTED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested
12 QTY_REQUESTED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested Base
13 QTY_BACKORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL Backorder Qty
14 QTY_BACKORDER_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Backorder Base Qty
15 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
16 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
17 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
18 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
19 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
20 SCHED_DATE Date(10) DATE Schedule Date
21 SCHED_DTTM DateTime(26) TIMESTAMP 08/16/01 JNW (CN#PL900-1.0): Added
22 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
23 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit
24 BUSINESS_UNIT_BI Character(5) VARCHAR2(5) NOT NULL Billing Business Unit
25 UNIT_MEASURE_SHIP Character(3) VARCHAR2(3) NOT NULL Shipment Unit of Measure
26 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
27 SETID Character(5) VARCHAR2(5) NOT NULL SetID
28 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
29 DP_UPDDTTM_0 DateTime(26) TIMESTAMP date/time of last update to level 0 record used by messaging system to select records changed in the FDM system
30 DP_ADD_DTTM_0 DateTime(26) TIMESTAMP DP_ADD_DTTM_0
31 FORECAST_ITEM_FLAG Character(1) VARCHAR2(1) NOT NULL Demand Planning Item
32 FORECASTER Character(20) VARCHAR2(20) NOT NULL Forecaster
33 DP_DDH_ID Character(30) VARCHAR2(30) NOT NULL Demand data history table - row ID (key)
34 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
35 SOURCE_CODE Character(2) VARCHAR2(2) NOT NULL 8/5/97 lee - inactivated source code 4 - service
1=Make
2=Buy
3=Expense
4=Service
5=Floor Stock
6=Planning