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

Logic with *REC and double LOOKUP doesn't work after migration BPC 7.5 MS

Hello SAP Gurus

We have juste migrated a BPC 5.1 MS to a 7.5 release (SP05). Our FxTrans Logic does'nt work anymore in 7.5 although it used to work properly in our 5.1 environment.

We have identified that the statement wich doesn't work anymore in 7.5 is the use of 2 LOOKUP with a *REC :

FACTOR=LOOKUP(%CURR%)/LOOKUP(SOURCECURR)

Below you can see the part of the script which contains the RATE lookup and the statement wihch doesn't work anymore :

*LOOKUP RATE

*DIM RATESRC="RATEINPUT"

*DIM RATE=ACCOUNT.RATETYPE_ACT

*DIM SOURCECURR:INPUTCURRENCY=ENTITYSGCF.CURRENCY

*FOR %CURR%=%REPORTING_CURRENCIES%

*DIM %CURR%:INPUTCURRENCY="%CURR%"

*NEXT

*ENDLOOKUP

//____________________________________________________________________

// define the translation rule

//____________________________________________________________________

*WHEN CATEGORY

*IS ACTUAL

*WHEN ACCOUNT.RATETYPE_ACT

*IS "NOTRANS"

// skip

*IS %FX_RATES%

// translate

*FOR %CURR%=%REPORTING_CURRENCIES%

*REC( FACTOR=LOOKUP(%CURR%)/LOOKUP(SOURCECURR) ,RPTCURRENCY=%CURR%)

*NEXT

*ELSE

// take as is

*FOR %CURR%=%REPORTING_CURRENCIES%

*REC(RPTCURRENCY="%CURR%")

*NEXT

*ENDWHEN

*ENDWHEN

*COMMIT

We tried to put a constant instead of one of the 2 LOOKUPS and then it works. But in our situtation we really need these 2 LOOKUPS.

Does anyone have ever faced this kind of issue in a Logic after migrated to 7.5?

As I am not an expert in Logic I need help to find a workaround to fix this bug directly in the script. (SAP advised us to install the SP06 but we don't have time since the GO LIVE is at the end of next week).

Thanks for your help!

Regards,

Vincent.

Edited by: Greg C. on Dec 3, 2011 8:01 PM

Edited by: Greg C. on Dec 3, 2011 8:04 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2011 at 10:18 AM

    Hi Greg,

    What kind of error/issue you are facing.

    Thanks,

    Rohit

    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.