SF_TRC_COMPL_VW

(SQL View)
Index Back

Serial genealogy Usage View

08/26/2002 FRD

SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , 0 ,0 , ' ' , ' ' , 0 , B.COMPONENT_ID , B.OP_SEQUENCE , B.MG_ORIG_COMP_ID , B.QTY_CODE , ' ' , ' ' , '01' , A.PRODUCTION_ID ,A.PRDN_AREA_CODE , %Round(B.SF_QTY_PER,4) , 0 , %CurrentDateTimeIn , %CurrentDateTimeIn , ' ' , B.SF_QTY_PER ,'N' , C.LOT_CONTROL , C.SERIAL_CONTROL , C.SETID ,'1' ,C.DESCR ,B.TRACE_USAGE ,B.PEND_CONSUME_QTY ,B.PEND_LOSS_QTY ,B.NON_OWN_FLAG ,C.CFG_CODE_OPT ,C.CONSIGNED_FLAG ,C.UNIT_MEASURE_STD ,B.ISSUE_METHOD FROM PS_SF_PRDNID_HEADR A ,PS_SF_COMP_LIST B ,PS_MASTER_ITEM_TBL C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PRODUCTION_ID = B.PRODUCTION_ID AND B.COMPONENT_ID = C.INV_ITEM_ID AND A.INV_ITEM_ID <> B.COMPONENT_ID AND B.TRACE_USAGE <> '0'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
4 ROW_COUNT Number(8,0) INTEGER NOT NULL Number to Purge
5 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
6 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
7 TRANSACTION_NBR Number(15,0) DECIMAL(15) NOT NULL 08/02/99 NAS: Changed the size of this field from 10 to 15. Based on Jim Hillman's decision to make the field at a standard size.
8 COMPONENT_ID Character(18) VARCHAR2(18) NOT NULL 04/10/00 (Internet Architecture) SCC: Uppercase label Id.

Prompt Table: %EDITTABLE5

9 OP_SEQUENCE Number(4,0) SMALLINT NOT NULL Operation Sequence
10 MG_ORIG_COMP_ID Character(18) VARCHAR2(18) NOT NULL original component ID
11 QTY_CODE Character(3) VARCHAR2(3) NOT NULL Per
ASY=Assembly
ORD=Order
12 COMP_SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
13 COMP_LOT_ID Character(15) VARCHAR2(15) NOT NULL Component Lot ID
14 SF_TRAC_TRAN_TYPE Character(4) VARCHAR2(4) NOT NULL Trace Type
1000=Regular PID
1001=Rework PID
1002=TearDown Pid
1003=Production Schedule
15 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID

Prompt Table: SF_PRDNID_HEADR

16 PRDN_AREA_CODE Character(10) VARCHAR2(10) NOT NULL Production Area
17 SCHED_QTY Number(12,4) DECIMAL(11,4) NOT NULL Component Scheduled Qty
18 SCRAPPED_QTY Signed Number(13,4) DECIMAL(11,4) NOT NULL Scrapped Qty
19 CREATEDTTM DateTime(26) TIMESTAMP DateTime of Query Creation
20 LAST_MAINT_DTTM DateTime(26) TIMESTAMP A system generated value that reflects the date and time a transaction was last modified
21 LAST_MAINT_OPRID Character(30) VARCHAR2(30) NOT NULL Last Maintained By Operator ID
22 SF_QTY_PER Number(16,10) DECIMAL(15,10) NOT NULL 07/06/99 SCC CN# SF800-9.0: Added label Quantity
23 PROCESSED_FLG Character(1) VARCHAR2(1) NOT NULL Plan Processed Flag
C=Complete
E=Errors
N=Initialize
P=In Process
24 LOT_CONTROL Character(1) VARCHAR2(1) NOT NULL Lot Control
N=N
Y=Y
25 SERIAL_CONTROL Character(1) VARCHAR2(1) NOT NULL Serial Control
N=N
Y=Y
26 SETID Character(5) VARCHAR2(5) NOT NULL SetID
27 SF_TRC_USAG_STATUS Character(1) VARCHAR2(1) NOT NULL FRD
1=Associated
2=Disassoc
3=Torndown
4=Split
28 DESCR Character(30) VARCHAR2(30) NOT NULL Description
29 TRACE_USAGE Character(1) VARCHAR2(1) NOT NULL Trace Usage
0=None
1=Serial Trace
2=Lot Trace
30 PEND_CONSUME_QTY Signed Number(13,4) DECIMAL(11,4) NOT NULL 10/12/99 SCC CN#SF800-9.0: Added label id TO_PEND_CONSUME
31 PEND_LOSS_QTY Signed Number(13,4) DECIMAL(11,4) NOT NULL 10/12/99 SCC CN#SF800-9.0: Added label id TO_PEND_LOSS
32 NON_OWN_FLAG Character(1) VARCHAR2(1) NOT NULL 07/30/1998 WHS CN#ENH8.0: Created Translate Values 'Y'es and 'N'o
N=No
Y=Yes
33 CFG_CODE_OPT Character(1) VARCHAR2(1) NOT NULL Configuration Code Generation
B=Both
N=No
Y=Yes
34 CONSIGNED_FLAG Character(1) VARCHAR2(1) NOT NULL Consigned Flag
35 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
36 ISSUE_METHOD Character(4) VARCHAR2(4) NOT NULL Component Issue Method
COM=Use Comp.
ISS=Issue
KIT=Kit
REPL=Replenish