<?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 bapi error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646758#M878216</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:54:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-12T09:54:18Z</dc:date>
    <item>
      <title>bapi error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646758#M878216</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:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646758#M878216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: bapi error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646759#M878217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;every bapi has a return structure with name bapiret2 or bapireturn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make an internal table with that structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every bapi has an importing parameter return &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;pass the internal table to it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we will get messages in the internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read the table with message type s &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then perform commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is helpful please reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: moazam hai on Apr 12, 2008 12:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 10:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646759#M878217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T10:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: bapi error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646760#M878218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subramanian,&lt;/P&gt;&lt;P&gt;Every BAPI fm has one parameter under tables called &lt;STRONG&gt;RETURN&lt;/STRONG&gt;. When u execute the BAPI what ever messages u get irrespective of message type all will be returned in this table. After calling the BAPI u have to read this table with TYPE = 'E' for errors. If no errors the again read with TYPE = 'A' Abort messages. If again fails then ur BAPI has successfuuly worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one more message which indicates Failure i.e TYPE = 'X'. But generally we will never encounter this message.&lt;/P&gt;&lt;P&gt;So u can read the return table with TYPE = E and A. If Both fails then ur BAPI is success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In most of the BAPIs there will be one importing parameter which will return Document number generated etc. It depends on the application of the BAPI. Suppose if u are posting some thing then a document will be generated and will be returned in this parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 12:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-error/m-p/3646760#M878218</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-04-12T12:56:52Z</dc:date>
    </item>
  </channel>
</rss>

