<?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 another function group in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891336#M373100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternative to Rich's suggestion, you can also do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM TKKA1000_FUELL(saplkkag).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to include all the relevant parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2007 20:48:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-23T20:48:06Z</dc:date>
    <item>
      <title>Calling subroutine in another function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891333#M373097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to include a call to subroutine TKKA1000_FUELLEN in function group kkag in my custom program. Can I do that? I come from a C/JAVA baclground in which I could INCLUDE the class or set of programs with a simple statement. can i do the smae here?&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;Mat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 20:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891333#M373097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T20:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine in another function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891334#M373098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;  Check the below code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PERFORM form IN PROGRAM prog.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Additions: &lt;/P&gt;&lt;P&gt;1. ... USING    p1 p2 p3 ... &lt;/P&gt;&lt;P&gt;2. ... CHANGING p1 p2 p3 ... &lt;/P&gt;&lt;P&gt;3. ... TABLES   itab1 itab2 ... &lt;/P&gt;&lt;P&gt;4. ... IF FOUND &lt;/P&gt;&lt;P&gt;In an ABAP Objects context, a more severe syntaxcheck is performed that in other ABAP areas. See Passsing SY-REPID not allowedand Receiving SY-SUBRC not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This variant is similar to variant 2 (externalperform). However, here you can specify the names of both thesubroutine and the program in which it occurs dynamically at runtime.If you do this, you should place the variables form and prog in parentheses. The names in form and prog must beentered in uppercase, otherwise a runtime error occurs. If you do notspecify any additions (such as USING) you do not need to specifythe program after IN PROGRAM. In this case, the system looks forthe subroutine in the current program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: RNAME(30) VALUE 'WRITE_STATISTIC',   "Form and program &lt;/P&gt;&lt;P&gt;                                           "names must &lt;/P&gt;&lt;P&gt;      PNAME(8)  VALUE 'ZYX_STAT'.          "be written in &lt;/P&gt;&lt;P&gt;                                           "upper case &lt;/P&gt;&lt;P&gt;PERFORM (RNAME)         IN PROGRAM ZYX_STAT. &lt;/P&gt;&lt;P&gt;PERFORM WRITE_STATISTIC IN PROGRAM (PNAME). &lt;/P&gt;&lt;P&gt;PERFORM (RNAME)         IN PROGRAM (PNAME). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All three PERFORM statements have the same effect, that is,they call the subroutine 'WRITE_STATISTIC', which is defined inthe program 'ZYX_STAT'. &lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;Dynamic PERFORM statements require more CPU time, since the system has to locate the subroutine each time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 20:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891334#M373098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T20:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine in another function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891335#M373099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that by using the IN PROGRAM extesion, but all of the variables used in the FORM must be declared in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Perform TKKA1000_FUELLEN in program SAPLKKAG.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to include the TABLES and CHANGING parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 20:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891335#M373099</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-23T20:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine in another function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891336#M373100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternative to Rich's suggestion, you can also do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM TKKA1000_FUELL(saplkkag).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to include all the relevant parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 20:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-in-another-function-group/m-p/1891336#M373100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T20:48:06Z</dc:date>
    </item>
  </channel>
</rss>

