<?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: Update database records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115180#M983856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;U can use UPDATE  or MODIFY for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  u need to change the exixting record then use modify..&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;DB-TABLE&amp;gt; FROM &amp;lt;ITAB&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in case u need to append new records use.. INSERT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;DB-TABLE&amp;gt; FROM table &amp;lt;ITAB&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Saikumar on Jul 7, 2008 12:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 07:21:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-07T07:21:34Z</dc:date>
    <item>
      <title>Update database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115176#M983852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plea send the procedure how to update and Change the existing records in database for perticular predefined tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any one plea send the appropriate answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115176#M983852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Update database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115177#M983853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;suppose for example KNA1.&lt;/P&gt;&lt;P&gt;here customer 1 is existed in KNA1 table like&lt;/P&gt;&lt;P&gt;kunnr = 1.&lt;/P&gt;&lt;P&gt;name1 = ram.&lt;/P&gt;&lt;P&gt;land1 = in.&lt;/P&gt;&lt;P&gt;ort01 = hyderabad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here i am changing ort01 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like kna1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kunnr = '1'.&lt;/P&gt;&lt;P&gt;itab-name1 = 'ram'.&lt;/P&gt;&lt;P&gt;itab-land1 = 'IN'.&lt;/P&gt;&lt;P&gt;itab-ort01 = 'singapore'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update kna1 from itab.&lt;/P&gt;&lt;P&gt;update &amp;lt;database table&amp;gt; from &amp;lt;inttable&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115177#M983853</guid>
      <dc:creator>venkatasriram_mygapula</dc:creator>
      <dc:date>2008-07-07T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115178#M983854</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;U can use update statement to update the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First bring the records to be updated into an internal table and then update the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For changing the records, first change the values u want to change in the internal table and the use MODIFY statement to modify the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115178#M983854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115179#M983855</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;Use keyword &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE dbtab FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure of itab should be same like dbtab and primary key values of existing records should be same to change the content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115179#M983855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115180#M983856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;U can use UPDATE  or MODIFY for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  u need to change the exixting record then use modify..&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;DB-TABLE&amp;gt; FROM &amp;lt;ITAB&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in case u need to append new records use.. INSERT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;DB-TABLE&amp;gt; FROM table &amp;lt;ITAB&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Saikumar on Jul 7, 2008 12:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115180#M983856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update database records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115181#M983857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sairam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have all the fields which are key fields in the table then append records which you want to update ina internal table and then update using&lt;/P&gt;&lt;P&gt;UPDATE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do niot have all key fields then update using&lt;/P&gt;&lt;P&gt;UPDATE and SET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, before making any changes in a database table you need to lock the table using fn. module : ENQUEUE_TABLE_E&lt;/P&gt;&lt;P&gt;passing the table name &lt;/P&gt;&lt;P&gt;and unlock the table using fn. module DEQUEUE_TABLE_E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-records/m-p/4115181#M983857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:28:21Z</dc:date>
    </item>
  </channel>
</rss>

