<?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 lines from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines-from-internal-table/m-p/8920168#M1691518</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;Please let me know what is the best&amp;nbsp; choice ( betwen two below ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some douts about first one, I am wondering could it make a mess with indexes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into wa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if itab-f1 = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; delete itab from wa &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;&lt;/P&gt;&lt;P&gt;2) delete itab[] where f1 = a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator Message: Please read SAP help documentation for more details&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kesavadas Thekkillath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2012 08:34:39 GMT</pubDate>
    <dc:creator>k_gjergja</dc:creator>
    <dc:date>2012-07-27T08:34:39Z</dc:date>
    <item>
      <title>delete lines from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines-from-internal-table/m-p/8920168#M1691518</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;Please let me know what is the best&amp;nbsp; choice ( betwen two below ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some douts about first one, I am wondering could it make a mess with indexes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into wa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if itab-f1 = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; delete itab from wa &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;&lt;/P&gt;&lt;P&gt;2) delete itab[] where f1 = a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator Message: Please read SAP help documentation for more details&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kesavadas Thekkillath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 08:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines-from-internal-table/m-p/8920168#M1691518</guid>
      <dc:creator>k_gjergja</dc:creator>
      <dc:date>2012-07-27T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines-from-internal-table/m-p/8920169#M1691519</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;&lt;/P&gt;&lt;P&gt;If you insert or delete lines in the statement block of a &lt;STRONG style="font-size: 10pt; font-family: 'Courier New';"&gt;LOOP&lt;/STRONG&gt; , this will have the following effects: &lt;/P&gt;&lt;H4&gt;&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;If you insert lines behind the current line, these new lines will be processed in the subsequent loop passes. An endless loop can result. &lt;BR /&gt;&lt;BR /&gt; &lt;/LI&gt;&lt;LI&gt;If you delete lines behind the current line, the deleted lines will no longer be processed in the subsequent loop passes. &lt;BR /&gt;&lt;BR /&gt; &lt;/LI&gt;&lt;LI&gt;If you insert lines in front of the current line, the internal loop counter is increased by one with each inserted line. This affects &lt;STRONG style="font-size: 10pt; font-family: 'Courier New';"&gt;sy-tabix&lt;/STRONG&gt; in the subsequent loop pass. &lt;BR /&gt;&lt;BR /&gt; &lt;/LI&gt;&lt;LI&gt;If you delete lines in front of the current line, the internal loop counter is decreased by one with each deleted line. This affects &lt;STRONG style="font-size: 10pt; font-family: 'Courier New';"&gt;sy-tabix&lt;/STRONG&gt; in the subsequent loop pass. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yogendra Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 09:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines-from-internal-table/m-p/8920169#M1691519</guid>
      <dc:creator>yogendra_bhaskar</dc:creator>
      <dc:date>2012-07-27T09:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: delete lines from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines-from-internal-table/m-p/8920170#M1691520</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 prefer the seconde one, is simpler. Relatated to the performance I suppose it's better also, at least at network level, but only if your table is too big there is a motive for concerning. Altough is important to have good pratices,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using sy-tabix is safer, as mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarsd,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 09:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-lines-from-internal-table/m-p/8920170#M1691520</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2012-07-27T09:36:18Z</dc:date>
    </item>
  </channel>
</rss>

