<?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: Dynamic internal table and subroutine pool limit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183018#M126233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a doubt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the method, create dynamic table , we can pass the fieldcat and get the internal table from the catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can u create like that in ur example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;hyma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2006 08:57:15 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2006-01-17T08:57:15Z</dc:date>
    <item>
      <title>Dynamic internal table and subroutine pool limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183016#M126231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have created a program that extensively uses dynamic internal tables. However, I faced an annoying limitation regarding internal tables. I made this little sample program to let you see what's going on:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST.
DATA: t_fcat    TYPE lvc_t_fcat,
      dt_outtab TYPE REF TO DATA.
FIELD-SYMBOLS: &amp;lt;tab&amp;gt; TYPE STANDARD TABLE.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING i_structure_name = 'CSKS'
        CHANGING  ct_fieldcat      = t_fcat.
DO 100 TIMES.
  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
               EXPORTING it_fieldcatalog = t_fcat
               IMPORTING ep_table        = dt_outtab
               EXCEPTIONS generate_subpool_dir_full = 1
                          others                    = 2.
  IF sy-subrc = 0.
      WRITE / sy-index.
  ELSE.
      WRITE: / 'Error - sy-subrc = ', sy-subrc.
      EXIT.
  ENDIF.
ENDDO.
WRITE / 'End'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;By using this program I found out that I can create no more than 36 internal tables for each program run. At the 37th one, the program raises an exception GENERATE_SUBPOOL_DIR_FULL.&lt;/P&gt;&lt;P&gt;Each method call creates a subroutine pool that stores a table, and obviously their number is limited somehow, in my case to 36.&lt;/P&gt;&lt;P&gt;At this point I must ask user to leave the program and start again, which is really not a feature of a professional application.&lt;/P&gt;&lt;P&gt;Now what I'd like to do first is to find a way to destroy a subroutine pool when an internal table is no longer needed (FREE-ing just table won't work - I tried). However, I don't know how.&lt;/P&gt;&lt;P&gt;Even if I succeeded, it would only mean extending the limits, while I'd like to have the solution with no limits.&lt;/P&gt;&lt;P&gt;Are there any experiences with this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 08:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183016#M126231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T08:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table and subroutine pool limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183017#M126232</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;If you're using 4.7 you can create a dynamic internal table without to use the method create_dynamic_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infatc here it allow the following statament:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA &amp;lt;REF&amp;gt; TYPE &amp;lt;TYPE TABLE&amp;gt; TABLE OF &amp;lt;TYPE LINE&amp;gt;&lt;/P&gt;&lt;P&gt;[WITH [UNIQUE|NON-UNIQUE] keydef]                    [INITIAL SIZE n]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: my_table TYPE REF TO data.&lt;/P&gt;&lt;P&gt;DATA: table_name(30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;my_table&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_name = 'CSKS'.&lt;/P&gt;&lt;P&gt;CREATE DATA my_table TYPE STANDARD TABLE OF (table_name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use LIKE if you want to create a table like a structure defined in program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA &amp;lt;REF&amp;gt; LIKE &amp;lt;TYPE TABLE&amp;gt; TABLE OF &amp;lt;TYPE LINE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now it has to indicate explicitly the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab,&lt;/P&gt;&lt;P&gt;       field1,&lt;/P&gt;&lt;P&gt;       field2,&lt;/P&gt;&lt;P&gt;      END  OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA my_table LIKE STANDARD TABLE OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can use this statament:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_itab,&lt;/P&gt;&lt;P&gt;       field1,&lt;/P&gt;&lt;P&gt;       field2,&lt;/P&gt;&lt;P&gt;      END  OF ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_name = 'TY_ITAB'.&lt;/P&gt;&lt;P&gt;CREATE DATA my_table TYPE STANDARD TABLE OF (table_name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 08:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183017#M126232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table and subroutine pool limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183018#M126233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a doubt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the method, create dynamic table , we can pass the fieldcat and get the internal table from the catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can u create like that in ur example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;hyma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 08:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183018#M126233</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-01-17T08:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table and subroutine pool limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183019#M126234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that was quick, and it works too!&lt;/P&gt;&lt;P&gt;Thanks, Max, that's what I needed.&lt;/P&gt;&lt;P&gt;Hyma, you asked a legitimate question regarding fieldcatalog, and in this case the problem persists. However, I believe one can live without it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 09:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183019#M126234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T09:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table and subroutine pool limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183020#M126235</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;You should use that method only if you have to define the structure of your table at runtime, so you use the catalog table to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you know your structure, because it's just defined in dictionary or in the program, it's useless to use that method, because you can directly create your dynamic table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it can do this only from rel 4.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 09:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-and-subroutine-pool-limit/m-p/1183020#M126235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T09:07:48Z</dc:date>
    </item>
  </channel>
</rss>

