SF_TRC_LOT_R_VW(SQL View) |
Index Back |
---|---|
Lot trace return view |
SELECT C.BUSINESS_UNIT , C.PRODUCTION_ID , C.COMPONENT_ID , C.OP_SEQUENCE , C.MG_ORIG_COMP_ID , C.QTY_CODE , C.INV_LOT_ID , C.QTY_BASE FROM PS_SF_COMP_QTY C WHERE C.QTY_BASE > 0 AND NOT EXISTS ( SELECT 'X' FROM PS_SF_TRC_USAG U WHERE U.BUSINESS_UNIT = C.BUSINESS_UNIT AND U.PRODUCTION_ID = C.PRODUCTION_ID AND U.COMPONENT_ID = C.COMPONENT_ID AND U.OP_SEQUENCE = C.OP_SEQUENCE AND U.MG_ORIG_COMP_ID = C.MG_ORIG_COMP_ID AND U.QTY_CODE = C.QTY_CODE AND U.COMP_LOT_ID = C.INV_LOT_ID AND U.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 |
3 | COMPONENT_ID | Character(18) | VARCHAR2(18) NOT NULL | 04/10/00 (Internet Architecture) SCC: Uppercase label Id. |
4 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
5 | MG_ORIG_COMP_ID | Character(18) | VARCHAR2(18) NOT NULL | original component ID |
6 | QTY_CODE | Character(3) | VARCHAR2(3) NOT NULL |
Per
ASY=Assembly ORD=Order |
7 | INV_LOT_ID | Character(15) | VARCHAR2(15) NOT NULL | Lot ID |
8 | QTY_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Base Quantity |