<?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 size in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311000#M161810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi seven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is there any way to calculate how much memory it will use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that we just need to know&lt;/P&gt;&lt;P&gt;the length of each fields&lt;/P&gt;&lt;P&gt;and the total characters due to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That multiplied by the number of records,&lt;/P&gt;&lt;P&gt;will be the memory in BYTES.&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2006 11:29:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-03T11:29:11Z</dc:date>
    <item>
      <title>Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310995#M161805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to load 10 millions data into an internal table.&lt;/P&gt;&lt;P&gt;Is it possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any limited for the size of internal table?&lt;/P&gt;&lt;P&gt;If there is, what is the size?&lt;/P&gt;&lt;P&gt;Is it possible to change the size from the setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Seven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310995#M161805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310996#M161806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Seven,&lt;/P&gt;&lt;P&gt; Yes, you could load any number of records into the Internal table. There is no particular limit on Internal tables but, when an Internal table is loaded with 10 Million records then the Memory allocated to the Internal table will not be sufficient and you may receive a System Error message 'No Roll Blocks availabe'.&lt;/P&gt;&lt;P&gt;It is always better to break the number of records . Do let me know your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;- PSK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310996#M161806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310997#M161807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is no limit as such for the size of the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can set like&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 10 with header line.&lt;/P&gt;&lt;P&gt;supposing u have only 10 records but if more than 10 are there they still will be available in the internal table as they get appended to the existing records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310997#M161807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310998#M161808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically there are no limits...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also There is no limit on number of fields in internal table.&lt;/P&gt;&lt;P&gt;If you are preparing a list output, then use LINE-SIZE addition of the report statement and set it to 1023 (max).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSAMPLE LINE-SIZE 1023.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310998#M161808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310999#M161809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Pabbisetty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to calculate how much memory it will use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I want to list 10 millions data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Seven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Seven Jin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1310999#M161809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311000#M161810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi seven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is there any way to calculate how much memory it will use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that we just need to know&lt;/P&gt;&lt;P&gt;the length of each fields&lt;/P&gt;&lt;P&gt;and the total characters due to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That multiplied by the number of records,&lt;/P&gt;&lt;P&gt;will be the memory in BYTES.&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311000#M161810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311001#M161811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;) Go in debugging Mode&lt;/P&gt;&lt;P&gt;2) Setting-&amp;gt;Memmory display on/off&lt;/P&gt;&lt;P&gt;3) Click on tables&lt;/P&gt;&lt;P&gt;4) Enter The Internal Table Name.&lt;/P&gt;&lt;P&gt;5) u will see the memmory used has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal table ______________ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length of Table Reference (in Bytes) _________ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bound Memory Referenced Memory &lt;/P&gt;&lt;P&gt;Memory Allocated __________ ____________&lt;/P&gt;&lt;P&gt;Memory Actually used __________ ________ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark HelpFull Answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311001#M161811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311002#M161812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;u can use field group instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can see t memory used in debuging mode..&lt;/P&gt;&lt;P&gt;set memory display on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tanveer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311002#M161812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311003#M161813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THERE IS NO LIMITATION OF THE INTERNAL TABLE , YOU CAN STORE N NUMBER OF DTA IN THE INERNAL TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THERE IS NO CONSTANT INTERNAL SIZE OF THE INETNAL TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES &amp;lt;t&amp;gt; TYPE|LIKE &amp;lt;tabkind&amp;gt; OF &amp;lt;linetype&amp;gt; [WITH &amp;lt;key&amp;gt;]&lt;/P&gt;&lt;P&gt;          [INITIAL SIZE &amp;lt;n&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311003#M161813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311004#M161814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Seven,&lt;/P&gt;&lt;P&gt; As Amit and others have informed on how the memory could be calculated and as informed that you want to list the 10 Million records (thats huge)&lt;/P&gt;&lt;P&gt;You can use the Pakage size option&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select field1 field2 field3
from Tablename
into table it_tablename package size 10000.
* Package size determines the Total # of records that will be picked up in the First loop.
loop at it_tablename.
write:/ it_tablename-field1,
        it_tablename-field2.
endloop.
refresh it_tablename.
free it_tablename.
endselect.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this way the first 10000 records are fetched written on to the screen, the memory is freed and the Internal table is ready for the second set to 10000 records.&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;- PSK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311004#M161814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311005#M161815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Jin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you do not have to specify the memory required for an internal table. By using occurs n ,memory is reserved for the number of lines specified as soon as the first line is written .If more lines are added to an internal table than specified by &amp;lt;n&amp;gt;, the reserved memory expands automatically. If there is not enough space in memory for an internal table, it is written to a buffer or to the disk (paging area).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if helpful.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 11:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311005#M161815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T11:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311006#M161816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;When I try to gather data from table into the internal table, there is a short dump. How can I do? They won't change the system setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;What happened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current program had to be terminated because of an&lt;/P&gt;&lt;P&gt;error when installing the R/3 System.&lt;/P&gt;&lt;P&gt;The program had already requested 374467792 bytes from the operating&lt;/P&gt;&lt;P&gt;system with 'malloc' when the operating system reported after a&lt;/P&gt;&lt;P&gt;further memory request that there was no more memory space&lt;/P&gt;&lt;P&gt;available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can you do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make a note of the actions and input which caused the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve the problem, contact your SAP system administrator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use transaction ST22 (ABAP Dump Analysis) to view and administer&lt;/P&gt;&lt;P&gt;termination messages, especially those beyond their normal deletion&lt;/P&gt;&lt;P&gt;date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the system profile parameters&lt;/P&gt;&lt;P&gt;- abap/heap_area_dia&lt;/P&gt;&lt;P&gt;- abap/heap_area_nondia&lt;/P&gt;&lt;P&gt;to a maximum of 374467792. Then reduce the value by 10.000.000 to be on the&lt;/P&gt;&lt;P&gt;safe side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then restart the SAP System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abap/heap_area_nondia and abap/heap_area_dia:&lt;/P&gt;&lt;P&gt; Set smaller than the memory achieved for each process&lt;/P&gt;&lt;P&gt; with 'malloc' and smaller than abap/heap_area_total&lt;/P&gt;&lt;P&gt;You should also check whether the available memory (file system&lt;/P&gt;&lt;P&gt;swap and main memory) is sufficient for the started program&lt;/P&gt;&lt;P&gt;and its data.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 16:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311006#M161816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311007#M161817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Seven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2006 08:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311007#M161817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-04T08:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311008#M161818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. processing 10 million record&lt;/P&gt;&lt;P&gt;  in one go, does not make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Today or tomorrow, there might&lt;/P&gt;&lt;P&gt;   be some memory shortage/problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. For such cases,&lt;/P&gt;&lt;P&gt;   we should use PACKAGE concept,&lt;/P&gt;&lt;P&gt;   and process the reocrds,&lt;/P&gt;&lt;P&gt;   IN A BUNCH (instead of in one shot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. To get a taste of how to use package,&lt;/P&gt;&lt;P&gt;   just copy paste this in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (it will list out company codes,&lt;/P&gt;&lt;P&gt;   5 at a time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.&lt;/P&gt;&lt;P&gt;report abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab like table of t001 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;select * from t001&lt;/P&gt;&lt;P&gt;package size 5&lt;/P&gt;&lt;P&gt;into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write:/ '----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; new package'.&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-bukrs.&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;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2006 08:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311008#M161818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-04T08:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311009#M161819</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;first analyze what fields in the record you really need to know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A l w a y s  avoid the SELECT * because it will transfer all fields (including client which usually not needed). Define your internal table just with the fields needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not help, use the package concept as described earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed a quite dynamic conceot for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- define a structured type,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Arrears collector&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  BEGIN OF ty_bsid_arrears_dta,&lt;/P&gt;&lt;P&gt;  bukrs TYPE bsid-bukrs,&lt;/P&gt;&lt;P&gt;  kunnr TYPE bsid-kunnr,&lt;/P&gt;&lt;P&gt;  gjahr TYPE bsid-gjahr,&lt;/P&gt;&lt;P&gt;  bldat TYPE bsid-bldat,&lt;/P&gt;&lt;P&gt;  dmbtr TYPE bsid-dmbtr,&lt;/P&gt;&lt;P&gt;  zbd1t TYPE bsid-zbd1t,&lt;/P&gt;&lt;P&gt;  END OF ty_bsid_arrears_dta,&lt;/P&gt;&lt;P&gt;  ty_t_bsid_arrears_dta  TYPE SORTED TABLE OF ty_bsid_arrears_dta&lt;/P&gt;&lt;P&gt;    WITH UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; lt_bsid_arrears_dta type ty_t_bsid_arrears_dta.&lt;/P&gt;&lt;P&gt;*just before selecting data, retrieve the fields *dynamically using &lt;/P&gt;&lt;P&gt;PERFORM getfields &lt;/P&gt;&lt;P&gt;USING lt_bsid_arrears_dta &lt;/P&gt;&lt;P&gt;CHANGING lt_fields."TYPE TABLE OF fieldname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;P&gt;  SELECT (lt_fields)&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF lt_bsid_arrears_dta&lt;/P&gt;&lt;P&gt;    WHERE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Not to forget the form for the fields, it worrks with any structured or table datatype:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  getfields&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      get fieldnames for table or structure (C) Clemens Li 2006&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM getfields&lt;/P&gt;&lt;P&gt;  USING    px_data                        TYPE any&lt;/P&gt;&lt;P&gt;  CHANGING pt_fields                      TYPE table.&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lt_comp                               TYPE abap_compdescr_tab,&lt;/P&gt;&lt;P&gt;    lr_dat                                TYPE REF TO data,&lt;/P&gt;&lt;P&gt;    lv_kind                               TYPE abap_typecategory,&lt;/P&gt;&lt;P&gt;    lr_typedescr                          TYPE REF TO cl_abap_typedescr,&lt;/P&gt;&lt;P&gt;    lr_tabledescr                         TYPE REF TO cl_abap_tabledescr,&lt;/P&gt;&lt;P&gt;    lr_structdescr                        TYPE REF TO cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;    &amp;lt;fs&amp;gt;                                  TYPE ANY,&lt;/P&gt;&lt;P&gt;    &amp;lt;ft&amp;gt;                                  TYPE ANY TABLE,&lt;/P&gt;&lt;P&gt;    &amp;lt;comp&amp;gt;                                TYPE LINE OF abap_compdescr_tab.&lt;/P&gt;&lt;P&gt;  lr_typedescr ?= cl_abap_typedescr=&amp;gt;describe_by_data( px_data ).&lt;/P&gt;&lt;P&gt;  CASE lr_typedescr-&amp;gt;kind.&lt;/P&gt;&lt;P&gt;    WHEN 'S'.&lt;/P&gt;&lt;P&gt;      lr_structdescr ?= lr_typedescr.&lt;/P&gt;&lt;P&gt;      lt_comp                             = lr_structdescr-&amp;gt;components.&lt;/P&gt;&lt;P&gt;    WHEN 'T'.&lt;/P&gt;&lt;P&gt;      ASSIGN px_data TO &amp;lt;ft&amp;gt;.&lt;/P&gt;&lt;P&gt;      CREATE DATA lr_dat LIKE LINE OF &amp;lt;ft&amp;gt;.&lt;/P&gt;&lt;P&gt;      ASSIGN lr_dat-&amp;gt;* TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      lr_structdescr ?= cl_abap_structdescr=&amp;gt;describe_by_data( &amp;lt;fs&amp;gt; ).&lt;/P&gt;&lt;P&gt;      lt_comp                             = lr_structdescr-&amp;gt;components.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;      MESSAGE e241(00).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Function is invalid in this environment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;  CLEAR pt_fields.&lt;/P&gt;&lt;P&gt;  LOOP AT lt_comp ASSIGNING &amp;lt;comp&amp;gt;.&lt;/P&gt;&lt;P&gt;    APPEND &amp;lt;comp&amp;gt;-name TO pt_fields.&lt;/P&gt;&lt;P&gt;  ENDLOOP." at lt_comp assigning &amp;lt;comp&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " getfields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The big advantage is: Just change your structures type and anything else works with no change at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the bad formatting, I don't know why all SDN list entries get compressed...&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;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2006 08:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311009#M161819</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-05-04T08:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311010#M161820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes its true that ther is such no limit for internal tables , but better to use Hashed table to handle large amount of data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siddharth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2006 10:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311010#M161820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-04T10:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311011#M161821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decide to use Package conception.&lt;/P&gt;&lt;P&gt;But I have a doubt.&lt;/P&gt;&lt;P&gt;Imagine if there are 10 records in the ZZZ table.&lt;/P&gt;&lt;P&gt;They are A1, A2, A3, A4, A5 ... A9.&lt;/P&gt;&lt;P&gt;I use the Package size 3.&lt;/P&gt;&lt;P&gt;First time, I will get A1, A2, A3. If I delete the A2 from the table, what will happen for the next package?&lt;/P&gt;&lt;P&gt;The next package will be ( A4, A5, A6 ) or ( A5, A6, A7 )?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Seven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2006 12:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311011#M161821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-04T12:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311012#M161822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Which table are you talking about? If it is internal table, then the next package option would get you, A4, A5, A6.&lt;/P&gt;&lt;P&gt;If it is database table itself, then firstly you cannot do it inside a select-endselect block and if you use package size option in select, you have to use selecte-endselect compulsorily.&lt;/P&gt;&lt;P&gt;If you delete the records after the endselect,&lt;/P&gt;&lt;P&gt;Then the next package would be A1, A3,A4.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2006 12:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-size/m-p/1311012#M161822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-04T12:34:13Z</dc:date>
    </item>
  </channel>
</rss>

