BOL_SHP_EXP_VW(SQL View) |
Index Back |
---|---|
BOL Demand Lines ViewView is used when construction the Shipping Bill of Lading. Demand lines are in states 20 thru 70. |
SELECT s.business_unit , s.demand_source , s.source_bus_unit , s.order_no , s.order_int_line_no , s.sched_line_nbr , s.inv_item_id , s.demand_line_no , s.transfer_cost , s.transfer_cost_dest FROM ps_in_demand s , ps_inv_items i , PS_MASTER_ITEM_TBL m , PS_SET_CNTRL_REC C WHERE s.in_fulfill_state BETWEEN '20' AND '70' AND C.RECNAME = 'MASTER_ITEM_TBL' AND S.BUSINESS_UNIT = C.SETCNTRLVALUE AND C.SETID = M.SETID AND i.setid = m.setid AND i.inv_item_id = s.inv_item_id AND %EffdtCheck(inv_items i2, i, %CurrentDateIn) AND m.inv_item_id = s.inv_item_id AND m.itm_status_current IN ('1','2','3','4') |
# | 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 | TRANSFER_COST | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Transfer Price |
10 | TRANSFER_COST_DEST | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Transfer Price Dest |