GM_PRJ_VAR_VW3

(SQL View)
Index Back

PROJ_RESOURCE VIEW by ENCUM

This is a view of PROJ_RESOURCE VIEW by ANALYSIS_TYPE = Encumbrance. The return data loads into GM _PRJ_VAR_TEMP.

SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.ACCOUNT , A.DTTM_STAMP , A.ACCOUNTING_DT , 0 , 0 , %Round(SUM(%DecMult(A.RESOURCE_AMOUNT, B.SIGNED_VALUE)),C.DECIMAL_POSITIONS) , 0 , A.CURRENCY_CD FROM PS_PROJ_RESOURCE A , PS_PROJ_AN_GRP_MAP B , PS_CURRENCY_CD_TBL C WHERE B.SETID=( SELECT SETID FROM PS_SET_CNTRL_REC G WHERE G.SETCNTRLVALUE=A.BUSINESS_UNIT AND G.RECNAME='PROJ_AN_GRP_MAP') AND A.ANALYSIS_TYPE =B.ANALYSIS_TYPE AND A.CURRENCY_CD = C.CURRENCY_CD AND B.ANALYSIS_GROUP ='COM' AND %EffdtCheck(CURRENCY_CD_TBL C1, C, %CURRENTDATEIN) GROUP BY A.BUSINESS_UNIT , A.PROJECT_ID , A.ACCOUNT , A.DTTM_STAMP , A.ACCOUNTING_DT, C.DECIMAL_POSITIONS, 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 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
3 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
4 DTTM_STAMP DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
5 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
6 BUDGET_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL BUDGET_AMT
7 ACTUALS Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Actuals Amount
8 ENCUMBERED_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Encumbered Amount
9 PRE_ENCUM_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Pre Encumbered Amount
10 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code