<?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 delete any entry in the table before adding an entry? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415128#M199721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the data in the work area. I can modify / update / insert to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write the ABAP code for this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) to delete any entries in the table&lt;/P&gt;&lt;P&gt;2) update this entry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so finally always there would be only one entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BWer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2006 13:04:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-19T13:04:15Z</dc:date>
    <item>
      <title>delete any entry in the table before adding an entry?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415128#M199721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the data in the work area. I can modify / update / insert to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write the ABAP code for this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) to delete any entries in the table&lt;/P&gt;&lt;P&gt;2) update this entry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so finally always there would be only one entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BWer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 13:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415128#M199721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: delete any entry in the table before adding an entry?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415129#M199722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use update statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update ztab from wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a match with the same key fields, then the record will be updated, if not no updates wil be done.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 13:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415129#M199722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T13:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: delete any entry in the table before adding an entry?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415130#M199723</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;Delete the entries of table by this stmt.&lt;/P&gt;&lt;P&gt;DELETE FROM (dbtabname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then insert the values from workarea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO dbtab VALUES &amp;lt;work_area&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And u can upadte the entry with values of workarea by this stmr.&lt;/P&gt;&lt;P&gt;UPDATE (dbtabname) FROM wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont use MODIFY. It will add a new record if its a new entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 13:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415130#M199723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T13:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: delete any entry in the table before adding an entry?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415131#M199724</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;Delete the entries of table with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DELETE FROM &amp;lt;dbtable&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For inserting the values from workarea Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INSERT INTO &amp;lt;dbtable&amp;gt; VALUES &amp;lt;wa&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Updatimg the values from work area. Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;UPDATE &amp;lt;dbtabname&amp;gt; FROM wa.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 13:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415131#M199724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T13:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: delete any entry in the table before adding an entry?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415132#M199725</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;1) to delete any entries in the table&lt;/P&gt;&lt;P&gt;   Delete From &amp;lt;database table name&amp;gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   to delete specific entries &lt;/P&gt;&lt;P&gt;   Delete From &amp;lt;database table name&amp;gt; where &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) update this entry&lt;/P&gt;&lt;P&gt;   insert into &amp;lt;database table name&amp;gt; from &amp;lt;workarea&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sameena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sameena attarwala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 13:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-any-entry-in-the-table-before-adding-an-entry/m-p/1415132#M199725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T13:28:11Z</dc:date>
    </item>
  </channel>
</rss>

