<?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 Error Message in BAdI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247835#M1013851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I want to show an error message in standard program according to certain condition,&lt;/P&gt;&lt;P&gt;now I have found the BAdI and implemented it, append following codes in the BAdI:&lt;/P&gt;&lt;P&gt;MESSAGE E000(ZMSG) &lt;/P&gt;&lt;P&gt;Then I ran the standard program,errors messages came out,but when press ENTER,&lt;/P&gt;&lt;P&gt;the program dumps&lt;/P&gt;&lt;P&gt;I don't know why,can't the message statement be appended to BAdI  ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 05:16:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-06T05:16:59Z</dc:date>
    <item>
      <title>Error Message in BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247835#M1013851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I want to show an error message in standard program according to certain condition,&lt;/P&gt;&lt;P&gt;now I have found the BAdI and implemented it, append following codes in the BAdI:&lt;/P&gt;&lt;P&gt;MESSAGE E000(ZMSG) &lt;/P&gt;&lt;P&gt;Then I ran the standard program,errors messages came out,but when press ENTER,&lt;/P&gt;&lt;P&gt;the program dumps&lt;/P&gt;&lt;P&gt;I don't know why,can't the message statement be appended to BAdI  ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 05:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247835#M1013851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T05:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message in BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247836#M1013852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check suggestions given to the below thread of similar kind of issue..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5379274"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 05:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247836#M1013852</guid>
      <dc:creator>narin_nandivada3</dc:creator>
      <dc:date>2008-08-06T05:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message in BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247837#M1013853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;《Look if the BAdi interface has any exceptions defined for the method, if so, raise the exception with your message like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE e002(sy) WITH 'Error' RAISING &amp;lt;badi_exception&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or Simply call fm POPUP_TO_CONFIRM to show error messages to user&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure  》&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above are the solution suggestion I guoted from other thread.&lt;/P&gt;&lt;P&gt;For the solution 1, because I want to show error message in status bar,so it does not take effect&lt;/P&gt;&lt;P&gt;For the solution 2,truly,it takes effect,but what I should next? How I lock the current screen and stop the subsequent execution?  May 'Leave to screen' be effective?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 06:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247837#M1013853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T06:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message in BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247838#M1013854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simillar problem. I need BADI to stop processing after validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab INTO ld_field1&lt;/P&gt;&lt;P&gt;                 WITH KEY field1 = 'R'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&amp;lt; Here, I want to insert stop process statement &amp;gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I do now is using EXIT statement, but it just exit from the method. What I want is stop processing into next step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Indra Dewaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 05:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-badi/m-p/4247838#M1013854</guid>
      <dc:creator>indra_dewaji</dc:creator>
      <dc:date>2008-08-14T05:44:21Z</dc:date>
    </item>
  </channel>
</rss>

