DEMAND_SHIP_VW3

(SQL View)
Index Back

Demand Ship View 3

/* data model change */

SELECT a.business_unit , a.demand_source , a.source_bus_unit , a.order_no , a.order_int_line_no , a.sched_line_nbr , a.inv_item_id , a.demand_line_no , a.ship_cntr_id , a.qty , a.unit_of_measure , a.dt_timestamp , a.oprid , ' ' , b.ship_to_cust_id , b.address_seq_num , b.location , b.load_id , b.product_id , %DatePart(b.sched_dttm) FROM ps_ship_cntr_inv a , PS_IN_DEMAND b WHERE (b.in_fulfill_state BETWEEN '30' AND '40' OR (b.in_fulfill_state = '90' AND b.in_prior_state BETWEEN '30' AND '40')) AND a.business_unit = b.business_unit AND a.demand_source = b.demand_source AND a.source_bus_unit = b.source_bus_unit AND a.order_no = b.order_no AND a.order_int_line_no = b.order_int_line_no AND a.sched_line_nbr = b.sched_line_nbr AND a.inv_item_id = b.inv_item_id AND a.demand_line_no = b.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 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 SHIP_CNTR_ID Character(20) VARCHAR2(20) NOT NULL Shipping Container ID
10 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity
11 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
12 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
13 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
14 SHIP_ID Character(10) VARCHAR2(10) NOT NULL Shipping ID
15 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
16 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
17 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
18 LOAD_ID Character(10) VARCHAR2(10) NOT NULL Load ID
19 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
20 SHIP_DATE Date(10) DATE Item Shipping Date