<?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: Calling subroutine dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-dynamically/m-p/6176842#M1372668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. It is solved now! Full points awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joon Meng&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2009 12:21:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-07T12:21:12Z</dc:date>
    <item>
      <title>Calling subroutine dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-dynamically/m-p/6176840#M1372666</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 found the following SAP Help page ([Naming Subroutines|http://help.sap.com/saphelp_nw2004s/helpdata/EN/9f/db978335c111d1829f0000e829fbfe/content.htm]) regarding the dynamic subroutine call. But I wonder why the following code could not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PROGRAM zpld_test_goh.

DATA: subrname TYPE c LENGTH 4 VALUE 'test',
      programname type c LENGTH 20 value  'zpld_test_goh'.

PERFORM (subrname) IN PROGRAM (programname) IF FOUND.

FORM test.

  WRITE 'hello'.

ENDFORM. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please enlighten me on this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joon Meng&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 12:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-dynamically/m-p/6176840#M1372666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T12:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-dynamically/m-p/6176841#M1372667</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;PRE&gt;&lt;CODE&gt;PROGRAM ZTEST01335.

DATA: SUBRNAME TYPE C LENGTH 4 VALUE 'TEST',
      PROGRAMNAME TYPE C LENGTH 20 VALUE  'ZTEST01335'.

PERFORM (SUBRNAME) IN PROGRAM (PROGRAMNAME) IF FOUND.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  test
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM TEST.

  WRITE 'hello'.

ENDFORM.                    "test&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is so because you have given the names in small case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 12:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-dynamically/m-p/6176841#M1372667</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-10-07T12:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-dynamically/m-p/6176842#M1372668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. It is solved now! Full points awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joon Meng&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 12:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-dynamically/m-p/6176842#M1372668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T12:21:12Z</dc:date>
    </item>
  </channel>
</rss>

