<?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 Database Transaction In SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036892#M85289</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;Does SAP support database transations, what I am doing is getting the values from one Zdatabase table , and taking a value which holds the total, adding one to this , and placing the record in a differnt ztable, and then incrementing the 'total' value in the orginal; ztable , I obviously want to make sure the whole transaction occurs or nothing, I'm using insert , update in opensql.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2005 15:44:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-22T15:44:15Z</dc:date>
    <item>
      <title>Database Transaction In SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036892#M85289</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;Does SAP support database transations, what I am doing is getting the values from one Zdatabase table , and taking a value which holds the total, adding one to this , and placing the record in a differnt ztable, and then incrementing the 'total' value in the orginal; ztable , I obviously want to make sure the whole transaction occurs or nothing, I'm using insert , update in opensql.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 15:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036892#M85289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Database Transaction In SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036893#M85290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sims,&lt;/P&gt;&lt;P&gt; The required all-or-nothing cane be done using a flag based approach.&lt;/P&gt;&lt;P&gt;You can set a flag for succesful updates in both Z tables and based on that flag, you can say &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Commit work.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;In case of failure use,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Rollback work.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 15:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036893#M85290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T15:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Database Transaction In SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036894#M85291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it does,  I'm not too familiar with it.  Check out the statements,  COMMIT WORK, ROLLBACK WORK, and call function modules in UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 15:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036894#M85291</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-22T15:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Database Transaction In SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036895#M85292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve that by creating Lock objects through SE11. Create one lock object including these tables. Once you do that, the system will generate a ENQUEUE and a DEQUEUE function module. You need to call the ENQUEUE function module before making any updates to the table and then the DEQUEUE after making the updates. This ensures that your data is locked in one single transaction. Now coming to making all updates or no updates, you need to do the entire sequence in one single task. The sequence is&lt;/P&gt;&lt;P&gt;CALL ENQUEUE FUNCTION MODULE&lt;/P&gt;&lt;P&gt;DO THE UPDATES.&lt;/P&gt;&lt;P&gt;CALL DEQUEUE FUNCTION MODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 15:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036895#M85292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Database Transaction In SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036896#M85293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And of course as always, Rich and Ravi are correct in saying that you will do a commit or rollback depending on the situation. But the key is to do all of them in one task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 16:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-transaction-in-sap/m-p/1036896#M85293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T16:02:31Z</dc:date>
    </item>
  </channel>
</rss>

