PC_BUD_VW(SQL View) |
Index Back |
---|---|
Project Activity Budgets ViewThis view summarizes the totals of the resource amount to each activity within the activity budget analysis group. |
SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.ACTIVITY_ID , A.ANALYSIS_TYPE , SUM(A.FOREIGN_AMOUNT) , A.CURRENCY_CD FROM PS_PROJ_RESOURCE A , PS_PROJ_AN_GRP_MAP B , PS_PROJECT C , PS_BUS_UNIT_TBL_PC D WHERE B.ANALYSIS_TYPE = A.ANALYSIS_TYPE AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.CURRENCY_CD = D.CURRENCY_CD AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PROJECT_ID = C.PROJECT_ID AND B.ANALYSIS_GROUP = C.AN_GRP_ACTV_BUD AND B.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = C.BUSINESS_UNIT AND RECNAME = 'PROJ_AN_GRP_MAP') GROUP BY A.BUSINESS_UNIT, A.PROJECT_ID, A.ACTIVITY_ID, A.ANALYSIS_TYPE, 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 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL | Activity ID |
4 | ANALYSIS_TYPE | Character(3) | VARCHAR2(3) NOT NULL | Analysis Type |
5 | RESOURCE_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Transaction Amount |
6 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |