<?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/2953321#M696529</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 Must refresh &amp;lt;b&amp;gt;tab&amp;lt;/b&amp;gt; before run again. Otherwise you'll continue duplicating lines in internal table TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Don't forget to statement limitation.&amp;lt;/b&amp;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;&lt;/P&gt;&lt;P&gt;Marcelo Ramos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 12:42:58 GMT</pubDate>
    <dc:creator>marcelo_ramos1</dc:creator>
    <dc:date>2007-10-16T12:42:58Z</dc:date>
    <item>
      <title>GENERATE SUBROUTINE POOL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2953317#M696525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;In the following logic, i'm trying to call the subroutine with in the LOOP statement. The program is executing well for the first record of the itab, but it is fail to execute for the next subsequent records, and is getting failed to trigger the Perform statement for the second record saying that 'Program Does Not exist'. Pl. can someone can point-out the defect in the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO ITAB_WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_where = '&amp;amp;' AND '&amp;amp;'.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH ITAB_WA-X INTO v_where.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH ITAB_WA-Y INTO v_where.&lt;/P&gt;&lt;P&gt;CONDENSE v_where NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab-line = 'Report sy-repid.'.&lt;/P&gt;&lt;P&gt; append tab. clear tab.&lt;/P&gt;&lt;P&gt; tab-line = 'form f_create_apps using value(v_where).'.&lt;/P&gt;&lt;P&gt; append tab. clear tab.&lt;/P&gt;&lt;P&gt;concatenate tab-line 'do some thing' v_where INTO TAB-LINE separated by space.&lt;/P&gt;&lt;P&gt; append tab. clear tab.&lt;/P&gt;&lt;P&gt;tab-line = 'endform.'.&lt;/P&gt;&lt;P&gt; append tab. clear tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generate subroutine pool tab name v_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform f_create_apps in program (v_name) using v_where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Exception Catching.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CATCH cx_root INTO o_field.&lt;/P&gt;&lt;P&gt;      text = o_field-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling Function to give information message regarding Exception&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          titel = text-t03&lt;/P&gt;&lt;P&gt;          txt1  = text&lt;/P&gt;&lt;P&gt;          txt2  = text-t04.&lt;/P&gt;&lt;P&gt;      LEAVE TO LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDTRY.&lt;/P&gt;&lt;P&gt;&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;I'm very thankful for your suggestions.&lt;/P&gt;&lt;P&gt;with best regards&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 11:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2953317#M696525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T11:13:30Z</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/2953318#M696526</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;Any suggestions please. I think my question is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 11:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2953318#M696526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T11:40:13Z</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/2953319#M696527</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;The statement &amp;lt;b&amp;gt;GENERATE SUBROUTINE POOL&amp;lt;/b&amp;gt; has a limitation, we can't run it more then 36 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you Could run only one time for all entries in your internal table, after for each line of internal table you execute the perform passing the parameter to identify it line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have helped&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;&lt;/P&gt;&lt;P&gt;Marcelo Ramos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2953319#M696527</guid>
      <dc:creator>marcelo_ramos1</dc:creator>
      <dc:date>2007-10-16T12:02:12Z</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/2953320#M696528</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;Problem might be due to the variables used ie v_name. Before the end of the loop clear v_name and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muthu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Muthu Prabakaran Selvam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2953320#M696528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:07:41Z</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/2953321#M696529</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 Must refresh &amp;lt;b&amp;gt;tab&amp;lt;/b&amp;gt; before run again. Otherwise you'll continue duplicating lines in internal table TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Don't forget to statement limitation.&amp;lt;/b&amp;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;&lt;/P&gt;&lt;P&gt;Marcelo Ramos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2953321#M696529</guid>
      <dc:creator>marcelo_ramos1</dc:creator>
      <dc:date>2007-10-16T12:42:58Z</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/2953322#M696530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Marcelo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the hint.  Refreshing Tab has solved part of my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 13:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/2953322#M696530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T13:48:38Z</dc:date>
    </item>
  </channel>
</rss>

