<?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 and BDC bundling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-and-bdc-bundling/m-p/3008553#M710877</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 am using a 2 BAPI's and 3 BDC's in a program. I need all these BAPI and BDC's update the tanscations in a single bundled task? that is if any of BAPI or BDC failed the sucessful BAPI/BDC should be rolled back. How can I make it happen? Any sample code will be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Suggestion will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2007 06:26:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-02T06:26:25Z</dc:date>
    <item>
      <title>BAPI and BDC bundling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-and-bdc-bundling/m-p/3008553#M710877</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 am using a 2 BAPI's and 3 BDC's in a program. I need all these BAPI and BDC's update the tanscations in a single bundled task? that is if any of BAPI or BDC failed the sucessful BAPI/BDC should be rolled back. How can I make it happen? Any sample code will be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Suggestion will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 06:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-and-bdc-bundling/m-p/3008553#M710877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T06:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI and BDC bundling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-and-bdc-bundling/m-p/3008554#M710878</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;Identify the main bdc in ur program..when there is error in bdc program the errors will be populated in the BDCMSGcoll ..have a look .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION TCODE MODE 'N' UPDATE 'S' MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE MESSTAB WITH KEY TYP = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now call second bdc&lt;/P&gt;&lt;P&gt;then call third bdc.&lt;/P&gt;&lt;P&gt;call first bapi&lt;/P&gt;&lt;P&gt;call second bapi...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also for bapi's u will have return structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if return structure doesn't contain any error ,then only call "BAPI_TRANSACTION_COMMIT".&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>Fri, 02 Nov 2007 06:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-and-bdc-bundling/m-p/3008554#M710878</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-11-02T06:37:45Z</dc:date>
    </item>
  </channel>
</rss>

