DEPL_TRN_INV_VW

(SQL View)
Index Back

Depletion transaction table

Used by Physical Accounting Reconciliation /* 06/09/2004 pwf Change reference from SCHED_LINE_NO to SCHED_LINE_NBR */

SELECT a.business_unit , a.inv_item_id , a.demand_source , a.source_bus_unit , a.order_no , a.order_int_line_no , a.sched_line_nbr , a.demand_line_no , b.staged_date , b.inv_lot_id , b.serial_id , b.storage_area , b.stor_level_1 , b.stor_level_2 , b.stor_level_3 , b.stor_level_4 , b.container_id , a.pick_confirm_dttm , a.dt_timestamp , b.qty_base , b.qty_picked , c.unit_measure_std , b.unit_measure_pick FROM ps_in_demand a , ps_demand_phys_inv b , PS_MASTER_ITEM_TBL c WHERE a.business_unit = b.business_unit AND a.demand_source = b.demand_source AND a.source_bus_unit = b.source_bus_unit AND a.order_no = b.order_no AND a.order_int_line_no = b.order_int_line_no AND a.sched_line_nbr = b.sched_line_nbr AND a.demand_line_no = b.demand_line_no AND a.inv_item_id = b.inv_item_id AND in_fulfill_state='70' AND a.inv_item_id = c.inv_item_id AND c.setid = ( SELECT d.setid FROM ps_set_cntrl_rec d WHERE d.setcntrlvalue = a.business_unit AND d.recname = 'MASTER_ITEM_TBL')

# 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 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID

Prompt Table: MST_ITM_PRPT_VW

3 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
4 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit
5 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
6 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
7 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
8 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
9 STAGED_DATE Date(10) DATE Staged Date
10 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
11 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
12 STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area
13 STOR_LEVEL_1 Character(4) VARCHAR2(4) NOT NULL Storage Level 1
14 STOR_LEVEL_2 Character(4) VARCHAR2(4) NOT NULL Storage Level 2
15 STOR_LEVEL_3 Character(4) VARCHAR2(4) NOT NULL Storage Level 3
16 STOR_LEVEL_4 Character(4) VARCHAR2(4) NOT NULL Storage Level 4
17 CONTAINER_ID Character(10) VARCHAR2(10) NOT NULL Container ID
18 PICK_CONFIRM_DTTM DateTime(26) TIMESTAMP Pick Confirm Date/Time
19 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
20 QTY_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity
21 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity
22 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
23 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage