<?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: difference between subroutines and Function Madule in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791942#M912033</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;Function Modules :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules are global for all programd and all clients. &lt;/P&gt;&lt;P&gt;Function modules are accessed by same R/3 another R/3 and non R/3 systems also. &lt;/P&gt;&lt;P&gt;Function modules should return a value(more than one also) &lt;/P&gt;&lt;P&gt;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;Subroutines : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub routines doesn't return any values. &lt;/P&gt;&lt;P&gt;Sub routines in one R/3 can't be accessed by another R/3 systems. &lt;/P&gt;&lt;P&gt;Sub routines for local programs and current client only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2008 06:04:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-22T06:04:06Z</dc:date>
    <item>
      <title>difference between subroutines and Function Madule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791940#M912031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is difference between subroutines and Function Madule and how many types of functional madules are there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 06:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791940#M912031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T06:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: difference between subroutines and Function Madule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791941#M912032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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://www.allinterview.com/showanswers/29188.html" target="test_blank"&gt;http://www.allinterview.com/showanswers/29188.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 06:03:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791941#M912032</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-22T06:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: difference between subroutines and Function Madule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791942#M912033</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;Function Modules :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules are global for all programd and all clients. &lt;/P&gt;&lt;P&gt;Function modules are accessed by same R/3 another R/3 and non R/3 systems also. &lt;/P&gt;&lt;P&gt;Function modules should return a value(more than one also) &lt;/P&gt;&lt;P&gt;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;Subroutines : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub routines doesn't return any values. &lt;/P&gt;&lt;P&gt;Sub routines in one R/3 can't be accessed by another R/3 systems. &lt;/P&gt;&lt;P&gt;Sub routines for local programs and current client only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 06:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791942#M912033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T06:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: difference between subroutines and Function Madule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791943#M912034</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;A href="http://www.allinterview.com/showanswers/29188.html" target="test_blank"&gt;http://www.allinterview.com/showanswers/29188.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 06:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791943#M912034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T06:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: difference between subroutines and Function Madule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791944#M912035</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;The major differences between function modules and  subroutines are the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules have a special screen used for defining parameters-parameters are not defined via ABAP/4 statements. &lt;/P&gt;&lt;P&gt;tables work areas are not shared between the function module and the calling program. &lt;/P&gt;&lt;P&gt;Different syntax is used to call a function module than to call a subroutine. &lt;/P&gt;&lt;P&gt;Leaving a function module is accomplished via the raise statement instead of check, exit, or stop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 06:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791944#M912035</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-22T06:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: difference between subroutines and Function Madule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791945#M912036</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;A subroutine is a reusable section of code. It is like a mini-program that can be called from another point in your program. Within it you can define variables, execute statements, compute results, and write output. To define a subroutine, use the form statement to indicate the start of a subroutine, and use endform to indicate the end of the subroutine. The name of a subroutine cannot exceed 30 characters. &lt;/P&gt;&lt;P&gt;To call a subroutine use the  perform statement.&lt;/P&gt;&lt;P&gt;subroutines cannot be nested inside of  events.&lt;/P&gt;&lt;P&gt;global variables are  defined outside of a subroutines  using data statements or Tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module : It is very similar to an external subroutine in these ways: &lt;/P&gt;&lt;P&gt;u2022Both exist within an external program. &lt;/P&gt;&lt;P&gt;u2022Both enable parameters to be passed and returned. &lt;/P&gt;&lt;P&gt;u2022Parameters can be passed by value, by value and result, or by reference. &lt;/P&gt;&lt;P&gt;The major differences between function modules and external subroutines are the following: &lt;/P&gt;&lt;P&gt;u2022Function modules have a special screen used for defining parameters-parameters are not defined via ABAP/4 statements. &lt;/P&gt;&lt;P&gt;u2022tables work areas are not shared between the function module and the calling program. &lt;/P&gt;&lt;P&gt;u2022Different syntax is used to call a function module than to call a subroutine. &lt;/P&gt;&lt;P&gt;u2022Leaving a function module is accomplished via the raise statement instead of check, exit, or stop. &lt;/P&gt;&lt;P&gt;A function module name has a practical minimum length of three characters and a maximum length of 30 characters. Customer function modules must begin with Y_ or Z_. The name of each function module is unique within the entire R/3 system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 08:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutines-and-function-madule/m-p/3791945#M912036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T08:36:04Z</dc:date>
    </item>
  </channel>
</rss>

