Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2015 at 07:10 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2015 at 04:58 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.