<?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 table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809410#M916282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinath,&lt;/P&gt;&lt;P&gt;MODIFY statement will work like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the entry is there already it will modify thet record. If not there then it will creates that record. If u dont want to create new records and only update existing records then u have to use &lt;STRONG&gt;UPDATE statement&lt;/STRONG&gt;&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;Update will modify if that record exist and returns sy-subrc as non zero if entry does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check F1 help for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on May 10, 2008 6:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 May 2008 12:46:25 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-05-10T12:46:25Z</dc:date>
    <item>
      <title>Update database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809409#M916281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to modify Database table from internal table. For that i am using the following statement:--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify &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;but this is creating an extra record for which ever record we are updating in internal table. the extra record shouldn't be created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone solve this problem??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 12:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809409#M916281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-10T12:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809410#M916282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinath,&lt;/P&gt;&lt;P&gt;MODIFY statement will work like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the entry is there already it will modify thet record. If not there then it will creates that record. If u dont want to create new records and only update existing records then u have to use &lt;STRONG&gt;UPDATE statement&lt;/STRONG&gt;&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;Update will modify if that record exist and returns sy-subrc as non zero if entry does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check F1 help for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on May 10, 2008 6:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 12:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809410#M916282</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-10T12:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809411#M916283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are two methods..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this statement use the command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete dbtab where field = wa_field .&lt;/P&gt;&lt;P&gt;it will delete the extra key record produced..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use the update command ..&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/update.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/update.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 12:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809411#M916283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-10T12:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809412#M916284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..&lt;/P&gt;&lt;P&gt;i tried both update and modify statements. even for update it doesnt work.&lt;/P&gt;&lt;P&gt;now since an extra record is being created, i tried deleting using:--&lt;/P&gt;&lt;P&gt;delete adjacent records from &amp;lt;itab&amp;gt; comparing &amp;lt;field&amp;gt;. &lt;/P&gt;&lt;P&gt;but that is not deleting the extra records &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; . what do i do??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 12:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809412#M916284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-10T12:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809413#M916285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shrinath,&lt;/P&gt;&lt;P&gt;Dis u sorted ur itab before deleting duplicates. This is &lt;STRONG&gt;Mandatory&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort itab BY ....&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES COMPARING....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORTing should be done by the fields in the COMARRING addition in the same order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update statement will work in ur case. May be u r looking at the records created earlier by u. Delete all the records u have created and test now by adding sort statement so that there will be no confusion in testing. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on May 10, 2008 6:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 13:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table/m-p/3809413#M916285</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-10T13:01:11Z</dc:date>
    </item>
  </channel>
</rss>

