<?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>topic Re: Commit error in a BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930637#M941172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you are right. I have noticed that in the documentation now. But the problem is in BADI "WORKORDER_UPDATE", I am using instance "BEFORE_UPDATE" as it has got all the data which I need. But it does not have any exceptions. There is an exception in instance "AT_SAVE" but it is being called before the instance which I am using. I need to give an error message from this BADI. Can you please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 13:02:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-29T13:02:48Z</dc:date>
    <item>
      <title>Commit error in a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930634#M941169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Workorder_update BADI. The code i am writing is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;         if wa_afvgb-ltxa1 NE wa_aafvc-ltxa1.
            MESSAGE e000(ZAN) with text-001.
          else.
            message e000(ZAN) with text-002.
          endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when I run IW32 trasaction and when I was suppossed to get this error, I am getting an error. It works fine till then, but then it gives me a dump saying "COMMIT work should not be interrupted". Can anyone please help me out here. I want the error to happen, but do not want the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 19:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930634#M941169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T19:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Commit error in a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930635#M941170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You MUST NOT raise any AEX message within BAdI methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either the methods have &lt;STRONG&gt;exception classes&lt;/STRONG&gt; defined in their interface or they may have &lt;STRONG&gt;parameters that indicate an error&lt;/STRONG&gt; in the method (e.g. CHANGING parameter CH_FAILED in one of the methods of BAdI ME_PROCESS_REQ_CUST).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 19:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930635#M941170</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-05-28T19:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Commit error in a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930636#M941171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You MUST NOT raise any AEX message within BAdI methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either the methods have &lt;STRONG&gt;exception classes&lt;/STRONG&gt; defined in their interface or they may have &lt;STRONG&gt;parameters that indicate an error&lt;/STRONG&gt; in the method (e.g. CHANGING parameter CH_FAILED in one of the methods of BAdI ME_PROCESS_REQ_CUST).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 19:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930636#M941171</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-05-28T19:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Commit error in a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930637#M941172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you are right. I have noticed that in the documentation now. But the problem is in BADI "WORKORDER_UPDATE", I am using instance "BEFORE_UPDATE" as it has got all the data which I need. But it does not have any exceptions. There is an exception in instance "AT_SAVE" but it is being called before the instance which I am using. I need to give an error message from this BADI. Can you please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 13:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930637#M941172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T13:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Commit error in a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930638#M941173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Called another program in which I specified the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 19:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-error-in-a-badi/m-p/3930638#M941173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T19:42:14Z</dc:date>
    </item>
  </channel>
</rss>

