<?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_COMMIT AND ROLLBACK IN LOOP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124143#M1974483</link>
    <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/248472/srujanam.html"&gt;Srujana Reddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;check out the errors after BAPI_GOODSMOVEMENT_CREATE by filtering Return bapi Internal table for Errors.. if error don't commit the results.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abinath&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2019 04:17:23 GMT</pubDate>
    <dc:creator>Abinathsiva</dc:creator>
    <dc:date>2019-09-20T04:17:23Z</dc:date>
    <item>
      <title>BAPI _TRANSACTION_COMMIT AND ROLLBACK IN LOOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124141#M1974481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;In the logic that I built, I have to loop , and for each item &lt;/P&gt;
  &lt;P&gt;1. Goods Issue(GI) using BAPI_GOODSMOVEMENT_CREATE, and if successful commit it. &lt;/P&gt;
  &lt;P&gt;2. If GI created create Transfer requirement(TR) for GI. Commit if successful. (Question)&lt;/P&gt;
  &lt;P&gt;3. If TR is created, create Transfer Order for TR. If error (Question). &lt;/P&gt;
  &lt;P&gt;Question: If there is error creating TR , I would have to reverse the Goods movement which would create another MIGO document. So if I use BAPI_TRANSACTION_ROLLBACK, will it reverse all the previous created/commited GI/TR/TO as all these are in the same LUW? &lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 18:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124141#M1974481</guid>
      <dc:creator>srujanam</dc:creator>
      <dc:date>2019-09-19T18:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI _TRANSACTION_COMMIT AND ROLLBACK IN LOOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124142#M1974482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No,BAPI_TRANSACTION_ROLLBACK will not reverse previous commits.&lt;/P&gt;&lt;P&gt;You should use BAPIs in first 2 steps to know if there are any errors. Based on that, call BAPI_TRANSACTION_COMMIT at the end of third step. Then all the 3 steps will be in one LUW and that's how it should be done.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;GK&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 23:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124142#M1974482</guid>
      <dc:creator>GK817</dc:creator>
      <dc:date>2019-09-19T23:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI _TRANSACTION_COMMIT AND ROLLBACK IN LOOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124143#M1974483</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/248472/srujanam.html"&gt;Srujana Reddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;check out the errors after BAPI_GOODSMOVEMENT_CREATE by filtering Return bapi Internal table for Errors.. if error don't commit the results.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abinath&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 04:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124143#M1974483</guid>
      <dc:creator>Abinathsiva</dc:creator>
      <dc:date>2019-09-20T04:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI _TRANSACTION_COMMIT AND ROLLBACK IN LOOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124144#M1974484</link>
      <description>&lt;P&gt;The Logic is simple:&lt;/P&gt;&lt;P&gt;All the transactions that are committed Cannot be Rolled back. In Your Case you are trying to roll back transactions that are committed already which is not possible and correct too.&lt;/P&gt;&lt;P&gt;Probably you can alter your Logic as below:&lt;/P&gt;&lt;P&gt;1) Do not commit any transactions until your complete Cycle is completed successfully.&lt;/P&gt;&lt;P&gt;2) In case if there is failure at any step of the cycle then you Roll back (Without committing any transaction up front), this could be favorable for your scenario.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 04:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-and-rollback-in-loop/m-p/12124144#M1974484</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-09-20T04:20:44Z</dc:date>
    </item>
  </channel>
</rss>

