<?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 Roll back a BAPI... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-a-bapi/m-p/3541545#M852051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have used 'BAPI_GOODSMVT_CREATE'  with Movement-type '309'  and 'BAPI_TRANSACTION_COMMIT'. Here i have created a new Batch-ID through the BAPI for which i have to change/update some data using a Function Module. If some Problem occurs in the function Module i want to roll back the BAPI Call. Is it possible after Bapi commit work?&lt;/P&gt;&lt;P&gt;if i give the 'BAPI_TRANSACTION_COMMIT' after the execution of the Function Module, it throws an error because the Batch-ID has not yet been created. So how can handle this situation were i don't want to lose the data while i entered while the Batch-id is created through BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you... waiting for your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2008 13:56:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-14T13:56:18Z</dc:date>
    <item>
      <title>Roll back a BAPI...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-a-bapi/m-p/3541545#M852051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have used 'BAPI_GOODSMVT_CREATE'  with Movement-type '309'  and 'BAPI_TRANSACTION_COMMIT'. Here i have created a new Batch-ID through the BAPI for which i have to change/update some data using a Function Module. If some Problem occurs in the function Module i want to roll back the BAPI Call. Is it possible after Bapi commit work?&lt;/P&gt;&lt;P&gt;if i give the 'BAPI_TRANSACTION_COMMIT' after the execution of the Function Module, it throws an error because the Batch-ID has not yet been created. So how can handle this situation were i don't want to lose the data while i entered while the Batch-id is created through BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you... waiting for your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 13:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-a-bapi/m-p/3541545#M852051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T13:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Roll back a BAPI...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-a-bapi/m-p/3541546#M852052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once a COMMIT is performed, it is too late to do a rollback; however, you can use  &lt;STRONG&gt;BAPI_GOODSMVT_CANCEL&lt;/STRONG&gt; to reverse the earlier document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 14:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/roll-back-a-bapi/m-p/3541546#M852052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T14:13:21Z</dc:date>
    </item>
  </channel>
</rss>

