Everyone,
I'm trying to simplify loading an extract from a GL Rapidmart. The extract has two data columns 'ACCOUNT_BALANCE_LOC' as local currency and ACCOUNT_BALANCE_TRX as converted USD balances. Currently, I load the same file twice first for LC and then for USD. I tried using the MVAL and the MKEY functions but receiving errors. I'd appreciate any suggestions! (System info - BPC MS 10 EPM Add-in SP08 Patch 4 NET 3.5 build 7328)
Sample of the data file:
Transformation file:
*OPTIONS |
FORMAT = DELIMITED |
HEADER = YES |
DELIMITER = COMMA |
SKIP = 0 |
SKIPIF = |
VALIDATERECORDS=YES |
CREDITPOSITIVE=NO |
MAXREJECTCOUNT= |
ROUNDAMOUNT=6 |
*MAPPING |
ACCOUNT=ACCOUNT_NUMBER |
AUDITTRAIL=*NEWCOL(SAP_GLRM) |
CATEGORY=*NEWCOL(ACTUAL) |
COST_CENTER=*if(COST_CENTER=*str() then *str(CC_PROFITCEN); *str(CC_)+COST_CENTER(2:9)) |
PROFIT_CENTER=PROFIT_CENTER |
RPTCURRENCY=MKEY(ACCOUNT_BALANCE_LOC|*NEWCOL(LC)||ACOUNT_BALANCE_TRX|*NEWCOL(USD)) |
TIME=FISCAL_YEAR+*str(.)+PERIOD |
VERSION=*NEWCOL(VER_FI) |
AMOUNT |
*CONVERSION |
ACCOUNT=Account.xls!CONVERSION |
PROFIT_CENTER=Profit_Center.xls!CONVERSION |
TIME=Time.xls!CONVERSION |
Transformation file error:
[line 18] Unexpected 'ACCOUNT_BALANCE_LOC' at position 6 in the mapping formula [MKEY(ACCOUNT_BALANCE_LOC|*NEWCOL(LC)||ACOUNT_BALANCE_TRX|*NEWCOL(USD))]: 'INT' is expected
Validation of mapping failed; check the worksheet for highlighted errors
This transformation file works for individual loads:
*OPTIONS |
FORMAT = DELIMITED |
HEADER = YES |
DELIMITER = COMMA |
SKIP = 0 |
SKIPIF = |
VALIDATERECORDS=YES |
CREDITPOSITIVE=NO |
MAXREJECTCOUNT= |
ROUNDAMOUNT=6 |
*MAPPING |
ACCOUNT=ACCOUNT_NUMBER |
AUDITTRAIL=*NEWCOL(SAP_GLRM) |
CATEGORY=*NEWCOL(ACTUAL) |
COST_CENTER=*if(COST_CENTER=*str() then *str(CC_PROFITCEN); *str(CC_)+COST_CENTER(2:9)) |
PROFIT_CENTER=PROFIT_CENTER |
RPTCURRENCY=*NEWCOL(LC) |
TIME=FISCAL_YEAR+*str(.)+PERIOD |
VERSION=*NEWCOL(VER_FI) |
AMOUNT=ACCOUNT_BALANCE_LOC |
*CONVERSION |
ACCOUNT=Account.xls!CONVERSION |
PROFIT_CENTER=Profit_Center.xls!CONVERSION |
TIME=Time.xls!CONVERSION |
Thanks in advance!
Akos