<?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 to handle errors in BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638724#M284630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have two structures 'BAPIRETURN' and BAPIRET2 which u have to use in ur BAPI FM as export parameter or tables parameter which will hold the errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For passing the errors to these structures u have to call FM&lt;/P&gt;&lt;P&gt;BALW_BAPI_RETURN_GET'.See the FM documentation in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And see the structure parameters in SE11 for better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 11:31:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T11:31:39Z</dc:date>
    <item>
      <title>How to handle errors in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638720#M284626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;    Could  you  give me  stuff  regarding  &lt;/P&gt;&lt;P&gt;    1)  how to  handle  errors in BAPI&lt;/P&gt;&lt;P&gt;    2) In BAPI  How  should  Return   custom fields in BAPIRET2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 05:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638720#M284626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T05:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle errors in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638721#M284627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REFER..&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="501567"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 05:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638721#M284627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T05:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle errors in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638722#M284628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to create a parameter named Return for every BAPI. This parameter returns exception messages or success messages to the calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs themselves must not trigger any messages (such as MESSAGE xnnn) in the coding. In particular they must not generate terminations or display dialog boxes. Instead, all messages must be intercepted internally and reported back to the calling program in the Return parameter. Otherwise the BAPI will not be processed correctly and control may not be given back to the calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All error messages or indeed any message that may be returned by the BAPI, must be defined in message table (Tools -&amp;gt; ABAP Workbench -&amp;gt; Development -&amp;gt; Programming environment -&amp;gt; Messages) and described in the documentation for the return parameter. This also applies to the most important or most likely error messages generated by other programs that can be indirectly passed via the BAPI to the application program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 05:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638722#M284628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T05:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle errors in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638723#M284629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BAPI'S u can handle the errors  with the help of  BAPI RETURN  parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to declare an internal table like BAPIRET2. u need to pass this internal table to the RETURN structure  .Now this internal table will capture the error messages once u run the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 05:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638723#M284629</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-11-13T05:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle errors in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638724#M284630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have two structures 'BAPIRETURN' and BAPIRET2 which u have to use in ur BAPI FM as export parameter or tables parameter which will hold the errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For passing the errors to these structures u have to call FM&lt;/P&gt;&lt;P&gt;BALW_BAPI_RETURN_GET'.See the FM documentation in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And see the structure parameters in SE11 for better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-errors-in-bapi/m-p/1638724#M284630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:31:39Z</dc:date>
    </item>
  </channel>
</rss>

