CE_TPCFGVAR_VW(SQL View) |
Index Back |
---|
SELECT A.BUSINESS_UNIT , A.PRODUCTION_ID , C.COST_ELEMENT ,'TP' , A.MG_OUTPUT_ITEM , A.MG_OUTPUT_TYPE , A.COMPLETED_QTY , C.LL_COST ,%Round(%DecMult(-1, %DecMult(A.COMPLETED_QTY, C.LL_COST)),2) FROM PS_SF_OUTPUT_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.MG_OUTPUT_ITEM = C.INV_ITEM_ID AND C.EFFDT = ( SELECT MAX(CC.EFFDT) FROM PS_CM_PRODCOST CC WHERE A.BUSINESS_UNIT = CC.BUSINESS_UNIT AND A.MG_OUTPUT_ITEM = CC.INV_ITEM_ID AND CC.EFFDT <= B.ACCTG_CLOSE_DT) AND %Round(%DecMult(A.COMPLETED_QTY, C.LL_COST),2) <> 0.00 |
# | 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 | COST_ELEMENT | Character(4) | VARCHAR2(4) NOT NULL | Cost Element |
4 | 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 |
5 | 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. |
6 | 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 |
7 | COMPLETED_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | Completed Qty |
8 | TL_LL_COST | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | This/Lower Level Costs |
9 | CNFIG_VAR_AMT | Signed Number(13,2) | DECIMAL(11,2) NOT NULL | Amount Variance |