<?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: Diff Subroutine &amp; FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395674#M533124</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;In External subroutine perform statement is in one program and form routine is in another program.It is used for Reusability purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External Subroutines are better for documentational purposes. You can have all the subroutines related to the program into single include program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another difference is that they are compiled with the program so they share the same memory, so there's no context change while calling a subroutine. It does save system time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can access all the global variables of the program in External subroutine but you can not access them in Function module unless they are passed as a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which one to use depends on the case you are dealing with.&lt;/P&gt;&lt;P&gt;For example, if you are developing functionality to convert ouptut in PDF format then it is better to create a function module so that all the programs across all packages can use that functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are developing functionality which will be used by a defined set of programs(which are handling same kind of data) then it's better to use External subroutines, where you can defined common data in External subroutines program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;END-OF-SELECTION:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In report programs using LDB for every value selected the program issues the output, to control this you would use END-OF-SELECTION. Now if you call your output in this event, the output is made only after all the values are selected as per the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i will give u a nice example where u need end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose while coding, u need a logic like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a condition is satisfied continue with the report&lt;/P&gt;&lt;P&gt;and if not satisfied, then display a message and end the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can code like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-slection.&lt;/P&gt;&lt;P&gt;if a = &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;do the following.......&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;write: 'THIS IS END'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Stop command triggers end-of-slection from anywhere. &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;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2007 10:13:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-12T10:13:48Z</dc:date>
    <item>
      <title>Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395672#M533122</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;   1) Can any one tell the main diff btween subroutine and FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   What is the use end-of-selction event apart from triggering at the end of program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &amp;amp; where it has used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395672#M533122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395673#M533123</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;P&gt;In contrast to normal subroutines function modules have uniquely defined interface. Declaring data as common parts is not possible for function modules. Function modules are stored in a central library. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2d74358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2d74358411d1829f0000e829fbfe/content.htm&lt;/A&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;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395673#M533123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395674#M533124</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;In External subroutine perform statement is in one program and form routine is in another program.It is used for Reusability purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External Subroutines are better for documentational purposes. You can have all the subroutines related to the program into single include program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another difference is that they are compiled with the program so they share the same memory, so there's no context change while calling a subroutine. It does save system time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can access all the global variables of the program in External subroutine but you can not access them in Function module unless they are passed as a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which one to use depends on the case you are dealing with.&lt;/P&gt;&lt;P&gt;For example, if you are developing functionality to convert ouptut in PDF format then it is better to create a function module so that all the programs across all packages can use that functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are developing functionality which will be used by a defined set of programs(which are handling same kind of data) then it's better to use External subroutines, where you can defined common data in External subroutines program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;END-OF-SELECTION:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In report programs using LDB for every value selected the program issues the output, to control this you would use END-OF-SELECTION. Now if you call your output in this event, the output is made only after all the values are selected as per the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i will give u a nice example where u need end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose while coding, u need a logic like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a condition is satisfied continue with the report&lt;/P&gt;&lt;P&gt;and if not satisfied, then display a message and end the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can code like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-slection.&lt;/P&gt;&lt;P&gt;if a = &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;do the following.......&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;write: 'THIS IS END'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Stop command triggers end-of-slection from anywhere. &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;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395674#M533124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395675#M533125</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;&lt;/P&gt;&lt;P&gt;1. Well, they can both return values. FMs are mainly used when a routine is to be performed by many programs. Subroutines (forms) are generally only executed within one program. You can perform routines from other programs, but it's not often done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. End of Selction event is generaly used to divide the business logic while coding your report. Like INITIALISATION, START-OF-SELECTION, END-OF-SLECTION. in the inititailisation, you will do all the intialisation things like setting the dafult values, in the stat-of-selction, you will write the business logic part like you will fetch the date from the dictionary and in the End-of-selection you will wirte the logic for display part this will have write statements and logic related to ouput display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395675#M533125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395676#M533126</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;plz go throgh the below link.&lt;/P&gt;&lt;P&gt;&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="3573826"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395676#M533126</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-06-12T10:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395677#M533127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Whats mean by returning values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395677#M533127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395678#M533128</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;FM are global while subroutines are local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can test a FM but you can not test a subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395678#M533128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395679#M533129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    As mentioned, both forms and FMs are reusable modularization units. To distinguish we generally say that forms are used for internal modularization and FMs are used for external modularization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To decide on which to implement, consider whether you need the content to be used just for a limited program or wheteher it can be called from many independent programs. For the first purpose it is better to implement a form whereas for the second we implement an FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, ABAP does not isolate the usage context. That is; you can call a form from another program within whose code the form is not actually implemented. However, this requires attention since the form may utilize global variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same issue holds for FMs. FMs are encapsulated in function groups and function groups may have global variables that can be globally used by all FMs inside it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395679#M533129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395680#M533130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rahul,&lt;/P&gt;&lt;P&gt;   Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers for function modules that logically belong together,Function modules allow you to encapsulate and reuse global functions in the R/3 System. They are stored in a central library,Unlike subroutines, you do not define function modules in the source code of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines are procedures that you can define in any ABAP program and also call from any program. Subroutines are normally called internally, that is, they contain sections of code or algorithms that are used frequently locally. If you want a function to be reusable throughout the system, use a function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End-of-selection is used mostly while using ldb's. It is used to display the output.&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;Arun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395680#M533130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395681#M533131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;end of selction is used for final data display.&lt;/P&gt;&lt;P&gt;In ALV report data is dieplayed in this event.&lt;/P&gt;&lt;P&gt;regrads,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395681#M533131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395682#M533132</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;FM : are placed in data dictionary for global access. &lt;/P&gt;&lt;P&gt;        Fm can return a value to any program. &lt;/P&gt;&lt;P&gt;        a Fm can be executed to check whether it working properly used or not.&lt;/P&gt;&lt;P&gt;       Fm can be made as a remote-enabled Fm n can be used for bapi's n in idocs........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subroutines: they are locally used.&lt;/P&gt;&lt;P&gt;                  doesnt have any treturn parameters.&lt;/P&gt;&lt;P&gt;                  cant be executed by itself.&lt;/P&gt;&lt;P&gt;                  used mainly for modularization purpose and to reduce the size of report prgm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection mainly useful for displaying data n for triggering end of prgm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395682#M533132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395683#M533133</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;    Whats mean by returning values does subroutine &amp;amp; FM return vales whats mean bt that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395683#M533133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395684#M533134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahul...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Sub routine&amp;lt;/b&amp;gt; is &amp;lt;b&amp;gt;local&amp;lt;/b&amp;gt; with in the program... Ofcourse there are ways to access subroutines from other programs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function Modules&amp;lt;/b&amp;gt; are &amp;lt;b&amp;gt;global&amp;lt;/b&amp;gt; throughout the system... And one more advantage is we can make function module remote enable to access data from ohter clients/systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARD POINTS IF HELPFUL&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;Sasidhar Reddy Matli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sasidhar Reddy Matli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395684#M533134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395685#M533135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whats mean by returning values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395685#M533135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395686#M533136</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;  Returning values means for a subroutine or a function module u will exporting some values and based on that values the subroutine or fm will perform some logic, based on that logic the values which u have send may change so they will be returned to ur program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: to a function module u have exported a and b values and importing c in the function module &lt;/P&gt;&lt;P&gt;c = a + b. So here it will return the sum of a and b through c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what is called as returning the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395686#M533136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395687#M533137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haritha!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Thanks, i understood so both ill ruturn values i am right&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, 12 Jun 2007 10:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-subroutine-fm/m-p/2395687#M533137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T10:44:38Z</dc:date>
    </item>
  </channel>
</rss>

