<?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: Refresh Buffer area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522688#M571168</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've recently come across the 36 subroutine limit myself and have solved it by skipping the CL_ALV_CREATE_TABLE class (copying it really) and instead of generating a new dynamic program for each table, I put ALL the dynamic tables required into one dynamic program. This does mean you have to have a unique identifier for each dynamic table rather than using LT_GENTAB, but it works a treat &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy CL_ALV_TABLE_CREATE&lt;/P&gt;&lt;P&gt;create a new structure with TABNAME as first field &amp;amp; LVC_T_FCAT as second field&lt;/P&gt;&lt;P&gt;create new table type with this line type&lt;/P&gt;&lt;P&gt;copy the code from include LSKBHF06 form fb_table_create_string&lt;/P&gt;&lt;P&gt;change the code to loop around your table of tables, substituting LT_GENTAB for your TABNAME&lt;/P&gt;&lt;P&gt;change the class to have your own version of INTERNAL_RECEIVER (and the generated code for the subroutine, to include a parameter for the TABNAME identifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to change the return from the class to a table of table references as well (with your TABNAME as the identifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing this you will only generate one subroutine for all your tables and thus avoid the 36 subroutine limit.&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;Reg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Jul 2008 15:03:40 GMT</pubDate>
    <dc:creator>former_member300158</dc:creator>
    <dc:date>2008-07-20T15:03:40Z</dc:date>
    <item>
      <title>Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522680#M571160</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 am using cl_alv_table_create=&amp;gt;create_dynamic_table to get an dynamic internal table. At 5th record , the program is dumping and giving error as &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;'sub routine pool buffer is full'&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; Could you please suggest me to refresh this buffer .&lt;/P&gt;&lt;P&gt;  Is there any Function module or method to refresh buffer area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you,&lt;/P&gt;&lt;P&gt; Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 05:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522680#M571160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T05:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522681#M571161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Can you please check the line size of that record. I hope there is a limit for that. If that limit exceeds, it throws dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-SatyaPriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 05:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522681#M571161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T05:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522682#M571162</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; Thanks for that.&lt;/P&gt;&lt;P&gt;  But  when I execute for the first time it is working fine . &lt;/P&gt;&lt;P&gt;  When I execute for the second time i.e. with in same session&lt;/P&gt;&lt;P&gt;  then it is giving dump.&lt;/P&gt;&lt;P&gt;  So I do not think it is due to line limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I will show you the code where it is going for dump , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; catch system-exceptions generate_subpool_dir_full = 9.&lt;/P&gt;&lt;P&gt;    generate subroutine pool lt_source name l_name&lt;/P&gt;&lt;P&gt;             message l_message line l_line word l_word.&lt;/P&gt;&lt;P&gt;  endcatch.&lt;/P&gt;&lt;P&gt;  case sy-subrc.&lt;/P&gt;&lt;P&gt;    when 0.&lt;/P&gt;&lt;P&gt;    when 9.&lt;/P&gt;&lt;P&gt;      raise generate_subpool_dir_full. &amp;lt;- this point is the cause of error&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;      message x000(0k) with l_message l_line l_word.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanking you,&lt;/P&gt;&lt;P&gt; Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 06:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522682#M571162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T06:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522683#M571163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tell me one thing, how many times u r calling that create_dynamic_table method in ur program. I think max of 21 times u can call this method in one session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-SatyaPriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 07:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522683#M571163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T07:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522684#M571164</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; This method we can call 36 times in a session. But is there any other method available for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Other wise can we refresh the session , so that count can be again starting from one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 10:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522684#M571164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T10:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522685#M571165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naga,&lt;/P&gt;&lt;P&gt; There lies the problem. U can call this method only upto 21 times not more than that in one session. Even I too faced the same kind of situation. Then I arrived at a solution of storing the address of the new line type created  with the same structure of the table. Like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_stuff,&lt;/P&gt;&lt;P&gt;       tdref TYPE REF TO data,&lt;/P&gt;&lt;P&gt;       END OF ty_stuff.&lt;/P&gt;&lt;P&gt;DATA w_stuff TYPE ty_stuff.&lt;/P&gt;&lt;P&gt;DATA t_stuff TYPE TABLE OF ty_stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          it_fieldcatalog = it_fieldcat_fin[]&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          ep_table        = new_table.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create a new Line with the same structure of the table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ASSIGN new_table-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;        CREATE DATA w_stuff-tdref LIKE LINE OF &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;        "(w_stuff-tabname).&lt;/P&gt;&lt;P&gt;        APPEND w_stuff TO t_stuff.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;So my table t_stuff will contain all the addresses of the table structures. Use that in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE t_stuff INDEX l_seg_tabix INTO w_stuff.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        ASSIGN w_stuff-tdref-&amp;gt;* TO &amp;lt;l_line1&amp;gt;.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now &amp;lt;l_line1&amp;gt; will be of line type of the internal table that u want to create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways it depends on the requirements. I thought of sharing this, might be helpful in some way to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-SatyaPriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 10:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522685#M571165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T10:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522686#M571166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for your answer .  But I did not get how can we avoid dump as again I am calling this method for 36 times in the same session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For each field catalog structure I need to call this method and I have 36 field catalogs with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522686#M571166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522687#M571167</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 can't refresh the memory !&lt;/P&gt;&lt;P&gt;For each dynamic internal table a program is created in memory using "GENERATE SUBROUTINE POOL" and the limit is 36 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem in the past and my solution was keep the internal tables in memory to use them later ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't you use the sintax CREATE DATA... as below ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dref TYPE REF TO DATA.   &lt;/P&gt;&lt;P&gt;TYPES: &amp;lt;type&amp;gt; TYPE &amp;lt;data&amp;gt;.     &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ANY.  &lt;/P&gt;&lt;P&gt;                               &lt;/P&gt;&lt;P&gt;CREATE DATA dref TYPE &amp;lt;type&amp;gt;. &lt;/P&gt;&lt;P&gt;ASSIGN dref-&amp;gt;* TO &amp;lt;fs&amp;gt;.        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or RTTS Classes ? See the link &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="475615"&gt;&lt;/A&gt;&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;Marcelo Ramos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 15:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522687#M571167</guid>
      <dc:creator>marcelo_ramos1</dc:creator>
      <dc:date>2007-07-19T15:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Buffer area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522688#M571168</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've recently come across the 36 subroutine limit myself and have solved it by skipping the CL_ALV_CREATE_TABLE class (copying it really) and instead of generating a new dynamic program for each table, I put ALL the dynamic tables required into one dynamic program. This does mean you have to have a unique identifier for each dynamic table rather than using LT_GENTAB, but it works a treat &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy CL_ALV_TABLE_CREATE&lt;/P&gt;&lt;P&gt;create a new structure with TABNAME as first field &amp;amp; LVC_T_FCAT as second field&lt;/P&gt;&lt;P&gt;create new table type with this line type&lt;/P&gt;&lt;P&gt;copy the code from include LSKBHF06 form fb_table_create_string&lt;/P&gt;&lt;P&gt;change the code to loop around your table of tables, substituting LT_GENTAB for your TABNAME&lt;/P&gt;&lt;P&gt;change the class to have your own version of INTERNAL_RECEIVER (and the generated code for the subroutine, to include a parameter for the TABNAME identifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to change the return from the class to a table of table references as well (with your TABNAME as the identifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing this you will only generate one subroutine for all your tables and thus avoid the 36 subroutine limit.&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;Reg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2008 15:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-buffer-area/m-p/2522688#M571168</guid>
      <dc:creator>former_member300158</dc:creator>
      <dc:date>2008-07-20T15:03:40Z</dc:date>
    </item>
  </channel>
</rss>

