<?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 Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393268#M190879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wasim,&lt;/P&gt;&lt;P&gt;the data base table is getting updated where ever the condition is matching. Its also changing the primary key fields. Actually requirement is to change only few primary fields not all the key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Jun 2006 06:41:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-17T06:41:30Z</dc:date>
    <item>
      <title>Update Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393265#M190876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In program using two tables A &amp;amp; B. The table A has more than one records for a given employee No. while Table B has only single record.&lt;/P&gt;&lt;P&gt;First a single record is picked from Table A &amp;amp; compared with Table B. IF it matches all the records of Table A for that employee No should get updated which includes primary key fields also.&lt;/P&gt;&lt;P&gt;This has been in a loop where single record of Table A is updated using &lt;/P&gt;&lt;P&gt;UPdate table A set field  where condition.&lt;/P&gt;&lt;P&gt;Is there any other faster way of doing this so that all the records can be updated collectively in Table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 04:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393265#M190876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T04:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393266#M190877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number of record updation depends on the the where condition you have mention if it matches more than one record than more than one record will be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you want to change primary key fields also then 'UPDATE' will not work and you have to delete record first and then insert it with new keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 04:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393266#M190877</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-06-17T04:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393267#M190878</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;as mentioned by u ...dont think primary key can be  updated as it's against DB concepts and data consistency:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but updating table mostly depends on the where clause u are using and move it to songle internal table and make sure the type of the internal table is same as the structure of the DB table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and say modify dbtable from internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 05:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393267#M190878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T05:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Update Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393268#M190879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wasim,&lt;/P&gt;&lt;P&gt;the data base table is getting updated where ever the condition is matching. Its also changing the primary key fields. Actually requirement is to change only few primary fields not all the key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 06:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393268#M190879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T06:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393269#M190880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anupma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key fields can't be changed with update or modify command. then how your table is updating i don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well its very simple if you want to change few key fields get your values in an internal table from database table and delete these values from database table. now change the fields that you want to change in internal table using loop endloop. modify. &lt;/P&gt;&lt;P&gt;And then insert these changes values back into database table using 'INSERT' OR 'MODIFY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 06:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table/m-p/1393269#M190880</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-06-17T06:50:23Z</dc:date>
    </item>
  </channel>
</rss>

