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