<?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: database updates... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updates/m-p/4310516#M1027556</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 Delete statement to delete the records from custom table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use modify statement to update the rest. Modify statement will update all the records in custom table by comparing the key fileds.  If the entry is already existing it will update fields other then key fields, which is equivalent to update statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the key fields are not present, it will create a new entry in the custom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reduce the no:of statements in the program u can go with &lt;/P&gt;&lt;P&gt;Modify and delete, which will suffice your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Krishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 19:12:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-06T19:12:29Z</dc:date>
    <item>
      <title>database updates...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updates/m-p/4310514#M1027554</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;A quick question on the best way to handle the data input in the table control on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assume i have a table control in which user enters 5 records and chooses to save. these 5 records are INSERTED in the custom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next time he chooses to delete 2 of them modify 2 of them, leave one unchanged and add 2 more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so whats the best way to update the custom table based on these changes ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply delete the earlier 5 from custom table and then based on what is available in the TC , insert into the table ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update the table with the 2 that were modified,&lt;/P&gt;&lt;P&gt;insert the new ones&lt;/P&gt;&lt;P&gt;delete the ones that were removed from the TC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 17:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updates/m-p/4310514#M1027554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T17:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: database updates...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updates/m-p/4310515#M1027555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;update the table with the 2 that were modified,&lt;/P&gt;&lt;P&gt;&amp;gt;insert the new ones&lt;/P&gt;&lt;P&gt;&amp;gt;delete the ones that were removed from the TC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the approach.&lt;/P&gt;&lt;P&gt;standard transactions also do the same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 18:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updates/m-p/4310515#M1027555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T18:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: database updates...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updates/m-p/4310516#M1027556</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 Delete statement to delete the records from custom table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use modify statement to update the rest. Modify statement will update all the records in custom table by comparing the key fileds.  If the entry is already existing it will update fields other then key fields, which is equivalent to update statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the key fields are not present, it will create a new entry in the custom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reduce the no:of statements in the program u can go with &lt;/P&gt;&lt;P&gt;Modify and delete, which will suffice your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Krishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 19:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updates/m-p/4310516#M1027556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T19:12:29Z</dc:date>
    </item>
  </channel>
</rss>

