cancel
Showing results for 
Search instead for 
Did you mean: 

FXTrans syntax error after upgrading from BPC 7.0 MS to BPC 7.5 MS

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Why don't you use the standard business rule for conversion?

Apart from that, please check that the elements referenced in the lines you show in red (which I assume are the errors) exist.

BR,

Arnold

Former Member
0 Kudos

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