CM_PPAVG_CUR_VW

(SQL View)
Index Back

PERPAVG VIEW

10/99 DFL added for 8.0 cost management

SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , A.DT_TIMESTAMP , MAX(A.SEQ_NBR) , A.CM_UNIT_COST , A.CURRENCY_CD FROM PS_CM_PERPAVG_COST A WHERE A.DT_TIMESTAMP = ( SELECT MAX(B.DT_TIMESTAMP) FROM PS_CM_PERPAVG_COST B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INV_ITEM_ID = B.INV_ITEM_ID) GROUP BY A.BUSINESS_UNIT, A.INV_ITEM_ID,A.DT_TIMESTAMP ,A.CM_UNIT_COST,A.CURRENCY_CD

# 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 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
4 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
5 CM_UNIT_COST Signed Number(27,15) DECIMAL(25,15) NOT NULL 07/99 GMG CN800-9.0:
6 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code