<?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 Complex Commit sap table &amp; external Oracle DB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/complex-commit-sap-table-external-oracle-db/m-p/7808070#M1587819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to executes 2 commits.&lt;/P&gt;&lt;P&gt;There are dependencies between both commits if one them failed i need to do rollback to sap table &amp;amp; external DB.&lt;/P&gt;&lt;P&gt;the commits are:&lt;/P&gt;&lt;P&gt;1) First fm "bapi_transaction_commit" -&amp;gt; update sap table .&lt;/P&gt;&lt;P&gt;2) Second Class cl_sql_connection method commit -&amp;gt; update external Oracle DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afarid of the situation that first step will succeed the second will not succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i solve this problem ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2011 13:49:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-13T13:49:33Z</dc:date>
    <item>
      <title>Complex Commit sap table &amp; external Oracle DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/complex-commit-sap-table-external-oracle-db/m-p/7808070#M1587819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to executes 2 commits.&lt;/P&gt;&lt;P&gt;There are dependencies between both commits if one them failed i need to do rollback to sap table &amp;amp; external DB.&lt;/P&gt;&lt;P&gt;the commits are:&lt;/P&gt;&lt;P&gt;1) First fm "bapi_transaction_commit" -&amp;gt; update sap table .&lt;/P&gt;&lt;P&gt;2) Second Class cl_sql_connection method commit -&amp;gt; update external Oracle DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afarid of the situation that first step will succeed the second will not succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i solve this problem ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 13:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/complex-commit-sap-table-external-oracle-db/m-p/7808070#M1587819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-13T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Commit sap table &amp; external Oracle DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/complex-commit-sap-table-external-oracle-db/m-p/7808071#M1587820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your current design, you may have to physically rollback the changes by restoring the old impression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to change the sequence of the commits? You would have better control on updating the SAP DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 14:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/complex-commit-sap-table-external-oracle-db/m-p/7808071#M1587820</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2011-04-14T14:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Commit sap table &amp; external Oracle DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/complex-commit-sap-table-external-oracle-db/m-p/7808072#M1587821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even if you change the order or try to back out the changes, you can still run into problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Google "two phase commit".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 15:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/complex-commit-sap-table-external-oracle-db/m-p/7808072#M1587821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-14T15:06:32Z</dc:date>
    </item>
  </channel>
</rss>

