<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845222#M924485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.YES,for external subroutines ,&lt;/P&gt;&lt;P&gt;Perform form_name in program program name&lt;/P&gt;&lt;P&gt;           using ....&lt;/P&gt;&lt;P&gt;2.2 ways to call external forms..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. PERFORM (RNAME) IN PROGRAM ZYX_STAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here RNAME canbe variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. PERFORM RNAME IN PROGRAM ZYX_STAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here RNAME is Form name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:&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="4899948"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 09:18:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T09:18:50Z</dc:date>
    <item>
      <title>Calling Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845219#M924482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Subroutine can be called using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM Sub-Name using...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Is there any other way that a subroutine (- i.e., the code for subroutine written in between FORM ... ENDFORM) can be triggered? &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewardable...&lt;/P&gt;&lt;P&gt;Santo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845219#M924482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845220#M924483</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;U cannot call a subroutine in any other way except by using Perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Calling Subroutines&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You call subroutines using the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM... [USING   ... &amp;lt;pi&amp;gt;... ] &lt;/P&gt;&lt;P&gt;            [CHANGING... &amp;lt;pi&amp;gt;... ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines can call other subroutines (nested calls) and may also call themselves (recursive calls). Once a subroutine has finished running, the calling program carries on processing after the PERFORM statement. You can use the USING and CHANGING additions to supply values to the parameter interface of the subroutine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Defining Subroutines&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A subroutine is a block of code introduced by FORM and concluded by ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;subr&amp;gt; [USING   ... [VALUE(]&amp;lt;pi&amp;gt;[)] [TYPE &amp;lt;t&amp;gt;|LIKE &amp;lt;f&amp;gt;]... ] &lt;/P&gt;&lt;P&gt;            [CHANGING... [VALUE(]&amp;lt;pi&amp;gt;[)] [TYPE &amp;lt;t&amp;gt;|LIKE &amp;lt;f&amp;gt;]... ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;subr&amp;gt; is the name of the subroutine. The optional additions USING and CHANGING define the parameter interface. Like any other processing block, subroutines cannot be nested. You should therefore place your subroutine definitions at the end of the program, especially for executable programs (type 1). In this way, you eliminate the risk of accidentally ending an event block in the wrong place by inserting a FORM...ENDFORM block.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845220#M924483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845221#M924484</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;Using Perform we r passing actual parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USing FORM statement formal parameters r used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With in form and endform statements code is written .&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;Narasimha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845221#M924484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845222#M924485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.YES,for external subroutines ,&lt;/P&gt;&lt;P&gt;Perform form_name in program program name&lt;/P&gt;&lt;P&gt;           using ....&lt;/P&gt;&lt;P&gt;2.2 ways to call external forms..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. PERFORM (RNAME) IN PROGRAM ZYX_STAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here RNAME canbe variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. PERFORM RNAME IN PROGRAM ZYX_STAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here RNAME is Form name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:&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="4899948"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845222#M924485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845223#M924486</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;there is no way to trigger form... endform without using perform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u dont use subroutiens.&lt;/P&gt;&lt;P&gt;try writing that code in a function module and call that functuion module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reagrds&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine/m-p/3845223#M924486</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-12T09:20:30Z</dc:date>
    </item>
  </channel>
</rss>

