<?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: Which is faster- Function Module or a subroutine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875633#M674958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;function modules increases u r program performances&lt;/P&gt;&lt;P&gt;when comparing with external sub routines&lt;/P&gt;&lt;P&gt;but subroutines provides readability &amp;amp; modularization&lt;/P&gt;&lt;P&gt;function modules provides reusability &amp;amp; encapsulation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function module gets process in function group&lt;/P&gt;&lt;P&gt;subroutine gets process in calling program thats the main difference between them&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nagesh.Paruchuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 04:14:36 GMT</pubDate>
    <dc:creator>paruchuri_nagesh</dc:creator>
    <dc:date>2007-09-26T04:14:36Z</dc:date>
    <item>
      <title>Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875627#M674952</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;I have a question. I want to know that in terms of execution time which is faster -&lt;/P&gt;&lt;P&gt;a Function Module being used in a program or a subroutine of any other program being called in a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know your comments on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be suitably rewarded to useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875627#M674952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T04:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875628#M674953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subroutine is faster than the Function modules. This is because subroutine is a part of the main program or subroutine pool program and it does not take much time during runtime but for function modules, system accesses whole Function group associated to it which cause the bad performance and runtime is more compared to same code in a subroutine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875628#M674953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T04:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875629#M674954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function Module  faster .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875629#M674954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T04:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875630#M674955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both will require the same time, if the Import, Export parameters are the same &amp;amp; code is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason of using a FM instead of subroutine is for REUSE. You can use the same FM across different programs whereas subroutine is restricted to use only within the same program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875630#M674955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T04:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875631#M674956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always better to call FMs instead of External Subroutines.&lt;/P&gt;&lt;P&gt;SAP will not recommend to use External subroutines.&lt;/P&gt;&lt;P&gt;So FMs will be fast compared to External subroutines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875631#M674956</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-26T04:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875632#M674957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Himanshu,&lt;/P&gt;&lt;P&gt;I think it is function module which is faster when compared to Subroutines.Looking forward to SDN experts replies too.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875632#M674957</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-09-26T04:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875633#M674958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;function modules increases u r program performances&lt;/P&gt;&lt;P&gt;when comparing with external sub routines&lt;/P&gt;&lt;P&gt;but subroutines provides readability &amp;amp; modularization&lt;/P&gt;&lt;P&gt;function modules provides reusability &amp;amp; encapsulation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function module gets process in function group&lt;/P&gt;&lt;P&gt;subroutine gets process in calling program thats the main difference between them&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nagesh.Paruchuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875633#M674958</guid>
      <dc:creator>paruchuri_nagesh</dc:creator>
      <dc:date>2007-09-26T04:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875634#M674959</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;&amp;lt;b&amp;gt;Subroutines&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Subroutines are principally for local modularization, that is, they are generally called from the program in which they are defined. You can use subroutines to write functions that are used repeatedly within a program. You can define subroutines in any ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function Modules&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Function modules are for global modularization, that is, they are always called from a different program. Function modules contain functions that are used in the same form by many different programs. They are important in the R/3 System for encapsulating processing logic and making it reusable. Function modules must be defined in a function group, and can be called from any program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Subroutines executes faster than the fn modules because subroutines are defined within the program and they are executed after they have been called whereas the when u call a fn module, it is defined globally and it is accessed through a fn group in which they are stored. ALso the fn group should be active at the time of calling.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875634#M674959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T04:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875635#M674960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;subroutines are faster than function modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 04:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875635#M674960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T04:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Which is faster- Function Module or a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875636#M674961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 06:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-is-faster-function-module-or-a-subroutine/m-p/2875636#M674961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T06:04:42Z</dc:date>
    </item>
  </channel>
</rss>

