BOL_ORDPRMT_VW(SQL View) |
Index Back |
---|---|
BOL - View of domestic ordersThis view is used in the standalone sql used within the dynamic viewtext for BOL order no prompts(BOL_ORDPRMT_DVW within sql BOL_ORDERNO). |
SELECT DISTINCT s.business_unit , s.demand_source , s.source_bus_unit , s.ship_to_cust_id , s.location , s.load_id , s.carrier_id , s.ship_id , s.order_no , s.in_fulfill_state , s.delivery_id FROM PS_IN_DEMAND s WHERE s.in_fulfill_state BETWEEN '20' AND '70' AND s.bill_of_lading = ' ' AND s.ship_id <> ' ' AND ((s.demand_source <> 'OM' AND s.export = 'N') OR s.order_no IN ( SELECT DISTINCT a.order_no FROM PS_IN_DEMAND a , ps_ord_line l1 , ps_ord_schedule c1 WHERE a.demand_source = 'OM' AND a.in_fulfill_state BETWEEN '20' AND '70' AND a.source_bus_unit = l1.business_unit AND a.order_no = l1.order_no AND a.source_bus_unit = c1.business_unit AND a.order_no = c1.order_no AND c1.export <> 'Y' )) |
# | 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 | SHIP_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Ship To Customer |
5 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
6 | LOAD_ID | Character(10) | VARCHAR2(10) NOT NULL | Load ID |
7 | CARRIER_ID | Character(10) | VARCHAR2(10) NOT NULL | Carrier ID |
8 | SHIP_ID | Character(10) | VARCHAR2(10) NOT NULL | Shipping ID |
9 | 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 |
10 | 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 |
11 | DELIVERY_ID | Character(10) | VARCHAR2(10) NOT NULL | Delivery ID |