<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Capture error returned by the execution of BADI in script logic in Financial Management Q&amp;A</title>
    <link>https://community.sap.com/t5/financial-management-q-a/capture-error-returned-by-the-execution-of-badi-in-script-logic/qaa-p/650186#M18906</link>
    <description>&lt;P&gt;You can stop script execution on exception generated in the first BADI.&lt;/P&gt;
  &lt;P&gt;Please read note: &lt;A href="https://launchpad.support.sap.com/#/notes/2487016" target="test_blank"&gt;https://launchpad.support.sap.com/#/notes/2487016&lt;/A&gt; SP25 required!&lt;/P&gt;
  &lt;P&gt;Also read this discussion: &lt;A href="https://answers.sap.com/questions/113793/how-to-stop-the-script-execution-in-case-of-error.html" target="test_blank"&gt;https://answers.sap.com/questions/113793/how-to-stop-the-script-execution-in-case-of-error.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 11:34:33 GMT</pubDate>
    <dc:creator>former_member186338</dc:creator>
    <dc:date>2018-03-07T11:34:33Z</dc:date>
    <item>
      <title>Capture error returned by the execution of BADI in script logic</title>
      <link>https://community.sap.com/t5/financial-management-q-a/capture-error-returned-by-the-execution-of-badi-in-script-logic/qaq-p/650185</link>
      <description>&lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;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.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Something like:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;IF BADI1 return OK -&amp;gt; RUN BADI2&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;My script logic:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;---INI script---&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;*START_BADI ZENV_CALC_REP_POL&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;SECCION = %SECCION_SET%&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;TIEMPO = %TIEMPO_SET%&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;VERSION = %VERSION_SET%&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;BORRADO = S&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;QUERY = OFF&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;WRITE = ON&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;DEBUG = OFF&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;*END_BADI&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;*START_BADI ZENV_CALC_AGR_PAR_POL&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;SECCION = %SECCION_SET%&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;TIEMPO = %TIEMPO_SET%&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;VERSION = %VERSION_SET%&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;BORRADO = S&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;QUERY = OFF&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;WRITE = ON&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;DEBUG = OFF&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;*END_BADI&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;*COMMIT&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;---END script---&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;My system is SAP BPC 10.0 NW SP22.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 11:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/capture-error-returned-by-the-execution-of-badi-in-script-logic/qaq-p/650185</guid>
      <dc:creator>former_member341613</dc:creator>
      <dc:date>2018-03-07T11:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error returned by the execution of BADI in script logic</title>
      <link>https://community.sap.com/t5/financial-management-q-a/capture-error-returned-by-the-execution-of-badi-in-script-logic/qaa-p/650186#M18906</link>
      <description>&lt;P&gt;You can stop script execution on exception generated in the first BADI.&lt;/P&gt;
  &lt;P&gt;Please read note: &lt;A href="https://launchpad.support.sap.com/#/notes/2487016" target="test_blank"&gt;https://launchpad.support.sap.com/#/notes/2487016&lt;/A&gt; SP25 required!&lt;/P&gt;
  &lt;P&gt;Also read this discussion: &lt;A href="https://answers.sap.com/questions/113793/how-to-stop-the-script-execution-in-case-of-error.html" target="test_blank"&gt;https://answers.sap.com/questions/113793/how-to-stop-the-script-execution-in-case-of-error.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 11:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/capture-error-returned-by-the-execution-of-badi-in-script-logic/qaa-p/650186#M18906</guid>
      <dc:creator>former_member186338</dc:creator>
      <dc:date>2018-03-07T11:34:33Z</dc:date>
    </item>
  </channel>
</rss>

