SF_TRC_OUT_VW4

(SQL View)
Index Back

Genealogy Trace output view

Used in genealogy exception reporting SQR

SELECT A.BUSINESS_UNIT ,b.PRODUCTION_ID ,A.MG_OUTPUT_ITEM ,A.MG_OUTPUT_TYPE ,SUM(A.NEW_PRDN_QTY) ,SUM(A.COMPL_QTY) ,SUM(A.SCRAPPED_QTY) FROM PS_SF_TRC_PRDN B , PS_SF_TRC_OUT A WHERE A.SETID_INV_ITEM =B.SETID_INV_ITEM AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INV_ITEM_ID =B.INV_ITEM_ID AND A.SERIAL_ID =B.SERIAL_ID AND A.INV_LOT_ID = B.INV_LOT_ID AND A.TRANSACTION_NBR = B.TRANSACTION_NBR GROUP BY A.BUSINESS_UNIT ,B.PRODUCTION_ID ,A.MG_OUTPUT_ITEM ,A.MG_OUTPUT_TYPE

# 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 MG_OUTPUT_ITEM Character(18) VARCHAR2(18) NOT NULL 04/10/00 (Internet Architecture) SCC: Uppercase label Id. 10/22/98 (CN#EN800-6.0) LAJ...Created Stores the output item number on a Bill of Materials. This item may be either a co-product or a by-product on the BOM. The output type field determines which one it represents. There should always be at least one output item on the BOM at all times; this output item is the same as the BOMs item id.

Prompt Table: %EDITTABLE23

4 MG_OUTPUT_TYPE Character(2) VARCHAR2(2) NOT NULL 10/22/98 (CN#EN800-6.0) LAJ...Created Stores the output item type on a Bill of Materials. The type could represent either a co-product (primary or secondary) or a by-product (waste or recycle). 11/23/98 (CN#SF800-13) JNW added teardown xlat
CP=Primary
CS=Co-Product
RB=Recycle
TD=Teardown
WB=Waste
5 NEW_PRDN_QTY Number(12,4) DECIMAL(11,4) NOT NULL Production Start Qty
6 COMPL_QTY Signed Number(13,4) DECIMAL(11,4) NOT NULL Completed Qty
7 SCRAPPED_QTY Signed Number(13,4) DECIMAL(11,4) NOT NULL Scrapped Qty