on 10-02-2015 4:18 AM
Hi All,
Recently we are upgraded our BPC from 7.0 MS to 7.5 MS. There are no configuration changes just only version upgrade. After upgrade we have a problem in currency conversion. I have validated FXTrans.lgf and it is the showing syntax error. Previously it is working fine in BPC 7.0. I have searched for the discussions on this issue but I have not found any solution so starting new discussion. Please provide me your valuable inputs.
*INCLUDE SYSTEM_CONSTANTS.LGL
*SYSLIB SYSTEM_LIBRARY.LGL
//*SYSLIB MULTICURRENCYTRANS.LGL
//____________________________________________________________________
*SELECT(%REPORTING_CURRENCIES%, "[ID]", "CURRENCYDIM", "[REPORTING] = 'Y'")
*SELECT(%FX_RATES%, "[ID]", "RATEACCOUNTDIM", "[GROUP] = 'FX RATE'")
//____________________________________________________________________
*CLEAR_DESTINATION
*DESTINATION CURRENCYDIM=%REPORTING_CURRENCIES%
//____________________________________________________________________
*LOOKUP RATEAPP
*DIM RATEENTITYDIM="RATESRCCALCMBR"
*DIM RATEACCOUNTDIM=ACCOUNTDIM.RATETYPE
*DIM SOURCECURR:INPUTCURRENCYDIM=ENTITYDIM.CURRENCY
*FOR %CURR%=%REPORTING_CURRENCIES%
*DIM %CURR%:INPUTCURRENCYDIM="%CURR%"
*NEXT
*ENDLOOKUP
//____________________________________________________________________
*WHEN ACCOUNTDIM.RATETYPE
*IS "NOTRANS"
// skip
*IS %FX_RATES%
// translate
*FOR %CURR%=%REPORTING_CURRENCIES%
*REC(FACTOR=LOOKUP(SOURCECURR)/LOOKUP(%CURR%),CURRENCYDIM="%CURR%")
*NEXT
*ELSE
// take as is
*FOR %CURR%=%REPORTING_CURRENCIES%
*REC(CURRENCYDIM="%CURR%")
*NEXT
*ENDWHEN
//____________________________________________________________________
*FOR %CURR%=%REPORTING_CURRENCIES%
[CURRENCYDIM].[#%CURR%]=null
*NEXT
*COMMIT
Thanks in advance
Issue resolved.
FXTRANS syntax errors are resolved by cut and paste the error statements and validate and save.
FXTRANS_BR was not working with BPC 7.5M SP11 becuase of RATETYPE is blank for certain accounts. I believe BPC 7.5M SP5 onwards blank RATETYPE not converted on 1:1 basis.
Thanks for the suggestions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is difficult to assert what is missing here without having access to your appset.
I would suggest to start troubleshooting by removing everything and start from a single line then add the rest one by one and see what makes it break.
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arnold,
We already using Fxtrans_BR in 7.0M, but after the upgrading to 7.5M it is not working for few accounts and all the script logics showing syntax error but working fine except Fxtrans_BR. Currently we are switched Fxtrans to default one. Regarding the issue I have posted it is working fine even with syntax errors. I am trying to find SAP notes on this.
Thanks,
Kasi
User | Count |
---|---|
6 | |
5 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.