<?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: Performance issue while deleting entries from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598473#M1940101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are on 7.40, SP08 or higher you can try Filter: &lt;A __default_attr="114547" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="ABAP News for 7.40, SP08 - More for Internal Tables" href="https://community.sap.com/" modifiedtitle="true" title="ABAP News for 7.40, SP08 - More for Internal Tables"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't know about its performance though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2016 14:58:33 GMT</pubDate>
    <dc:creator>ThomasKruegl</dc:creator>
    <dc:date>2016-03-08T14:58:33Z</dc:date>
    <item>
      <title>Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598463#M1940091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two internal tables. Both internal tables have more than 50,000 rows.&lt;/P&gt;&lt;P&gt;The scenario is: I want to delete data in one internal table based on other internal table entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried both below scenarios:&lt;/P&gt;&lt;P&gt;1. Looping one internal table and deleting entries in other internal table based on where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1.&lt;/P&gt;&lt;P&gt;Delete itab2 where field = itab1-field.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Converting the values in itab1 into ranges and then deleting from ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete itab2 where field in r_range1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But both syntaxes are taking lot of time. I understand that since there are more than 50,000 records, it could take some time.&lt;/P&gt;&lt;P&gt;But the user is running the report online. So, waiting for 5 minutes is becoming an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any better syntax than the two described above?&lt;/P&gt;&lt;P&gt;I have tried searching forums, but most of the thread talk about Database deletes and not internal table deletes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 11:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598463#M1940091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-07T11:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598464#M1940092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Insert a new field in the internal table which you want to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for your condition using a loop and read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your condition matches, make an entry or set the flag in the field and modify it inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use DELETE statement outside the LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE itab WHERE flag EQ 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 11:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598464#M1940092</guid>
      <dc:creator>davis_raja</dc:creator>
      <dc:date>2016-03-07T11:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598465#M1940093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you'll get almost the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="171843" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Chinmay Kulkarni" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;1. Looping one internal table and deleting entries in other internal table based on where condition&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Loop at itab1.&lt;/P&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Delete itab2 where field = itab1-field.&lt;/P&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Endloop.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;1- ITAB1-FIELD is unique or can exist multiple times?&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;2- ITAB2 is sorted by the deletion field?&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;SORT ITAB1 by FIELD&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;SORT ITAB2 by field&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;LOOP at ITAB1&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; at end of FIELD&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete itab2 where fields = itab1-field&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;endloop.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;2. Converting the values in itab1 into ranges and then deleting from ranges.&lt;/P&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Delete itab2 where field in r_range1.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; same as before: check R_RANGE1 is contains not duplicates and sort ITAB2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Another option more "nice&amp;amp;clean" is to create a secondary index on ITAB2 and use it in deleteion&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 11:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598465#M1940093</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2016-03-07T11:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598466#M1940094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks of answering.&lt;/P&gt;&lt;P&gt;Yes the fields are sorted and are unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried using secondary index, but I am getting below syntax error regarding declaration.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/901912" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me with syntax error? I am not able to declare a key that is not sorted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 12:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598466#M1940094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-07T12:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598467#M1940095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try "WITH NON-UNIQUE KEY key COMPONENTS vbeln"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 12:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598467#M1940095</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2016-03-07T12:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598468#M1940096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've written a blog about the use secondary keys. Maybe if you search for it, it'll be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598468#M1940096</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-07T13:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598469#M1940097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up declaring it as a hashed table with unique primary key.&lt;/P&gt;&lt;P&gt;But there is barely any improvement in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/901984" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 14:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598469#M1940097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-07T14:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598470#M1940098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does &lt;STRONG&gt;sorange&lt;/STRONG&gt; contain? That's kind of important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd have written it something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data lt_rcsos type hashed table of Solist with unique key vbeln.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert lines of rcsos into table lt_rcsos.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;delete lt_rcsos where vbeln in sorange.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 20:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598470#M1940098</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-07T20:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598471#M1940099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a range with VBELN as low and high.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 12:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598471#M1940099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-08T12:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598472#M1940100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah -&amp;nbsp; I know what a range or a select-option is. What &lt;STRONG style="text-decoration: underline;"&gt;values&lt;/STRONG&gt; does it contain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 12:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598472#M1940100</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-08T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598473#M1940101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are on 7.40, SP08 or higher you can try Filter: &lt;A __default_attr="114547" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="ABAP News for 7.40, SP08 - More for Internal Tables" href="https://community.sap.com/" modifiedtitle="true" title="ABAP News for 7.40, SP08 - More for Internal Tables"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't know about its performance though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598473#M1940101</guid>
      <dc:creator>ThomasKruegl</dc:creator>
      <dc:date>2016-03-08T14:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598474#M1940102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a good hint to use the FILTER operator, if possible due to your ABAP release. I used already the FILTER operator to create intersections of tables. It's short and easy. In addition you should use key definitions for your internal table; maybe secondary keys. Using keys should speed up your runtime performance.&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;Armin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598474#M1940102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-08T15:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598475#M1940103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you changed table contents, key must be updated. On large tables it takes some time. So that is why you dont have improvement IMO.&lt;/P&gt;&lt;P&gt;You can try two ways:&lt;/P&gt;&lt;P&gt;1) add new field &lt;STRONG&gt;flag&lt;/STRONG&gt; to use it for filter on output, i.e. flag = 'X' - show it, flag = ' ' - dont show. Pros: you dont need to delete records - save some time.&lt;/P&gt;&lt;P&gt;2) try to use filter or binary search (depends on your abap version).&lt;/P&gt;&lt;P&gt;sort itab2 by field.&lt;/P&gt;&lt;P&gt;loop at itab1 assigning &amp;lt;itab1&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clear sy-subrc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while sy-subrc = 0. "if your field is not unique&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read table itab2 with key field = &amp;lt;itab1&amp;gt;-field binary search assigning &amp;lt;itab2&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "copy row &amp;lt;itab2&amp;gt; to new table itab3. Test both variants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endwhile.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598475#M1940103</guid>
      <dc:creator>former_member210008</dc:creator>
      <dc:date>2016-03-08T15:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598476#M1940104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare itab2 as a sorted table with the appropriate key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read table itab2 with your key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if the return code is 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete itab2 index sy-tabix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are multiple records in itab2 with the same key, you will have to add extra logic to handle that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 19:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598476#M1940104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-08T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598477#M1940105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another idea: Is it possible to prevent the filling of the second table, where you want to delete lines by now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 08:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598477#M1940105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-09T08:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598478#M1940106</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;My grain of sand; I don't know if it'll improve the performance, try and tell us;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;SORT &lt;/SPAN&gt;itab2 &lt;SPAN class="L0S52"&gt;BY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"Or declare it as SORTED &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;itab1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;READ &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;itab2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;itab1&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;BINARY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SEARCH&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;itab2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;tabix&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;itab1&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DELETE &lt;/SPAN&gt;itab2 &lt;SPAN class="L0S52"&gt;INDEX &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;tabix&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598478#M1940106</guid>
      <dc:creator>RicardoRomero_1</dc:creator>
      <dc:date>2016-03-09T09:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598479#M1940107</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;The test in this &lt;A href="http://help.sap.com/abapdocu_731/en/abendelete_itab_using_key_abexa.htm" title="http://help.sap.com/abapdocu_731/en/abendelete_itab_using_key_abexa.htm"&gt;ABAP Keyword Documentation&lt;/A&gt; maybe useful for you, take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 09:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598479#M1940107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-10T09:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598480#M1940108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 10:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598480#M1940108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-10T10:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598481#M1940109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read within a loop will take more time I guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 13:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598481#M1940109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-10T13:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while deleting entries from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598482#M1940110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, we are on lower release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 13:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-deleting-entries-from-internal-table/m-p/11598482#M1940110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-10T13:23:29Z</dc:date>
    </item>
  </channel>
</rss>

