SF_TRC_SER_A_VW

(SQL View)
Index Back

Serial-no assoc ISS/REPL comp


SELECT U.BUSINESS_UNIT , U.PRODUCTION_ID , U.COMPONENT_ID , U.OP_SEQUENCE , U.MG_ORIG_COMP_ID , U.QTY_CODE , U.COMP_LOT_ID , U.COMP_SERIAL_ID , U.SERIAL_ID , U.SF_TRAC_TRAN_TYPE , U.SF_TRC_USAG_STATUS , U.TRACE_USAGE FROM PS_SF_TRC_USAG U WHERE U.SF_TRC_USAG_STATUS = '1' AND NOT EXISTS ( SELECT 'X' FROM PS_SF_TRC_USAG U2 , PS_SF_COMP_LIST C WHERE U2.BUSINESS_UNIT = U.BUSINESS_UNIT AND U2.PRODUCTION_ID = U.PRODUCTION_ID AND C.BUSINESS_UNIT = U.BUSINESS_UNIT AND C.PRODUCTION_ID = U.PRODUCTION_ID AND (C.ISSUE_METHOD = 'ISS' OR C.ISSUE_METHOD = 'REPL') AND U2.SERIAL_ID = U.SERIAL_ID AND U2.SF_TRC_USAG_STATUS = '1')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID

Prompt Table: SF_PRDNID_HEADR

3 COMPONENT_ID Character(18) VARCHAR2(18) NOT NULL 04/10/00 (Internet Architecture) SCC: Uppercase label Id.

Prompt Table: SF_TRC_COMP_VW1

4 OP_SEQUENCE Number(4,0) SMALLINT NOT NULL Operation Sequence

Prompt Table: SF_TRC_COMP_VW2

5 MG_ORIG_COMP_ID Character(18) VARCHAR2(18) NOT NULL original component ID

Prompt Table: SF_TRC_COMP_VW3

6 QTY_CODE Character(3) VARCHAR2(3) NOT NULL Per
ASY=Assembly
ORD=Order

Prompt Table: SF_TRC_COMP_VW4

7 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
8 COMP_SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID

Prompt Table: %EDITTABLE3

9 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
10 SF_TRAC_TRAN_TYPE Character(4) VARCHAR2(4) NOT NULL Trace Type
1000=Regular PID
1001=Rework PID
1002=TearDown Pid
1003=Production Schedule
11 SF_TRC_USAG_STATUS Character(1) VARCHAR2(1) NOT NULL FRD
1=Associated
2=Disassoc
3=Torndown
4=Split
12 TRACE_USAGE Character(1) VARCHAR2(1) NOT NULL Trace Usage
0=None
1=Serial Trace
2=Lot Trace