<?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 function modules &amp; subroutines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420951#M821582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the difference between function module &amp;amp; subroutine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 21:05:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T21:05:29Z</dc:date>
    <item>
      <title>function modules &amp; subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420951#M821582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the difference between function module &amp;amp; subroutine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 21:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420951#M821582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T21:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: function modules &amp; subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420952#M821583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function modules are global and you can create them as remote function module but not the subroutines. Subroutines are program dependent...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 21:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420952#M821583</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2008-02-12T21:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: function modules &amp; subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420953#M821584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM are created in Function Builder (SE37) and belong to a program of type Function Group. A FM has a parameter interface that includes EXCEPTIONS tab that can be used to declare exceptions that can be thrown by the FM. This can be checked using SY-SUBRC field after the FM call. Since they are defined in SE37, they are global and can be called by any program or FM in the same system or can also be called by a remote system, if declared as RFC enabled. Also, only FM can be used for updating database using UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines are defined as part of a program of type Executable, Module Pool, Include, Subroutine Pool and Function Group. They also have parameter interface that consists of USING CHANGING and TABLES (Obsolete) additions. They are not global, though they can be called from other programs or FM in the same system &lt;STRONG&gt;by supplying the program name to which belong in parentheses&lt;/STRONG&gt;. They cannot be used for remote calls or updating database using UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality-wise they do the same job i.e. they are called by a clling program with some parameters and they may or may not return a result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 21:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420953#M821584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T21:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: function modules &amp; subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420954#M821585</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;These are the main differences between a function module and subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Function modules are global for all programd and all clients.&lt;/P&gt;&lt;P&gt;2. Function modules are accessed by same R/3 another R/3 and non R/3 systems also.&lt;/P&gt;&lt;P&gt;3. Function modules should return a value(more than one also)&lt;/P&gt;&lt;P&gt;4. Function modules are used at Module pool programs, BDCs, Scripts and smart forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub routines : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Sub routines doesn't return any values.&lt;/P&gt;&lt;P&gt;2. Sub routines in one R/3 can't be accessed by another R/3 systems.&lt;/P&gt;&lt;P&gt;3. Sub routines for local programs and current client only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nanda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 22:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-subroutines/m-p/3420954#M821585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T22:31:02Z</dc:date>
    </item>
  </channel>
</rss>

