P6_WBS_ACTCF_VW(SQL View) |
Index Back |
---|---|
P6 WBS-Actv Actl Cost CF ViewPSFT Project Activity total Actual Cost, aggregated per Resource chartfields -- Resource Type, Resource Category, Resource Sub-Category (level 1 view) |
SELECT A.BUSINESS_UNIT , A.PROJECT_ID , B.ACTIVITY_ID , B.RESOURCE_TYPE , B.RESOURCE_CATEGORY , B.RESOURCE_SUB_CAT , %Round(SUM(%DecMult(B.RESOURCE_AMOUNT, C.SIGNED_VALUE)),3) FROM PS_PROJECT A , PS_PC_SUMMARY_TBL B , PS_PROJ_AN_GRP_MAP C WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.PROJECT_ID = A.PROJECT_ID AND B.CURRENCY_CD = A.CURRENCY_CD AND C.SETID = ( SELECT I.SETID FROM PS_SET_CNTRL_REC I WHERE I.SETCNTRLVALUE = A.BUSINESS_UNIT AND I.REC_GROUP_ID = 'PC_01' AND I.RECNAME = 'PROJ_AN_GRP_MAP') AND C.ANALYSIS_GROUP = A.AN_GRP_TOT_COSTS AND C.ANALYSIS_TYPE = B.ANALYSIS_TYPE GROUP BY A.BUSINESS_UNIT, A.PROJECT_ID, B.ACTIVITY_ID, B.RESOURCE_TYPE, B.RESOURCE_CATEGORY, B.RESOURCE_SUB_CAT |
# | 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 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Source Type |
5 | RESOURCE_CATEGORY | Character(5) | VARCHAR2(5) NOT NULL | Category |
6 | RESOURCE_SUB_CAT | Character(5) | VARCHAR2(5) NOT NULL | Subcategory |
7 | RESOURCE_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Transaction Amount |