<?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 limit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301666#M503064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is likely with the program, not the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2007 16:54:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-24T16:54:25Z</dc:date>
    <item>
      <title>Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301662#M503060</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 have declared my table as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types: itab1 type standard table of epsfili.&lt;/P&gt;&lt;P&gt;data: itab        type itab1 with header line,  " To store all the files in app serv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would there be a limit for this kind of internal table. It only picked the files till 999. The rest of them are not processed. So, I wonder if there is any limit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 16:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301662#M503060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301663#M503061</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;Internal table does have a limit but it depends on the available and allocated memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it certainly should not be limited to 1000 in any case.&lt;/P&gt;&lt;P&gt;Please check the logic of your program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 16:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301663#M503061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T16:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301664#M503062</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;There is no ABAP limit to the number of records that you can put into an internal table, but there are system memory limits. For example, if you try to put all records from BSEG into an internal table, you will likely exceed this limit and dump.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 16:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301664#M503062</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-24T16:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301665#M503063</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how the memory could be calculated and as informed that you want to list the Million records (thats huge)&lt;/P&gt;&lt;P&gt;You can use the Pakage size option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field2 field3&lt;/P&gt;&lt;P&gt;from Tablename&lt;/P&gt;&lt;P&gt;into table it_tablename package size 10000.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Package size determines the Total # of records that will be picked up in the First loop.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at it_tablename.&lt;/P&gt;&lt;P&gt;write:/ it_tablename-field1,&lt;/P&gt;&lt;P&gt;        it_tablename-field2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;refresh it_tablename.&lt;/P&gt;&lt;P&gt;free it_tablename.&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;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;&lt;/P&gt;&lt;P&gt;Reward Points if it is useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 16:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301665#M503063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T16:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301666#M503064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is likely with the program, not the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 16:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301666#M503064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T16:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301667#M503065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used EPS_GET_DIRECTORY_LISTING FM to get all the files and only 999 files got processed out of 1183. I am not sure what the problem is. Could some one tell me if they can think of something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 17:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301667#M503065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T17:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301668#M503066</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 check the following codes in FM EPS_GET_DIRECTORY_LISTING. &lt;/P&gt;&lt;P&gt;There are some exception on file length (2147483647 byte) and number of files to read (1000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...

*   handle files &amp;gt; 2147483647 byte (int 4) - hen 9.9.2004
    IF file-len &amp;gt; 2147483647.       "&amp;lt;--- check here
      dir_list-size  = -99.
    ELSE.
      dir_list-size  = file-len.
    ENDIF.
    dir_list-name = file-name.
    IF sy-subrc = 0.
      IF file-type(1) = 'f' OR              " regular file
         file-type(1) = 'F'.
        ADD 1 TO file_counter.
        dir_list-rc   = 0.
        APPEND dir_list.
      ENDIF.
    ELSEIF sy-subrc = 1.
      EXIT.
    ELSE.
      IF error_counter &amp;gt; gc_1000.   "&amp;lt;--- check here
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 17:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301668#M503066</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-24T17:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301669#M503067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Internal table has limits of storing the records.&lt;/P&gt;&lt;P&gt;An internal table can store upto 2GB records and after applying some packages this limit can be exceed to 4 GB...but that is too optimistic....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 17:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301669#M503067</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-05-24T17:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301670#M503068</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 try to use FM SUBST_GET_FILE_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZDIRTEST.
 
PARAMETER: P_DIR TYPE RSMRGSTR-PATH DEFAULT '/usr/sap/trans/data' LOWER CASE.
 
DATA: WA_FILES  TYPE RSFILLST,
      IT_FILES  LIKE TABLE OF WA_FILES,
      WA_LINES  TYPE I.
                                                                        
START-OF-SELECTION.
                                               
  CALL FUNCTION 'SUBST_GET_FILE_LIST'
    EXPORTING
      DIRNAME      = P_DIR
      FILENM       = '*'
    TABLES
      FILE_LIST    = IT_FILES
    EXCEPTIONS
      ACCESS_ERROR = 1
      OTHERS       = 2. 
 
  IF  SY-SUBRC  &amp;lt;&amp;gt;   0.
    WRITE: / 'Error reading files'.
  ELSE.
    DESCRIBE TABLE IT_FILES LINES WA_LINES.
    WRITE: / 'Numbers of files:', WA_LINES.
    LOOP AT IT_FILES INTO WA_FILES.
      WRITE: / WA_FILES-NAME.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 18:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-limit/m-p/2301670#M503068</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-24T18:01:35Z</dc:date>
    </item>
  </channel>
</rss>

