<?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: GENERATE SUBROUTINE POOL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558162#M583200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the speedy and helpful tips. &lt;/P&gt;&lt;P&gt;I´ll try them out tomorrow and reward proper points then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2007 20:33:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-12T20:33:01Z</dc:date>
    <item>
      <title>GENERATE SUBROUTINE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558159#M583197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Im using statement GENERATE SUBROUTINE POOL to dynamically select from a table. I have to have this statement in a loop. When the number of loops is large, the program dumps with message "Unable to generate more temporary subroutine pools." . In the documentation it states this is limited to 36. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to free this subroutine pool (free the assigned memory) so as to create others. &lt;/P&gt;&lt;P&gt;If I catch the exception, I guess it wont dump but maybe only half the data will be processed.&lt;/P&gt;&lt;P&gt;Below is some of the code.&lt;/P&gt;&lt;P&gt;Thank you very much, &lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA mt_ttable TYPE TABLE OF (m_ttablename).&lt;/P&gt;&lt;P&gt;  ASSIGN mt_ttable-&amp;gt;* TO &amp;lt;mfs_ttable&amp;gt;.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;  GENERATE SUBROUTINE POOL tab NAME prog&lt;/P&gt;&lt;P&gt;           MESSAGE mess SHORTDUMP-ID sid.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    PERFORM ('READ_DATA') IN PROGRAM (prog) IF FOUND&lt;/P&gt;&lt;P&gt;            TABLES mt_trigger &amp;lt;mfs_ttable&amp;gt;&lt;/P&gt;&lt;P&gt;                   s_curr    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB contains the selection statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 19:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558159#M583197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T19:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE SUBROUTINE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558160#M583198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to take a look at this thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="610361"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 19:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558160#M583198</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-12T19:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE SUBROUTINE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558161#M583199</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 think limit of 36 sub-pool generations is per internal mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be try to do like this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  export &amp;lt;what you want to put into memory&amp;gt; to memory id  'SRUT'.
  submit &amp;lt;Sub Program&amp;gt; and return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  IMPORT &amp;lt;from memory&amp;gt; FROM MEMORY ID 'SRUT'.

  GENERATE SUBROUTINE POOL &amp;lt;codetab&amp;gt; NAME gv_program.
  IF SY-SUBRC EQ 0.
    PERFORM &amp;lt;generated form&amp;gt; IN PROGRAM (gv_program).
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think internal mode  created by SUBMIT will be destroyed when returns. &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put subroutine generation code in a function module and call that function module &lt;/P&gt;&lt;P&gt;with option STARTING NEW TASK&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;aRs&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 19:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558161#M583199</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-12T19:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE SUBROUTINE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558162#M583200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the speedy and helpful tips. &lt;/P&gt;&lt;P&gt;I´ll try them out tomorrow and reward proper points then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 20:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2558162#M583200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T20:33:01Z</dc:date>
    </item>
  </channel>
</rss>

