INV_LOT_T_RV_VW

(SQL View)
Index Back

Lot Trace Return to Vndr View


SELECT d.setid ,a.business_unit , a.inv_item_id , a.inv_lot_id , a.serial_id , a.oprid , a.dt_timestamp , a.order_no , a.order_int_line_no , a.sched_line_nbr , a.demand_line_no , %Substring(b.cust_id, 1, 10) , %Substring(b.cust_name, 1, 30) , b.rtv_id , b.rtv_ln_nbr , b.rtv_distrib_num , c.po_id , c.line_nbr , c.sched_nbr , a.qty , a.unit_of_measure , a.transaction_group FROM ps_transaction_inv a , PS_IN_DEMAND b , ps_rtv_ln_distrib c , ps_set_cntrl_rec d WHERE a.business_unit = b.business_unit AND b.business_unit = c.business_unit_in AND c.business_unit_in = d.setcntrlvalue AND a.inv_item_id = b.inv_item_id 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 b.rtv_id = c.rtv_id AND b.rtv_ln_nbr = c.rtv_ln_nbr AND b.rtv_distrib_num = c.rtv_distrib_num AND d.recname = 'MASTER_ITEM_TBL' AND (a.transaction_group = '012' OR a.transaction_group = '013')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BUIN_NONVW

3 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID

Prompt Table: MST_ITM_PRPT_VW

4 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
5 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
6 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
7 DATE_TIME_HM DateTime(26) TIMESTAMP Date Timestamp
8 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
9 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
10 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
11 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
12 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
13 VENDOR_NAME Character(30) VARCHAR2(30) NOT NULL Supplier Name
14 RTV_ID Character(10) VARCHAR2(10) NOT NULL Return To Vendor ID
15 RTV_LN_NBR Number(5,0) INTEGER NOT NULL Return To Vendor Line
16 RTV_DISTRIB_NUM Number(5,0) INTEGER NOT NULL RTV Distribution Number
17 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
18 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
19 PO_SCHED_NBR Number(3,0) SMALLINT NOT NULL PO Schedule Number
20 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity
21 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
22 TRANSACTION_GROUP Character(3) VARCHAR2(3) NOT NULL 11/7/02 LLR - Added the new (600's) transactions groups for 8.8.