INV_LOT_T_VW

(SQL View)
Index Back

Lot Trace View

06/21/04 CWA Data Model Changes - Replaced sched_line_no with sched_line_nbr.

SELECT b.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 , a.ma_prdn_id_flg , ' ' , %DateNull , 0 , a.production_id , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , 0 , 0 , ' ' , 0 , 0 , ' ' , ' ' , 0 , ' ' , a.interunit_id , a.destin_bu , a.qty , a.unit_of_measure , a.transaction_group , ' ' FROM PS_TRANSACTION_INV a , ps_set_cntrl_rec b WHERE a.business_unit = b.setcntrlvalue AND b.recname = 'MASTER_ITEM_TBL' AND (a.transaction_group = '012' OR a.transaction_group = '013' OR a.transaction_group = '030' OR a.transaction_group = '031' OR a.transaction_group = '034' OR a.transaction_group = '036' OR a.transaction_group = '230')

# 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: BU_ITM_INV_VW

4 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID

Prompt Table: LOT_PT_INV_VW10

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 MA_PRDN_ID_FLG Character(1) VARCHAR2(1) NOT NULL 10/18/99 SCC CN#IC800: Add label MAINTAIN_PID
N=No
Y=Yes
13 PRDN_AREA_CODE Character(10) VARCHAR2(10) NOT NULL Production Area
14 PRDN_DUE_DATE Date(10) DATE Prdn Due Date
15 PRDN_DUE_SHIFT Signed Number(2,0) DECIMAL(1) NOT NULL Prdn Due Shift
16 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
17 TO_PRDN_ID Character(10) VARCHAR2(10) NOT NULL To Production ID
18 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
19 CUST_NAME Character(40) VARCHAR2(40) NOT NULL Name
20 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
21 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
22 VENDOR_NAME Character(30) VARCHAR2(30) NOT NULL Supplier Name
23 RTV_ID Character(10) VARCHAR2(10) NOT NULL Return To Vendor ID
24 RTV_LN_NBR Number(5,0) INTEGER NOT NULL Return To Vendor Line
25 RTV_DISTRIB_NUM Number(5,0) INTEGER NOT NULL RTV Distribution Number
26 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
27 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
28 PO_SCHED_NBR Number(3,0) SMALLINT NOT NULL PO Schedule Number
29 PARENT_PROD_ID Character(18) VARCHAR2(18) NOT NULL Parent Product Id
30 PARENT_LOT_ID Character(15) VARCHAR2(15) NOT NULL Parent Lot ID
31 PARENT_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Parent Quantity
32 PARENT_UOM Character(3) VARCHAR2(3) NOT NULL Parent Unit of Measure
33 INTERUNIT_ID Character(10) VARCHAR2(10) NOT NULL InterUnit Order ID
34 DESTIN_BU Character(5) VARCHAR2(5) NOT NULL Destination Unit
35 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity
36 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
37 TRANSACTION_GROUP Character(3) VARCHAR2(3) NOT NULL 11/7/02 LLR - Added the new (600's) transactions groups for 8.8.
38 MULTI_OUTPUTS_FLAG Character(1) VARCHAR2(1) NOT NULL AXS
N=No
Y=Yes