IN_PACK_ND_VW

(SQL View)
Index Back

Shipping Detail - View

mmt 03/26/04 Data model changes. Changed record to IN_DEMAND.

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 , 0 , S.OUTER_MOST_CNTR_ID , A.QTY_SHIPPED_CONV , A.UNIT_MEASURE_SHIP , (CASE WHEN A.IN_FULFILL_STATE = '60' THEN A.QTY_SHIP_BASE ELSE A.QTY_PICK_BASE END) , A.QTY_PACK_BASE , A.SHIP_TO_CUST_ID , A.LOCATION , A.PICK_BATCH_ID , A.LOAD_ID , A.CARRIER_ID , A.SHIP_TYPE_ID , A.BILL_OF_LADING , A.ROUTE_CD , A.SHIP_ID , A.DESTIN_BU , A.FRT_CHRG_OVERRIDE , A.INTERUNIT_FLG , %DatePart(A.SCHED_DTTM) , A.ADDRESS_SEQ_NUM , A.FRT_CHRG_METHOD , A.FREIGHT_TERMS , B.COUNTRY , B.STATE , A.IN_FULFILL_STATE , A.QTY_PACK_BASE , A.BUSINESS_UNIT_BI , A.TARGET_INVOICE , ' ' , B.ADDRESS1 , B.ADDRESS2 , B.ADDRESS3 , B.ADDRESS4 , B.ADDR_FIELD1 , B.ADDR_FIELD2 , B.ADDR_FIELD3 , C.CARRIER_ID_EXP , B.CITY , B.COUNTY , C.FREIGHT_TERMS_EXP , B.GEO_CODE , B.HOUSE_TYPE , B.IN_CITY_LIMIT , B.NUM1 , B.NUM2 , B.POSTAL , A.PRODUCT_ID , C.SHIP_TYPE_ID_EXP , A.TMS_LOAD_STP_NBR , C.DOC_REFNUM , C.VAT_ENTITY , CASE WHEN A.DEMAND_SOURCE = 'IN' THEN ' ' ELSE D.FREIGHT_BILL_TYPE END , D.ORDER_TYPE_CD , A.PREF_CARRIER_FLAG , D.DEL_ORD_RESTRICTED , ' ' , CASE WHEN A.DEMAND_SOURCE = 'IN' THEN F.BASE_CURRENCY ELSE C.CURRENCY_CD END , CASE WHEN A.DEMAND_SOURCE = 'IN' THEN F.BASE_CURRENCY ELSE C.CURRENCY_CD_BASE END , CASE WHEN A.DEMAND_SOURCE = 'IN' THEN %DatePart(A.SCHED_DTTM) ELSE D.RATE_DATE END , CASE WHEN A.DEMAND_SOURCE = 'IN' THEN F.CUR_RT_TYPE ELSE D.RT_TYPE END , CASE WHEN A.DEMAND_SOURCE = 'IN' THEN 1 ELSE D.RATE_MULT END , CASE WHEN A.DEMAND_SOURCE = 'IN' THEN 1 ELSE D.RATE_DIV END , 0 FROM PS_IN_DEMAND A LEFT OUTER JOIN PS_IN_DEMAND_ADDR B ON %Join(common_keys, in_demand a, in_demand_addr b) LEFT OUTER JOIN PS_ORD_SCHEDULE C ON C.BUSINESS_UNIT = A.SOURCE_BUS_UNIT AND C.ORDER_NO = A.ORDER_NO AND C.ORDER_INT_LINE_NO = A.ORDER_INT_LINE_NO AND C.SCHED_LINE_NBR = A.SCHED_LINE_NBR LEFT OUTER JOIN PS_ORD_HEADER D ON D.BUSINESS_UNIT = A.SOURCE_BUS_UNIT AND D.ORDER_NO = A.ORDER_NO , PS_BUS_UNIT_TBL_IN F , PS_SHIP_CNTR_HDR S WHERE ((A.IN_FULFILL_STATE = '50' AND A.QTY_PICK_BASE <> 0) OR A.IN_FULFILL_STATE = '60') AND F.BUSINESS_UNIT = A.BUSINESS_UNIT AND S.BUSINESS_UNIT = A.BUSINESS_UNIT AND S.SHIP_ID = A.SHIP_ID

# 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 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
10 OUTER_MOST_CNTR_ID Character(20) VARCHAR2(20) NOT NULL Shipping Container ID
11 QTY_SHIPPED_CONV Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
12 UNIT_MEASURE_SHIP Character(3) VARCHAR2(3) NOT NULL Shipment Unit of Measure
13 QTY_SHIP_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Ship Base
14 QTY_PACK_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity Packed
15 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
16 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
17 PICK_BATCH_ID Number(10,0) DECIMAL(10) NOT NULL Pick Batch ID
18 LOAD_ID Character(10) VARCHAR2(10) NOT NULL Load ID
19 CARRIER_ID Character(10) VARCHAR2(10) NOT NULL Carrier ID
20 SHIP_TYPE_ID Character(10) VARCHAR2(10) NOT NULL Ship Via Code
21 BILL_OF_LADING Character(30) VARCHAR2(30) NOT NULL Specifies a bill of lading number associated with a Receivables item.
22 ROUTE_CD Character(6) VARCHAR2(6) NOT NULL A unique identifier assigned to a delivery route. Route codes can be associated with customer addresses for external orders or locations for internal orders. Route codes can be used to identify the appropriate delivery schedule for a customer/location if you are managing product shipments with your own vehicles.
23 SHIP_ID Character(10) VARCHAR2(10) NOT NULL Shipping ID
24 DESTIN_BU Character(5) VARCHAR2(5) NOT NULL Destination Unit
25 FRT_CHRG_OVERRIDE Character(1) VARCHAR2(1) NOT NULL Freight Charge Override
26 INTERUNIT_FLG Character(1) VARCHAR2(1) NOT NULL InterUnit
N=No
Y=Yes
27 SCHED_SHIP_DATE Date(10) DATE Scheduled Ship Date
28 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
29 FRT_CHRG_METHOD Character(2) VARCHAR2(2) NOT NULL Freight Charge Method
01=Order Value
02=Weight
03=Volume
04=Order Quantity
30 FREIGHT_TERMS Character(10) VARCHAR2(10) NOT NULL Freight Terms Code
31 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
32 STATE Character(6) VARCHAR2(6) NOT NULL State
33 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
34 ORIG_QTY_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Original Qty Base
35 BUSINESS_UNIT_BI Character(5) VARCHAR2(5) NOT NULL Billing Business Unit
36 TARGET_INVOICE Character(22) VARCHAR2(22) NOT NULL Target Invoice
37 SHIP_ID_EST Character(10) VARCHAR2(10) NOT NULL Estimated Ship ID
38 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
39 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
40 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
41 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
42 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
43 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
44 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
45 CARRIER_ID_EXP Character(10) VARCHAR2(10) NOT NULL Export Carrier ID
46 CITY Character(30) VARCHAR2(30) NOT NULL City
47 COUNTY Character(30) VARCHAR2(30) NOT NULL County
48 FREIGHT_TERMS_EXP Character(10) VARCHAR2(10) NOT NULL Export Freight Terms Code
49 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
50 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat
WW=Trailer
51 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit
52 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
53 NUM2 Character(6) VARCHAR2(6) NOT NULL Number 2
54 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
55 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
56 SHIP_TYPE_ID_EXP Character(10) VARCHAR2(10) NOT NULL Export Shipping Method
57 TMS_LOAD_STP_NBR Number(5,0) INTEGER NOT NULL Load Stop Number
58 DOC_REFNUM Character(20) VARCHAR2(20) NOT NULL Counter sale document reference number
59 VAT_ENTITY Character(20) VARCHAR2(20) NOT NULL Specifies an organizational entity that is responsible for VAT reporting and that is registered in one or more countries that require VAT reporting. A single VAT entity is linked to one or more General Ledger Business Units depending on the reporting requirements.
60 FREIGHT_BILL_TYPE Character(2) VARCHAR2(2) NOT NULL Freight Bill Type
OE=Order Entry
SH=Shipping
61 ORDER_TYPE_CD Character(3) VARCHAR2(3) NOT NULL Order Type
QUO=Sales Quote
SO=Sales Order
62 PREF_CARRIER_FLAG Character(1) VARCHAR2(1) NOT NULL Preferred Carrier flag
N=No Preferred Carrier
Y=Preferred Carrier
63 DEL_ORD_RESTRICTED Character(1) VARCHAR2(1) NOT NULL Deliveries restricted to order
N=Deliveries Not Restricted
Y=Deliveries Restricted to Order
64 SOURCE_CD Character(6) VARCHAR2(6) NOT NULL Source Code
65 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
66 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
67 RATE_DATE Date(10) DATE Exchange Rate Date
68 RT_TYPE Character(5) VARCHAR2(5) NOT NULL Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical.
69 RATE_MULT Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
70 RATE_DIV Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor
71 DEMAND_RS_ROW Number(7,0) INTEGER NOT NULL Demand rowset row