Skip to Content

Capture error returned by the execution of BADI in script logic

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 07 at 11:34 AM

    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

    Add comment
    10|10000 characters needed characters exceeded