CE_TTCFGVAR_VW

(SQL View)
Index Back

SELECT A.BUSINESS_UNIT , A.PRODUCTION_ID , A.COMPONENT_ID , C.COST_ELEMENT ,'TT' , A.ISSUE_QTY , A.YIELD_QTY , B.NEW_PRDN_QTY , C.TL_COST + C.LL_COST , %Round(%DecMult(%DecDiv((A.ISSUE_QTY + A.YIELD_QTY),B.NEW_PRDN_QTY),(C.TL_COST + C.LL_COST)),2) FROM PS_SF_COMP_LIST A , PS_SF_PRDNID_HEADR B , PS_CM_PRODCOST C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PRODUCTION_ID = B.PRODUCTION_ID AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.COMPONENT_ID = C.INV_ITEM_ID AND A.SOURCE_CODE <> '3' AND A.SOURCE_CODE <> '5' AND C.EFFDT = ( SELECT MAX(CC.EFFDT) FROM PS_CM_PRODCOST CC WHERE A.BUSINESS_UNIT = CC.BUSINESS_UNIT AND A.COMPONENT_ID = CC.INV_ITEM_ID AND CC.EFFDT <= B.ACCTG_CLOSE_DT)

# 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 COST_ELEMENT Character(4) VARCHAR2(4) NOT NULL Cost Element
5 VARIANCE_TYPE Character(2) VARCHAR2(2) NOT NULL 9/9/02 CRC: added variance type '15' for Yield Variance
01=Configuration Variance
02=Usage Variance
03=Component Yield Variance
04=Labor Lot Size Variance
05=Process Routing Variance
06=Efficiency Variance
07=Rate Variance
08=Material Lot Size Variance
09=Rework Expense
10=Rework Labor Expense
11=Outside Processing PPV
12=Mix Variance
13=Teardown Material Expense
14=Teardown Conversion Expense
15=Yield Variance
16=Co-Product Rate Var
17=Material Rate Variance
6 ISSUE_QTY Number(12,4) DECIMAL(11,4) NOT NULL 07/28/99 SCC CN#SF800-9.0: Added label id TO_ISSUE_QTY
7 YIELD_QTY Number(12,4) DECIMAL(11,4) NOT NULL 10/12/99 SCC CN#SF800-9.0: Added label id TO_YIELD_QTY
8 NEW_PRDN_QTY Number(12,4) DECIMAL(11,4) NOT NULL Production Start Qty
9 TL_LL_COST Signed Number(16,4) DECIMAL(14,4) NOT NULL This/Lower Level Costs
10 CNFIG_VAR_AMT Signed Number(13,2) DECIMAL(11,2) NOT NULL Amount Variance