<?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: Updating an database table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535074#M244152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;     Try using the Commitwork after update statement.&lt;/P&gt;&lt;P&gt;     I hope this will work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2006 10:40:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-29T10:40:48Z</dc:date>
    <item>
      <title>Updating an database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535072#M244150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to update a table that is very dynamic.&lt;/P&gt;&lt;P&gt;since it is a dynamic table i'm trying to update each record seperately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from s883 where with all the key conditio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update s883 set 3 values(not key fields) where with the same key as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect .&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem here is all the updates will be stored in a bufeer till the commit work is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the mean time if any other program updates the s883 table then the data will be lost and becomes inconsistent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way where we can commit the changes immediately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 10:36:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535072#M244150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T10:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Updating an database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535073#M244151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why dont you just use the update statement ...secondly you can also do is lock and unlock the table !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 10:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535073#M244151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T10:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Updating an database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535074#M244152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;     Try using the Commitwork after update statement.&lt;/P&gt;&lt;P&gt;     I hope this will work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 10:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535074#M244152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T10:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Updating an database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535075#M244153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks for the replies.&lt;/P&gt;&lt;P&gt;I can't use update because there is some process going on in between and this piece of code is called inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And regarding that commit work in the select endselect it closes the cursor and it is an exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other pointers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 10:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535075#M244153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T10:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Updating an database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535076#M244154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lock and unlock the table before the select and after the commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you would get consitent updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 11:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535076#M244154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T11:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Updating an database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535077#M244155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can queue the table, use it and dequeue at the end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 11:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-an-database-table/m-p/1535077#M244155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T11:52:22Z</dc:date>
    </item>
  </channel>
</rss>

