<?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 transaction rollback issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583106#M1860413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Noorie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SET UPDATE TASK lOCAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also i m not able to roll back. can u plz expain abt set update task local clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its urgent...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Sep 2014 03:10:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-20T03:10:27Z</dc:date>
    <item>
      <title>bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583098#M1860405</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;I am elaborating my issue below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 ) I am using BAPI_PO_CREATE to create a po number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 ) Before use BAPI_TRANSACTION_COMMIT, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling BAPI_GOODSMVT_CREATE to create material document, only by using the po number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 ) Once BAPI_GOODSMVT_CREATE is sucessfull then i am commiting both the bapi by BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 ) But IF BAPI_GOODSMVT_CREATE is unsuccessful then i am calling BAPI_TRANSACTION_ROLLBACK for BAPI_PO_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i m checking by debug, its executing the BAPI_TRANSACTION_ROLLBACK,but the po is not removing / rollbacking from table like EKKO or EKPO table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide some suggestion, because if BAPI_GOODSMVT_CREATE is fails, i need to use BAPI_TRANSACTIOB_ROLLBACK&amp;nbsp; for both the above mentioned bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajit sarangi &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 15:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583098#M1860405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-16T15:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583099#M1860406</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;Do you mean you call one COMMIT only for both BAPIs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 15:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583099#M1860406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-16T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583100#M1860407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I used one Commit for both bapi, bcz if i m using bapi commit once then it ll work for all bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another think is that before COMMIT, the newly created po number has updated in tables, that i checked. (ekko and ekpo).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even i use separate commit for both bapi , still roll back is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please suggest, if BAPI_GOODSMVT_CREATE has fail , how to roll back BAPI_PO_CREATE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; REgards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajit sarangi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 17:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583100#M1860407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-16T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583101#M1860408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajit,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;you are using SQL-Server. Am i right ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt; Hans-Juergen&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 19:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583101#M1860408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-16T19:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583102#M1860409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uhm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you call the BAPI &lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;BAPI_PO_CREATE without the commit, how &lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;BAPI_GOODSMVT_CREATE can create an incoming goods for purchase order?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This order will exist only after calling the COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the PO if &lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;BAPI_GOODSMVT_CREATE fails you should "delete" the PO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 08:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583102#M1860409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-17T08:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583103#M1860410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try scenario of failed goods movement without debug. Use write something similar to know what PO was created. I think you'll find that ROLLBACK works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 08:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583103#M1860410</guid>
      <dc:creator>amitkumar24</dc:creator>
      <dc:date>2014-09-17T08:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583104#M1860411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ajit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had similar problem with 2 table updates.&lt;/P&gt;&lt;P&gt;Try using&lt;STRONG&gt; "SET UPDATE TASK LOCAL", this will solve problem like this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET UPDATE TASK LOCAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call BAPI1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Call BAPI2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; if Sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commit.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; else. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rollback.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 09:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583104#M1860411</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2014-09-17T09:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583105#M1860412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Bapi_goodsmvt_create is creating the material document without commit to bapi_po_create,bcz with the&amp;nbsp; po number created after bapi_po_create run and before bapi_po_create commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then once bapi_goodsmvt_create is sucessfull, i m commiting both the bapi once by bapi_transaction_commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But whn 2nd bapi fails , i m not able to rollback the po number generated by first bapi execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 03:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583105#M1860412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-20T03:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583106#M1860413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Noorie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SET UPDATE TASK lOCAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also i m not able to roll back. can u plz expain abt set update task local clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its urgent...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 03:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583106#M1860413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-20T03:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583107#M1860414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Hans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i&amp;nbsp; m using sql- server,db- oracle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 03:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583107#M1860414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-20T03:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583108#M1860415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged and chked that po number created and update in table like ekko, ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but roll back is woking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 03:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583108#M1860415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-20T03:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583109#M1860416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you plz post your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 13:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583109#M1860416</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2014-09-21T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583110#M1860417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use Oracle-Db and you can see EKKO and EKPO filled ins SE16 before commit, something is wrong. Maybe you have an user-exit where someone programmed a "commit work".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 14:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583110#M1860417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-21T14:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583111#M1860418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Noorie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you suggest, I have done by below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;SET UPDATE TASK LOCAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;Call BAPI_PO_CREATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;if sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;(I am getting po number and also it updated in ekko and ekpo table)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp; Call BAPI_GOODSMVT_CREATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;(Passing po number)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp; if Sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commit. for both bapi&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp; else.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rollback.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp; perform error_mvt&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp; endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;else.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;perfor error_bapi_po.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 15:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583111#M1860418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-21T15:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583112#M1860419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roll back will work within the LUW. Table entries also sometimes reverted whenever roll back calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vadamalai A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 15:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583112#M1860419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-21T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583113#M1860420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is impossible to see EKKO entries before commit on Oracle DB. Maybe you did a commit in the debugger ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 16:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583113#M1860420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-21T16:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583114#M1860421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear hans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not impossible, I am facing the problem,so that i am asking for suggestions from you guys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once bapi execute, without commit the po number is updated in tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 17:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583114#M1860421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-21T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583115#M1860422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ajit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's why I was asking for your DB-System. If you use Microsoft SQL-Server you are right, if you you use Oracle you can not see anything without commit.&lt;/P&gt;&lt;P&gt;Go to any function module of function group XM06 and make a string search for "commit" in MAIN PROGRAM. Search bapi implementations for ME21N and do the same. There has to be reason why you can see EKKO and EKPO values before commit when using Oracle DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 07:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583115#M1860422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-22T07:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583116#M1860423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your code logic is fine and it should behave the way you want. Does your logic works fine (rollback scenario &amp;amp; commit scenario both) when you do not debug it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it does, then I would put the blame on debugger. If SAP debugger is running in Non-exclusive mode then it'll do roll-in &amp;amp; roll-out for each step of code and hence commit is triggered at each step. So the PO creation done by your first BAPI call is committed even before you decide to commit or rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let the community know if this explains things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 08:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583116#M1860423</guid>
      <dc:creator>amitkumar24</dc:creator>
      <dc:date>2014-09-22T08:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: bapi transaction rollback issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583117#M1860424</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;I think Hans is right, there's something in your PO creation process raises a COMMIT, else:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The data would not be saved in table (all saving processes start after COMMIT, so without commit no data in DB;&lt;/P&gt;&lt;P&gt;- The second BAPI would fail: I can't still understand how BAPI_GOODSMVT_CREATE can create a MM document for a PO if the PO doesn't exist (if you don't call the COMMIT after BAPI_PO_CREATE, you can have only the PO number, nothing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So something doesn't sound good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to check in the user-exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 09:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-rollback-issue/m-p/10583117#M1860424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-22T09:24:30Z</dc:date>
    </item>
  </channel>
</rss>

