<?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: Calling BAPI_TRANSACTION_COMMIT after a BAPI called failed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392306#M190539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i have is that I call a Function Module (someone else wrote),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Their logic is:&lt;/P&gt;&lt;P&gt;BUPA_INBOUND_MAIN_SAVE&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT (Does not care if an error occured or not)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an error occured during BUPA_INBOUND_MAIN_SAVE the partner is locked and no one else can edit the partner except my session. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i ask him to put a rollback will this release the lock on the business partner?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2006 09:01:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-05T09:01:42Z</dc:date>
    <item>
      <title>Calling BAPI_TRANSACTION_COMMIT after a BAPI called failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392301#M190534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i call BUPA_INBOUND_MAIN_SAVE and it fails for some reason, i.e. there are Errors or Aborts in the return parameter and i then call BAPI_TRANSACTION_COMMIT will the locks on the record be released?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does a user need to explicitly call RollBack if there was an error and Commit if there was no errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Will give points, promise!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 08:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392301#M190534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T08:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI_TRANSACTION_COMMIT after a BAPI called failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392302#M190535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should not need to call the BAPI_TRANSACTION_COMMIT if the bapi call was unsuccessful. All locks should be released by the bapi itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 08:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392302#M190535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T08:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI_TRANSACTION_COMMIT after a BAPI called failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392303#M190536</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;If there were any errors during a BAPI call its safe to call BAPI_TRANSACTION_ROLLBACK. You SHOULD NOT call the COMMIT bapi if there were any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 08:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392303#M190536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T08:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI_TRANSACTION_COMMIT after a BAPI called failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392304#M190537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT is used to commit the transaction and should not be called if there is an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need not perform rollback if there are errors but you do need to use an explicit COMMIT or BAPI_TRANSACTION_COMMIT if there is no error to be sure of the transaction being comitted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 08:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392304#M190537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI_TRANSACTION_COMMIT after a BAPI called failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392305#M190538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;You could check the return parameter and call commit Bapi only if the BUPA_INBOUND_MAIN_SAVE returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is an error or abort data will not be updated in the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 08:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392305#M190538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI_TRANSACTION_COMMIT after a BAPI called failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392306#M190539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i have is that I call a Function Module (someone else wrote),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Their logic is:&lt;/P&gt;&lt;P&gt;BUPA_INBOUND_MAIN_SAVE&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT (Does not care if an error occured or not)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an error occured during BUPA_INBOUND_MAIN_SAVE the partner is locked and no one else can edit the partner except my session. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i ask him to put a rollback will this release the lock on the business partner?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 09:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392306#M190539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T09:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling BAPI_TRANSACTION_COMMIT after a BAPI called failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392307#M190540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Rollback shoulr release the lock on the business partner. But if you are going to ask him to add a roll back, you might as well ask him to commit only if there is no error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you dont have to rollback on error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 09:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bapi-transaction-commit-after-a-bapi-called-failed/m-p/1392307#M190540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T09:20:49Z</dc:date>
    </item>
  </channel>
</rss>

