<?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: Deleting the Data from Data base table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754494#M1582954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need to make an index for your table if you are using following command&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE FROM ... WHERE ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2011 12:53:45 GMT</pubDate>
    <dc:creator>AlexanderOv</dc:creator>
    <dc:date>2011-03-15T12:53:45Z</dc:date>
    <item>
      <title>Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754487#M1582947</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;I am deleting the data from Data base table.In Dev system as we have very less records, my program is worling fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in Quality system, it is failing why because huge amont of data is present in Data base table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Basis team advised me that Delete the records in group and COMMIT the data base table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we delete some 1000 records and COMMIT the data base table and again can we delete some 1000 records and COMIIT the data base table so that we can reduce the load on Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we put Delete Statement in Loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please advise me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 11:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754487#M1582947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754488#M1582948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check whether you can use perform .. on commit or update function module for this task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:04:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754488#M1582948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754489#M1582949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You for your reply. We dont have any Perform On Commit or Update Function Module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754489#M1582949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754490#M1582950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do a delete &amp;lt;dbtab&amp;gt; from &amp;lt;internal table&amp;gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do mass updates to a non-production system, but not deletes, but it works like this:  I have a package size on screen (type I).....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from [dbtable name] into [internal table of same type as dbtable]
package size p_pkg "(from screen parameter)
where....(any appropriate where clause).

* do any necessary logic to figure out what to keep or discard from internal table.

Delete [dbtable name] from [internal table].

endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: COMMIT is not needed....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run single-thread...NOT in parallel, since you can get deadlocks from having multiple executions simultaneously!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: BreakPoint on Mar 15, 2011 1:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754490#M1582950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754491#M1582951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the ABAP help on DELETE dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should give you an idea how to delete per a certain amount of records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754491#M1582951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754492#M1582952</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;just write the below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from [dbtable name] into [internal table of same type as dbtable]&lt;/P&gt;&lt;P&gt;where....(any appropriate where clause).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at internal table into work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete dbtable from work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will deleted the selected data base table entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ksardar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754492#M1582952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754493#M1582953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you deleting the whole database table, then DELETE is not the fastest way, you could delete and recreate the table from ddic definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at FM like [MCS_BIW_DROP_CREATE_TABLE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=mcs_biw_drop_create_table] or manage it yourself with [DB_STORAGE_SAVE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=db_storage_save], [DD_DROP_TABLE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=dd_drop_table], [DD_GET_NAMETAB|http://www.sdn.sap.com/irj/scn/advancedsearch?query=dd_get_nametab] and [DD_CREATE_TABLE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=dd_create_table].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754493#M1582953</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-03-15T12:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754494#M1582954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need to make an index for your table if you are using following command&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE FROM ... WHERE ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754494#M1582954</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2011-03-15T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754495#M1582955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How much is "huge amount"? How exactly is it "failing", what error message / short dump are you seeing?&lt;/P&gt;&lt;P&gt;Do you want to delete the entire table contents in all clients (see Raymond's reply), or just selected entries?&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 13:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754495#M1582955</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-03-15T13:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754496#M1582956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, now i'm curious about the table itself: what's the name of the table you need to delete?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 13:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754496#M1582956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T13:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the Data from Data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754497#M1582957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksardar, you copied my post as your own work?! And, didn't even change the words!  And, then provided a &lt;STRONG&gt;MUCH SLOWER&lt;/STRONG&gt; way to accomplish the same delete process!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 13:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-data-from-data-base-table/m-p/7754497#M1582957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T13:55:34Z</dc:date>
    </item>
  </channel>
</rss>

