PGM_COSTBYCUR(SQL View) |
Index Back |
---|---|
Actual costs viewThis Actual costs view has foreign amounts grouped by currency code |
SELECT A.BUSINESS_UNIT , A.PROJECT_ID ,SUM(A.FOREIGN_AMOUNT) ,A.FOREIGN_CURRENCY FROM PS_PROJ_RESOURCE A ,PS_PROJ_AN_GRP_MAP B ,PS_SET_CNTRL_REC CNTRL ,PS_PROJECT C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PROJECT_ID = C.PROJECT_ID AND CNTRL.SETCNTRLVALUE = A.BUSINESS_UNIT AND B.SETID = CNTRL.SETID AND CNTRL.RECNAME = 'PROJ_AN_GRP_MAP' AND B.ANALYSIS_GROUP = C.AN_GRP_TOT_COSTS AND A.ANALYSIS_TYPE = B.ANALYSIS_TYPE GROUP BY A.BUSINESS_UNIT, A.PROJECT_ID, A.FOREIGN_CURRENCY |
# | 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 | FOREIGN_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the monetary amount of a debit or credit (accounting entry line) in the entry currency of the item. The sum of FOREIGN_AMOUNT values on AR lines should equal the ENTRY_AMT on the pending item. |
4 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |