<?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: bapi error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646823#M878235</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;  BAPIs have standardized error handling. They neve throw or raise any exception but return the corresponding messages.&lt;/P&gt;&lt;P&gt;If you simply want to check for success or failure you could use the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" BAPI returns single message&lt;/P&gt;&lt;P&gt;IF ( return-type CA 'AEX' ).&lt;/P&gt;&lt;P&gt;"... failure -&amp;gt; rollback and exit&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;"... success -&amp;gt; commit work&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"BAPI returns itab with messages&lt;/P&gt;&lt;P&gt;LOOP AT return TRANSPORTING NO FIELDS&lt;/P&gt;&lt;P&gt;WHERE ( type CA 'AEX' ).&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF ( syst-subrc = '0' ).&lt;/P&gt;&lt;P&gt;"... failure -&amp;gt; rollback and exit&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;"... success -&amp;gt; commit work&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the names of the return parameters may vary between BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the theard for more info.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11927970&amp;amp;messageID=2743114" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11927970&amp;amp;messageID=2743114&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2008 12:06:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-19T12:06:22Z</dc:date>
    <item>
      <title>bapi error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646820#M878232</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;        In a interview i was asked a question, how to handle errors in BAPI. Even though i have worked in BAPI, i don't know how to handle errors in BAPI. Please help me if anyone knows the answer....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;subbu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 09:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646820#M878232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T09:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: bapi error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646821#M878233</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;You can handle the errors in Bapi using the  the return structure not exception .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 10:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646821#M878233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T10:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: bapi error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646822#M878234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi subramanian karthi ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the following link for handling errors in bapis.&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_46c/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;Thanks ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;Surya Pydikondala.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 11:01:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646822#M878234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T11:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: bapi error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646823#M878235</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;  BAPIs have standardized error handling. They neve throw or raise any exception but return the corresponding messages.&lt;/P&gt;&lt;P&gt;If you simply want to check for success or failure you could use the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" BAPI returns single message&lt;/P&gt;&lt;P&gt;IF ( return-type CA 'AEX' ).&lt;/P&gt;&lt;P&gt;"... failure -&amp;gt; rollback and exit&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;"... success -&amp;gt; commit work&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"BAPI returns itab with messages&lt;/P&gt;&lt;P&gt;LOOP AT return TRANSPORTING NO FIELDS&lt;/P&gt;&lt;P&gt;WHERE ( type CA 'AEX' ).&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF ( syst-subrc = '0' ).&lt;/P&gt;&lt;P&gt;"... failure -&amp;gt; rollback and exit&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;"... success -&amp;gt; commit work&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the names of the return parameters may vary between BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the theard for more info.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11927970&amp;amp;messageID=2743114" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11927970&amp;amp;messageID=2743114&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 12:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646823#M878235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T12:06:22Z</dc:date>
    </item>
  </channel>
</rss>

