<?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: function module vs loacal subroutines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398649#M192874</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;Whenever you use any FM, system allocates the memory for all the FMs in that function group. SO, it may be the reason for slow access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2006 09:39:13 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2006-07-18T09:39:13Z</dc:date>
    <item>
      <title>function module vs loacal subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398648#M192873</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;&lt;/P&gt;&lt;P&gt;I have created some six function modules for data migration.all are working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i utillized local subroutine for the same logic &lt;/P&gt;&lt;P&gt;it creates performance issue.actually performance for the local subroutine is far better than (1/12) than function module.i checked all coding in both routines .everything is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then what could be the problem.if u know the answer please let me know.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 09:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398648#M192873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: function module vs loacal subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398649#M192874</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;Whenever you use any FM, system allocates the memory for all the FMs in that function group. SO, it may be the reason for slow access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 09:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398649#M192874</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-07-18T09:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: function module vs loacal subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398650#M192875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While using subroutines&lt;/P&gt;&lt;P&gt;the whole of program code is loaded in to memory&lt;/P&gt;&lt;P&gt;but while using function modules&lt;/P&gt;&lt;P&gt;only when the call happends the FM and its group is loaded in to memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that could be a reason for performance drop..&lt;/P&gt;&lt;P&gt;use SE30 and try analysing the code for performance u will get to know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 09:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398650#M192875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T09:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: function module vs loacal subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398651#M192876</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;Whenever a function module is called there is a process called context switch happens in micro-processor. &lt;/P&gt;&lt;P&gt;In this process all the registers(local memory of microprocessor ), program counter and memory(here cache and RAM) is refreshed and reloaded and previous content is saved in memory location. This whole process takes time. Thats why we have performance issue here.&lt;/P&gt;&lt;P&gt;So direct line of code is faster that local sub-routine . and local sub-routine is faster than function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 09:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-vs-loacal-subroutines/m-p/1398651#M192876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T09:45:34Z</dc:date>
    </item>
  </channel>
</rss>

