EXD_SHP_INF_VW1

(SQL View)
Index Back

SHIPPING EXCISE INVOICE VIEW

08/12/04 PWF Removed PSSH_COMPLETE and SHIPPED_FLAG from the view. Change table reference from SHIP_INF_INV to IN_DEMAND

SELECT DISTINCT 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.DESTIN_BU , A.LOCATION , A.PRODUCT_ID , A.PARENT_PROD_ID , A.KIT_LINE_NBR , A.SHIP_TO_CUST_ID , A.ADDRESS_SEQ_NUM , C.COUNTRY , C.ADDRESS1 , C.ADDRESS2 , C.ADDRESS3 , C.ADDRESS4 , C.CITY , C.NUM1 , C.NUM2 , C.HOUSE_TYPE , C.ADDR_FIELD1 , C.ADDR_FIELD2 , C.ADDR_FIELD3 , C.COUNTY , C.STATE , C.POSTAL , C.GEO_CODE , C.IN_CITY_LIMIT , A.TRANSFER_COST , A.CURRENCY_CD , A.QTY_SHIPPED , A.QTY_SHIP_BASE , A.SHIP_ID , A.SHIP_LINE_NO , A.UNIT_MEASURE_SHIP , A.UNIT_OF_MEASURE , A.IN_FULFILL_STATE , A.PRICE_PO , A.NET_UNIT_PRICE , A.INTERUNIT_FLG , A.RTV_ID , A.RTV_LN_NBR , A.BUSINESS_UNIT_PO FROM PS_IN_DEMAND A ,PS_IN_DEMAND_ADDR C WHERE A.IN_FULFILL_STATE IN ('50','60','70') AND %Join (COMMON_KEYS, IN_DEMAND A, IN_DEMAND_ADDR C) AND NOT EXISTS ( SELECT 'x' FROM PS_EXD_SHP_INV_LN B WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.DEMAND_SOURCE = A.DEMAND_SOURCE AND B.SOURCE_BUS_UNIT = A.SOURCE_BUS_UNIT AND B.ORDER_NO = A.ORDER_NO AND B.ORDER_INT_LINE_NO = A.ORDER_INT_LINE_NO AND B.SCHED_LINE_NBR = A.SCHED_LINE_NBR AND B.INV_ITEM_ID = A.INV_ITEM_ID AND B.DEMAND_LINE_NO = A.DEMAND_LINE_NO AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.DEMAND_SOURCE = C.DEMAND_SOURCE AND B.SOURCE_BUS_UNIT = C.SOURCE_BUS_UNIT AND B.ORDER_NO = C.ORDER_NO AND B.ORDER_INT_LINE_NO = C.ORDER_INT_LINE_NO AND B.SCHED_LINE_NBR = C.SCHED_LINE_NBR AND B.INV_ITEM_ID = C.INV_ITEM_ID AND B.DEMAND_LINE_NO = C.DEMAND_LINE_NO ) AND A.SHIP_ID<> ' ' AND A.QTY_SHIPPED>0 AND NOT EXISTS ( SELECT 'X' FROM %Table(IN_DEMAND_BI) BI WHERE %Join(COMMON_KEYS, IN_DEMAND_BI BI, IN_DEMAND A) )

# 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 DESTIN_BU Character(5) VARCHAR2(5) NOT NULL Destination Unit
10 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
11 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
12 PARENT_PROD_ID Character(18) VARCHAR2(18) NOT NULL Parent Product Id
13 KIT_LINE_NBR Number(3,0) SMALLINT NOT NULL Kit Line Number
14 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
15 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
16 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
17 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
18 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
19 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
20 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
21 CITY Character(30) VARCHAR2(30) NOT NULL City
22 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
23 NUM2 Character(6) VARCHAR2(6) NOT NULL Number 2
24 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat
WW=Trailer
25 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
26 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
27 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
28 COUNTY Character(30) VARCHAR2(30) NOT NULL County
29 STATE Character(6) VARCHAR2(6) NOT NULL State
30 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
31 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
32 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit
33 TRANSFER_COST Signed Number(16,4) DECIMAL(14,4) NOT NULL Transfer Price
34 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
35 QTY_SHIPPED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
36 QTY_SHIP_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Ship Base
37 SHIP_ID Character(10) VARCHAR2(10) NOT NULL Shipping ID
38 SHIP_LINE_NO Number(10,2) DECIMAL(9,2) NOT NULL Ship Line No
39 UNIT_MEASURE_SHIP Character(3) VARCHAR2(3) NOT NULL Shipment Unit of Measure
40 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
41 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
42 PRICE_PO Signed Number(17,5) DECIMAL(15,5) NOT NULL Purchase Order Price
43 NET_UNIT_PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price
44 INTERUNIT_FLG Character(1) VARCHAR2(1) NOT NULL InterUnit
N=No
Y=Yes
45 RTV_ID Character(10) VARCHAR2(10) NOT NULL Return To Vendor ID
46 RTV_LN_NBR Number(5,0) INTEGER NOT NULL Return To Vendor Line
47 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit