<?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: how ro send error message from BADI to BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781974#M910010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arshi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answers could be more specific if you were more verbose:&lt;/P&gt;&lt;P&gt;Which BAPI and Which BAdI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume both are standard (not custom objects). I would not expect that BAdI methods have exceptions (either standard or class-based). If so then you can use the normal mechnisms to raise such an exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE ...
       RAISING &amp;lt;name of exception&amp;gt;.  " classic

RAISE EXCEPTION TYPE &amp;lt;name of exception class&amp;gt;
  ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More likely the method may have a (CHANGING) parameter like CH_FAILED (see BAdI ME_PROCESS_PO_CUST: interface IF_EX_ME_PROCESS_PO_CUST, method CHECK):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CH_FAILED = 'X'.  " error in BAdI method
&lt;/CODE&gt;&lt;/PRE&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, 29 Apr 2009 10:21:04 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-04-29T10:21:04Z</dc:date>
    <item>
      <title>how ro send error message from BADI to BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781971#M910007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a BADI which is triggered from a BAPI.This BADI method has only importing and changing parameters.How can i send error message to BAPI.Please reply at the earliest.&lt;/P&gt;&lt;P&gt;High points can be expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 05:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781971#M910007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T05:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: how ro send error message from BADI to BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781972#M910008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look up "Exception Handling". You can start with &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/cf/f2bbc8142c11d3b93a0000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/cf/f2bbc8142c11d3b93a0000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also several blogs that demonstrate exception handling as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 05:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781972#M910008</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-05-07T05:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: how ro send error message from BADI to BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781973#M910009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks got it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 08:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781973#M910009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T08:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: how ro send error message from BADI to BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781974#M910010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arshi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answers could be more specific if you were more verbose:&lt;/P&gt;&lt;P&gt;Which BAPI and Which BAdI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume both are standard (not custom objects). I would not expect that BAdI methods have exceptions (either standard or class-based). If so then you can use the normal mechnisms to raise such an exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE ...
       RAISING &amp;lt;name of exception&amp;gt;.  " classic

RAISE EXCEPTION TYPE &amp;lt;name of exception class&amp;gt;
  ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More likely the method may have a (CHANGING) parameter like CH_FAILED (see BAdI ME_PROCESS_PO_CUST: interface IF_EX_ME_PROCESS_PO_CUST, method CHECK):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CH_FAILED = 'X'.  " error in BAdI method
&lt;/CODE&gt;&lt;/PRE&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, 29 Apr 2009 10:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-ro-send-error-message-from-badi-to-bapi/m-p/3781974#M910010</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-04-29T10:21:04Z</dc:date>
    </item>
  </channel>
</rss>

