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

RUNLOGIC_PH Log same model

Hi,

I need to run a BADI with parameter entity but the user is also allowed to select a hierarchy node.

In this case, as the procedure takes a while, I'd like to parallelize by single entity

I used the RUNLOGIC_PH even if I don't need to swith model

So I implemented the calling script

*START_BADI RUNLOGIC_PH

QUERY = OFF

WRITE = ON

VALIDATION = OFF

DEBUG = OFF

LOGIC = TEST_SM.LGF

DIMENSION ACCOUNT_CC = <ALL>

DIMENSION CATEGORY = %CATEGORY_SET%

DIMENSION CCENTER = <ALL>

DIMENSION CTROBJ = <ALL>

DIMENSION DATASRC_CC = <ALL>

DIMENSION ENTITY = %ENTITY_SET%

DIMENSION INPUTCURRENCY = <ALL>

DIMENSION INTERCO = <ALL>

DIMENSION TIME = <ALL>

DIMENSION YEARV_SLS = YV_2016.2017

CHANGED=ENTITY

*END_BADI

And the called script on the same model

*START_BADI TEST

QUERY = ON

WRITE = ON

ACCOUNT_CC = <ALL>

CATEGORY = %CATEGORY_SET%

CCENTER = <ALL>

CTROBJ = <ALL>

DATASRC_CC = <ALL>

ENTITY = %ENTITY_SET%

INPUTCURRENCY = <ALL>

INTERCO = <ALL>

TIME = <ALL>

YEARV_SLS = YV_2016.2017

*END_BADI

The RUNLOGIC_PH is working properly and in the SM51 I can see my for processes running (that is what I'd defined)

Unfortunately if the called procedure fails because of an error in the data the calling script has status succeded that is misleading for the user that won't be aware of the error and so they can't fix it

For instance if I run the called script the procedure fails with the proper message, if I run the calling script that, in the end run the same badi, it has succeded as result

Can someone help?

thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2016 at 03:04 PM

    Hi all,

    I tried to import the last cersion (127) of run logic but there is no way to have to log of the original procedure

    I'm storing the messages in table ET_MESSAGE that is a changing parameter of the method EXECUTE

    Suggestions?

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2016 at 02:30 PM

    Do you have the latest version of RUNLOGIC_PH? It reports for each process if it succeeded or failed..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2016 at 02:42 PM

    I've the version in request SB2K900062 I828793 RUNLOGIC_PH for HTG 2012.

    I also have an how to that has the attachment below that are modified in 2015

    do you think they are recent enough?

    thanks


    Immagine 1.png (6.9 kB)
    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.