<?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: Copy Internal Table W/O Memory Problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964433#M1800181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PACKAGE SIZE addition is of no use in your case since you are doing an IMPORT not SELECT to fill the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using LOOP AT itab with FROM idx addition? Basically its the same idea as the PACKAGE SIZE addition to a SELECT i.e. to do the processing in chunks rather than the entire table content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a loop, fill internal table BB say 5,000 rows at a time (using the FROM addition) -&amp;gt; In the same loop, do your all your business logic processing then FREE BB at the end of every 5000th iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Dec 2013 02:58:06 GMT</pubDate>
    <dc:creator>Sougata</dc:creator>
    <dc:date>2013-12-29T02:58:06Z</dc:date>
    <item>
      <title>Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964423#M1800171</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;A hopefully simple ABAP question: I have a very large internal abap table of line type AA which shall be append to another internal table of line type BB.&lt;/P&gt;&lt;P&gt;Curret implementation is pretty straightforeward:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT AA ASSINGING &amp;lt;FA&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOVE-CORRESPONDING &amp;lt;FA&amp;gt; TO &amp;lt;FB&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND &amp;lt;FB&amp;gt; TO BB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;FREE AA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue: AA is a very very big table (&amp;gt; 1.000.000 entries, with a pretty big column size). The table needs ~1.5GB RAM. When using the way above for a very short time ~3GB RAM will be required (which will finally put the process into private mode, causing big performance problems).&lt;/P&gt;&lt;P&gt;Sadly I do not know any way to free the memory of an internal table partially. I've tried to do the following code snipped (which does not work, because DELETE does not free memory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE AA[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; READ TABLE aa assinging &amp;lt;fa&amp;gt; INDEX 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOVE-CORRESPONDING &amp;lt;FA&amp;gt; TO &amp;lt;fB&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND &amp;lt;FB&amp;gt; TO BB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DELETE aa INDEX 1.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said, this does not work, because DELETE does not shrink the memory extension of a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know ANY way to complete the described use case, without having the table two times in RAM?&lt;/P&gt;&lt;P&gt;REgards,&lt;BR /&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 18:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964423#M1800171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-27T18:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964424#M1800172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good one &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/408/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How the AA table is filled at the first place? &lt;/P&gt;&lt;P&gt;If possible what about splitting the AA data into smaller tables (AA1, .., AAn) and then processing &amp;amp; freeing them one by one ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 00:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964424#M1800172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-28T00:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964425#M1800173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manu D'Haeyer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If internal tables AA and BB have their fields declared in same order, then&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BB[] = AA[].&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFRESH: AA.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 03:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964425#M1800173</guid>
      <dc:creator>Arun_Prabhu_K</dc:creator>
      <dc:date>2013-12-28T03:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964426#M1800174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your AA and BB internal table have same structure, then you can directly use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append lines of AA to BB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 04:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964426#M1800174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-28T04:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964427#M1800175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="margin: -9px 0 0; font-size: 12px; color: #333333; text-align: right;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="42845" data-username="timo.stark" href="https://answers.sap.com/people/timo.stark" style="padding: 0 3px 0 0; font-weight: normal; font-style: inherit; font-size: 20px; font-family: inherit; color: #3778c7;"&gt;Timo Stark&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accounting to Manu D'Haeyer, here is how you restrict data from database.&amp;nbsp; for example &lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;(note* Please notice the headline contents)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;REPORT&amp;nbsp; z_test.&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;TABLES: mseg, mara, vbap.&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;TYPES: BEGIN OF s_matnr,&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbeln LIKE vbap-vbeln,&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; posnr LIKE vbap-posnr,&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matnr LIKE mseg-matnr,&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; menge LIKE mseg-menge,&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF s_matnr,&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;DATA: it_mseg TYPE TABLE OF mseg WITH HEADER LINE,&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_matnr TYPE TABLE OF s_matnr WITH HEADER LINE.&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;START-OF-SELECTION. &lt;BR /&gt;&amp;nbsp; &lt;STRONG&gt;SELECT *&lt;/STRONG&gt; &lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; FROM mseg&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; INTO TABLE it_mseg &lt;SPAN style="text-decoration: underline;"&gt;PACKAGE SIZE 50.&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOOP AT it_mseg.&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOVE-CORRESPONDING it_mseg TO it_matnr.&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT SINGLE vp~vbeln vp~posnr &lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM vbap AS vp INNER JOIN aufk AS ak ON vp~vbeln = ak~kdauf&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&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;&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;&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; AND vp~posnr = ak~kdpos&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN mseg AS ms ON ms~aufnr = ak~aufnr&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO ( it_matnr-vbeln it_matnr-posnr )&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE ms~aufnr = it_mseg-aufnr.&lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COLLECT it_matnr. &lt;/P&gt;&lt;P style="color: #000000; font-family: Simsun;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDLOOP.&lt;BR /&gt;&amp;nbsp; &lt;STRONG&gt;ENDSELECT.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 05:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964427#M1800175</guid>
      <dc:creator>former_member186413</dc:creator>
      <dc:date>2013-12-28T05:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964428#M1800176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;How is the internal table AA filled?&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 06:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964428#M1800176</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-12-28T06:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964429#M1800177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, &lt;STRONG style="margin: -9px 0 0; font-size: 12px; color: #333333; text-align: right;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="42845" data-objecttype="3" href="https://answers.sap.com/people/timo.stark" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Timo Stark&lt;/A&gt;&lt;/STRONG&gt; is using the 'classical' way to get data, otherwise, it is impossible to cost that mush RAM.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 06:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964429#M1800177</guid>
      <dc:creator>former_member186413</dc:creator>
      <dc:date>2013-12-28T06:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964430#M1800178</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'm importing the data from a cluster table (IMPORT..), therefore i can not simply "chunk" the data of AA. Generally I can of course "chunk"/split the clusters in the DB, but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I really hoped that ABAP has any instruction to shrink the table memory exhaust to the value actually used.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevermind - Thank you very much for your help - especially for the PACKAGE SIZE instruction which I've never heard about before &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 20:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964430#M1800178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-28T20:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964431#M1800179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will double the memory exhaust directly after BB[] = AA[]. Of course the memory is directly cleared again afterwards - nevertheless for very big tables this can cause the process going into private mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 20:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964431#M1800179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-28T20:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964432#M1800180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;This will double the memory exhaust directly after BB[] = AA[]. Of course the memory is directly cleared again afterwards - nevertheless for very big tables this can cause the process going into private mode.&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 26px 0 -10px; font-size: 0.9em; color: #333333;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-size: 11px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3476149" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; background-color: #f3f3f3; color: #3778c7;"&gt;Copy Internal Table W/O Memory Problems&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 20:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964432#M1800180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-28T20:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Internal Table W/O Memory Problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964433#M1800181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PACKAGE SIZE addition is of no use in your case since you are doing an IMPORT not SELECT to fill the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using LOOP AT itab with FROM idx addition? Basically its the same idea as the PACKAGE SIZE addition to a SELECT i.e. to do the processing in chunks rather than the entire table content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a loop, fill internal table BB say 5,000 rows at a time (using the FROM addition) -&amp;gt; In the same loop, do your all your business logic processing then FREE BB at the end of every 5000th iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Dec 2013 02:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-internal-table-w-o-memory-problems/m-p/9964433#M1800181</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2013-12-29T02:58:06Z</dc:date>
    </item>
  </channel>
</rss>

