Skip to Content
0

Capture error returned by the execution of BADI in script logic

Mar 07 at 11:10 AM

20

avatar image
Former Member

Hello,

I want to know if it is possible to capture error returned by the execution of a first BADI in a logic script, so as not to execute the second BADI.

Something like:

IF BADI1 return OK -> RUN BADI2

My script logic:

---INI script---

*START_BADI ZENV_CALC_REP_POL

SECCION = %SECCION_SET%

TIEMPO = %TIEMPO_SET%

VERSION = %VERSION_SET%

BORRADO = S

QUERY = OFF

WRITE = ON

DEBUG = OFF

*END_BADI

*START_BADI ZENV_CALC_AGR_PAR_POL

SECCION = %SECCION_SET%

TIEMPO = %TIEMPO_SET%

VERSION = %VERSION_SET%

BORRADO = S

QUERY = OFF

WRITE = ON

DEBUG = OFF

*END_BADI

*COMMIT

---END script---

My system is SAP BPC 10.0 NW SP22.

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Vadim Kalinin Mar 07 at 11:34 AM
0

You can stop script execution on exception generated in the first BADI.

Please read note: https://launchpad.support.sap.com/#/notes/2487016 SP25 required!

Also read this discussion: https://answers.sap.com/questions/113793/how-to-stop-the-script-execution-in-case-of-error.html

Share
10 |10000 characters needed characters left characters exceeded