<?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: Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186092#M758714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep that right but again nested loops comes here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2007 11:54:26 GMT</pubDate>
    <dc:creator>prabhu_s2</dc:creator>
    <dc:date>2007-12-13T11:54:26Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186086#M758708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I'm trying to avoid nested loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to delete contents on an internal table at one shot wihtout looping. Hence i used the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab where matnr not in ditab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here ditab is another internal table but this doesnt work as it is not in the strucutre of RANGES (error in syntx check)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to acheive this functionality without nested loops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thkx&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186086#M758708</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-12-13T11:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186087#M758709</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;  Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lv_index type sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;lv_index = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table ditab with key  matnr = itab-matnr&lt;/P&gt;&lt;P&gt;                                                      binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab index lv_index.&lt;/P&gt;&lt;P&gt;endif.&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;Regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186087#M758709</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-12-13T11:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186088#M758710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could Loop at itab and use the WHERE clause to resctict iterations based on ditab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e you will only loop at itab where the current entry is not in ditab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186088#M758710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T11:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186089#M758711</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;try to populate ranges before loop...like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
RANGES : s_matnr FOR marc-matnr.
LOOP AT ditab.
  s_matnr-low = ditab-matnr.
  s_matnr-option ='EQ'.
  s_matnr-sign = 'I'.
  APPEND s_matnr.
ENDLOOP.

DELETE itab WHERE matnr NOT IN s_matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186089#M758711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T11:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186090#M758712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep this will work ut i dont wanna to use read either.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186090#M758712</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-12-13T11:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186091#M758713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here the issue will be on performance as my db hit will get 10000+&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186091#M758713</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-12-13T11:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186092#M758714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep that right but again nested loops comes here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186092#M758714</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-12-13T11:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186093#M758715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, correction to my last post you would do some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab WHERE matnr = ditab-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do some logic here . . . &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;you can avoid looping (nested loop) at ditab with this code (provided ditab is filled with data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Conor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 12:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186093#M758715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T12:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186094#M758716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this will not work as the where clause will not validate for all entries in the internal table ditab &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 12:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186094#M758716</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-12-13T12:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186095#M758717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fair enough but, I wouldnt use FOR ALL ENTRIES in ditab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you want to delete entried from itab if they are in ditab with some like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE itab FOR ALL ENTRIES IN ditab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then I presume you will LOOP through the reduced itab . . . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what I'm saying is that the where clause used with with the LOOP will do that same thing as your DELETE then LOOP (wouldn't used the FOR ALL ENTRIES after the WHERE clause in the LOOP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its just another way of doing the same thing, mabe you want to reduce program memory, not sure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards ,&lt;/P&gt;&lt;P&gt;Conor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 12:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3186095#M758717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T12:24:34Z</dc:date>
    </item>
  </channel>
</rss>

