<?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 performance with delete in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904996#M1328817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts i have an issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have developed a small report where in the selection screen there are 2 buttons for insert and delete respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am inserting 100 records int0 a standard table,the table contains 1 crore records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i am deleteing the same 100 records it is taking much time and inse30 i can see the database utilization is more .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone have solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Badri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2009 11:40:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-29T11:40:39Z</dc:date>
    <item>
      <title>performance with delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904996#M1328817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts i have an issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have developed a small report where in the selection screen there are 2 buttons for insert and delete respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am inserting 100 records int0 a standard table,the table contains 1 crore records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i am deleteing the same 100 records it is taking much time and inse30 i can see the database utilization is more .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone have solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Badri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 11:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904996#M1328817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T11:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: performance with delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904997#M1328818</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;It is not advisable to delete or insert entries in standard table with ABAP statements &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any way provide me ur code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 11:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904997#M1328818</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2009-07-29T11:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: performance with delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904998#M1328819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you looping at the internal table and then deleting the records one at a time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to use the 'Where' clause with the delete statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete XXXX where ............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 11:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904998#M1328819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T11:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: performance with delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904999#M1328820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE FROM stxh WHERE tdobject = 'YIPMFOOTPR' OR&lt;/P&gt;&lt;P&gt;                               tdobject = 'YIPMLIEFBW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          l_dbcnt = sy-dbcnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MESSAGE i000 WITH l_dbcnt 'Entries deleted successfully from table'(031) text-013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MESSAGE i000 WITH 'Entries not found in the table'(032) text-013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 12:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5904999#M1328820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T12:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: performance with delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5905000#M1328821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U shuld not update or delete  standard tables directly with ABAP statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether any standard function module is available for ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since ur table consists crores of records ,definitely performance will be down.Try using any FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 13:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5905000#M1328821</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2009-07-29T13:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: performance with delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5905001#M1328822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the table which u have specified is related to SAP Script text file header .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why ur trying to update this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some function modules which seems to be useful for ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   CP_TX_QSS_DELETE                       Delete a long text for an inspection characteristic
   HEADER_MODIFY_TEXTLINE           Update inline line of the task list header
   TEXT_UPDATE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 13:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5905001#M1328822</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2009-07-29T13:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: performance with delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5905002#M1328823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bussu Badri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try giving with max no.of parameters , like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      DELETE FROM  STXH CLIENT SPECIFIED
       WHERE MANDT    =  CLIENT
         AND TDOBJECT =  OBJECT
         AND TDNAME   IN R_NAME                   " Range is specified , so as you can include more.
         AND TDID     IN R_ID
         AND TDSPRAS  IN R_LANGUAGE.           " No.of parameters , depends on ur requirement

and here the rows are deleted permanently from the database table in the next database commit. Until then, you can cancel the deletion in a database rollback. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it might be helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 13:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-delete/m-p/5905002#M1328823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T13:09:51Z</dc:date>
    </item>
  </channel>
</rss>

