<?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 Edit field in a Data Base Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818752#M918412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change field VERME(available stock) in LQUA table. The requirement is whenever the value is less than zero in VERME, we should change that to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know its not good to update the DB table directly, but there is no other alternative. The scope is very limited and I am trying to write some program just for this only purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you guys any sample program for this requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2008 18:47:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-08T18:47:28Z</dc:date>
    <item>
      <title>Edit field in a Data Base Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818752#M918412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change field VERME(available stock) in LQUA table. The requirement is whenever the value is less than zero in VERME, we should change that to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know its not good to update the DB table directly, but there is no other alternative. The scope is very limited and I am trying to write some program just for this only purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you guys any sample program for this requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 18:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818752#M918412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T18:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Edit field in a Data Base Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818753#M918413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select all the rows where VERME LT 0 together with the whole key in an internal table. Change the field VERME to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next use UPDATE statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE dbtable FROM TABLE db_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a lot of records that need to be updated, you might want to consider to select packages of a 1000 records at once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 20:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818753#M918413</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-08T20:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Edit field in a Data Base Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818754#M918414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While updating any data base , You should use the Lock Object concept also. So is some one else also trying to update the same table it doesn't give you short dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 00:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818754#M918414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T00:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Edit field in a Data Base Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818755#M918415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can update a database table by first locking the table using Function module&lt;/P&gt;&lt;P&gt;ENQUEUE_TABLE_E&lt;/P&gt;&lt;P&gt;by passing table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then update record in table using statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update LQUA set VERME = 0&lt;/P&gt;&lt;P&gt;WHERE VERME le 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement unlock the database table using function module&lt;/P&gt;&lt;P&gt;DEQUEUE_TABLE_E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if answer is helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;Mukul Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 11:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818755#M918415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T11:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Edit field in a Data Base Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818756#M918416</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;you can use the lock object concept here firsst create one lock object in se11 and &lt;/P&gt;&lt;P&gt; update a database table by first locking the table using Function module&lt;/P&gt;&lt;P&gt;ENQUEUE_En by passing table name.Then update record in table using statement&lt;/P&gt;&lt;P&gt;update LQUA set VERME = 0WHERE VERME le 0.After this statement unlock the database table using function module&lt;/P&gt;&lt;P&gt;DEQUEUE_dE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;dilip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 10:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818756#M918416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T10:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Edit field in a Data Base Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818757#M918417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing the thread because no longer in search for that answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 20:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-field-in-a-data-base-table/m-p/3818757#M918417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T20:45:22Z</dc:date>
    </item>
  </channel>
</rss>

