04/02 tw R-TWONG-MF9PX Used %decmult; removed DB2 sql text.

CM_OH_EPM_VW

(SQL View)
Index Back

SELECT PS_CM_OH_EPM_TBL.BUSINESS_UNIT , PS_CM_OH_EPM_TBL.INV_ITEM_ID , %Round(SUM(PS_CM_OH_EPM_TBL.CM_UNIT_COST) ,%SQL(CM_ROUNDFACTOR_SQL)) , %Round(%DECMULT(SUM(PS_CM_OH_EPM_TBL.CM_UNIT_COST),PS_BU_ITEMS_INV.QTY_ONHAND),3) , PS_BU_ITEMS_INV.QTY_ONHAND FROM PS_CM_OH_EPM_TBL , PS_BU_ITEMS_INV WHERE PS_CM_OH_EPM_TBL.BUSINESS_UNIT = PS_BU_ITEMS_INV.BUSINESS_UNIT AND PS_CM_OH_EPM_TBL.INV_ITEM_ID = PS_BU_ITEMS_INV.INV_ITEM_ID GROUP BY PS_CM_OH_EPM_TBL.BUSINESS_UNIT, PS_CM_OH_EPM_TBL.INV_ITEM_ID, PS_BU_ITEMS_INV.QTY_ONHAND

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 CM_UNIT_COST Signed Number(27,15) DECIMAL(25,15) NOT NULL 07/99 GMG CN800-9.0:
4 TOTAL_REP_COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Cost
5 QTY_ONHAND Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity On Hand