IN_EST_SHIP_VW(SQL View) |
Index Back |
---|---|
Estimated Shipment DetailThis dynamic view is used to create the rowset used for the third party freight calculation in Inventory. mmt 05/18/04 Data model changes |
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_id , a.ship_id_est , a.ship_cust_name1 , a.ship_to_cust_id , adr.cust_contact , a.carrier_id , a.ship_type_id , ' ' , %subrec(address_sbr2, adr) , %DatePart(a.ship_dttm) , 0 , 0 , a.net_unit_price , 0 , a.bill_of_lading , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , 0 , c.ship_cntr_id , b.ship_length , b.ship_height , b.ship_width , b.gross_weight , b.unit_measure_wt , b.unit_measure_dim , b.oversized , b.add_handling , ' ' , 0 , 0 , a.unit_measure_vol , ' ' , a.unit_measure_ship , a.freight_terms , ' ' , a.route_cd , a.cntrct_id , a.frt_rule_cd , d.freight_vendor , ' ' , a.qty_pack_base , b.parent_ship_cntr , b.gross_weight_user , b.override , b.frt_ref_no , b.pro_number , b.arrival_date , 0 , 0 , d.interlink_dll FROM ps_ship_cntr_hdr b , ps_ship_cntr_inv c , ps_carrier_id d , PS_IN_DEMAND A LEFT OUTER JOIN PS_IN_DEMAND_ADDR ADR ON %Join(common_keys, in_demand a , in_demand_addr Adr) WHERE a.business_unit = c.business_unit AND a.demand_source = c.demand_source AND a.source_bus_unit = c.source_bus_unit AND a.order_no = c.order_no AND a.order_int_line_no = c.order_int_line_no AND a.sched_line_nbr = c.sched_line_nbr AND a.inv_item_id = c.inv_item_id AND a.demand_line_no = c.demand_line_no AND b.business_unit = c.business_unit AND b.ship_cntr_id = c.ship_cntr_id AND b.parent_ship_cntr = ' ' AND a.demand_source = 'OM' AND ((a.in_fulfill_state BETWEEN '50' AND '60') OR (A.in_fulfill_state = '70' AND omb_process_date IS NOT NULL)) AND a.carrier_id = d.carrier_id AND d.setid = ( SELECT e.setid FROM ps_set_cntrl_rec e WHERE e.setcntrlvalue = a.business_unit AND e.recname = 'CARRIER_ID') AND d.effdt=( SELECT MAX(effdt) FROM ps_carrier_id WHERE d.setid=setid AND d.carrier_id=carrier_id AND effdt<=%CurrentDateIn) AND d.eff_status='A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BUIN_NONVW |
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_ID | Character(10) | VARCHAR2(10) NOT NULL | Shipping ID |
10 | SHIP_ID_EST | Character(10) | VARCHAR2(10) NOT NULL | Estimated Ship ID |
11 | SHIP_CUST_NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Ship To Name |
12 | SHIP_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Ship To Customer |
13 | CUST_CONTACT | Character(40) | VARCHAR2(40) NOT NULL | Customer Contact |
14 | CARRIER_ID | Character(10) | VARCHAR2(10) NOT NULL | Carrier ID |
15 | SHIP_TYPE_ID | Character(10) | VARCHAR2(10) NOT NULL | Ship Via Code |
16 | IST_DELIVERY_TRM1 | Character(3) | VARCHAR2(3) NOT NULL |
Delivery Terms 1
CFR=Cost and Freight CIF=Cost, Insurance, Freight CIP=Carriage and Insurance Paid To CPT=Carriage Paid To DAF=Delivered at Frontier DDP=Delivered Duty Paid DDU=Delivered Duty Unpaid DEQ=Delivered Ex-Quay DES=Delivered Ex-Ship EXW=Ex-Works FAS=Free Alongside Ship FCA=Franco Carrier FOB=Free on Board XXX=Other Delivery Terms |
17 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL |
Country
Prompt Table: COUNTRY_TBL |
18 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
19 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
20 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
21 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
22 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
23 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
24 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
25 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat WW=Trailer |
26 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
27 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
28 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
29 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
30 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: STATE_TBL |
31 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
32 | GEO_CODE | Character(11) | VARCHAR2(11) NOT NULL | Geo Code |
33 | IN_CITY_LIMIT | Character(1) | VARCHAR2(1) NOT NULL |
In City Limit
Y/N Table Edit |
34 | SHIP_DATE | Date(10) | DATE | Item Shipping Date |
35 | NOFN_SEQ | Number(3,0) | SMALLINT NOT NULL | Package Number in Sequence |
36 | NOFN_TOTAL | Number(3,0) | SMALLINT NOT NULL | Number of Packages in Sequence |
37 | NET_UNIT_PRICE | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Net Unit Price |
38 | QTY_SHIPPED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Shipped |
39 | BILL_OF_LADING | Character(30) | VARCHAR2(30) NOT NULL | Specifies a bill of lading number associated with a Receivables item. |
40 | ESTIMATE | Character(1) | VARCHAR2(1) NOT NULL |
Freight Estimate
Y/N Table Edit Default Value: Y |
41 | COUNTRY_IST_ORIGIN | Character(3) | VARCHAR2(3) NOT NULL | Intrastat Country of Origin |
42 | HARMONIZED_CD | Character(14) | VARCHAR2(14) NOT NULL | Harmonized Code |
43 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
44 | INTL_HAZARD_ID | Character(15) | VARCHAR2(15) NOT NULL | Intl Hazard ID |
45 | HAZ_CLASS_CD | Character(4) | VARCHAR2(4) NOT NULL | Hazard Code |
46 | MSDS_ID | Character(10) | VARCHAR2(10) NOT NULL | MSDS ID |
47 | COMMODITY_CD | Character(10) | VARCHAR2(10) NOT NULL | Commodity Code |
48 | DECLARED_VALUE | Signed Number(17,0) | DECIMAL(16) NOT NULL | Custom's Declared Value |
49 | SHIP_CNTR_ID | Character(20) | VARCHAR2(20) NOT NULL | Shipping Container ID |
50 | SHIP_LENGTH | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Ship Length |
51 | SHIP_HEIGHT | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Ship Height |
52 | SHIP_WIDTH | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Ship Width |
53 | GROSS_WEIGHT | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Shipping Weight |
54 | UNIT_MEASURE_WT | Character(3) | VARCHAR2(3) NOT NULL | Weight UOM |
55 | UNIT_MEASURE_DIM | Character(3) | VARCHAR2(3) NOT NULL | Dimension UOM |
56 | OVERSIZED | Character(1) | VARCHAR2(1) NOT NULL | Oversized Item |
57 | ADD_HANDLING | Character(1) | VARCHAR2(1) NOT NULL | Additional Handling |
58 | DESCR60 | Character(60) | VARCHAR2(60) NOT NULL | Description |
59 | SHIPPING_WEIGHT | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Shipping Weight |
60 | SHIPPING_VOLUME | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Shipping Volume |
61 | UNIT_MEASURE_VOL | Character(3) | VARCHAR2(3) NOT NULL | Volume UOM |
62 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
63 | UNIT_MEASURE_SHIP | Character(3) | VARCHAR2(3) NOT NULL | Shipment Unit of Measure |
64 | FREIGHT_TERMS | Character(10) | VARCHAR2(10) NOT NULL | Freight Terms Code |
65 | INV_ITEM_GROUP | Character(15) | VARCHAR2(15) NOT NULL | Item Group |
66 | 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. |
67 | CNTRCT_ID | Character(25) | VARCHAR2(25) NOT NULL | Buying Agreement ID |
68 | FRT_RULE_CD | Character(10) | VARCHAR2(10) NOT NULL | Freight Rule Code |
69 | FREIGHT_VENDOR | Character(1) | VARCHAR2(1) NOT NULL |
Used by OM, INV.
E=External Freight System I=Internal Freight System |
70 | CANCEL_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Cancel Status
A=Active C=Closed D=Denied H=Hold O=Open P=Pending Approval X=Canceled |
71 | QTY_PACK_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Base Quantity Packed |
72 | PARENT_SHIP_CNTR | Character(20) | VARCHAR2(20) NOT NULL | Parent Shipping Container ID |
73 | GROSS_WEIGHT_USER | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Shipping Weight |
74 | OVERRIDE | Character(1) | VARCHAR2(1) NOT NULL |
Copy Method
A=Append O=Override |
75 | FRT_REF_NO | Character(30) | VARCHAR2(30) NOT NULL | Freight Reference Number |
76 | PRO_NUMBER | Character(40) | VARCHAR2(40) NOT NULL | Pro Number |
77 | ARRIVAL_DATE | Date(10) | DATE | Arrival Date |
78 | FREIGHT_AMT_TOT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Freight Amount |
79 | FREIGHT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Freight Amount |
80 | INTERLINK_DLL | Character(100) | VARCHAR2(100) NOT NULL | Interlink DLL Name |