<?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 Module call exponentially slowing down in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-exponentially-slowing-down/m-p/9528520#M1750342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m going through our EarlyWatch list to reduce runtime of the poor performing programs. The one I’m addressing now runs within 2 minutes without a function module call, but nearly 2 hours with it. It has 1,200 calls to the function and starts by performing 10 per second. By the time it gets to 500 it’s doing 1 call every 3 seconds. It’s a Z function module that is quite intricate and I don't want to change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’d like to know if there is a way to clear all memory used by the function module (and it's global data) with a single command - outside the function module - before and after calling it? This way I can be sure it has a “fresh” start every call. I believe it is a memory issue, because if I run the program for e.g. 500 entries and I run the last processed entry in SE37 it runs immediate without the 3 second slow down/delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jun 2013 14:03:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-06-21T14:03:01Z</dc:date>
    <item>
      <title>Function Module call exponentially slowing down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-exponentially-slowing-down/m-p/9528520#M1750342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m going through our EarlyWatch list to reduce runtime of the poor performing programs. The one I’m addressing now runs within 2 minutes without a function module call, but nearly 2 hours with it. It has 1,200 calls to the function and starts by performing 10 per second. By the time it gets to 500 it’s doing 1 call every 3 seconds. It’s a Z function module that is quite intricate and I don't want to change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’d like to know if there is a way to clear all memory used by the function module (and it's global data) with a single command - outside the function module - before and after calling it? This way I can be sure it has a “fresh” start every call. I believe it is a memory issue, because if I run the program for e.g. 500 entries and I run the last processed entry in SE37 it runs immediate without the 3 second slow down/delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 14:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-exponentially-slowing-down/m-p/9528520#M1750342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-21T14:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module call exponentially slowing down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-exponentially-slowing-down/m-p/9528521#M1750343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could call function with addition &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/content.htm"&gt;AS SEPARATE UNIT&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;This would be a shortcut to get around global memory issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 14:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-exponentially-slowing-down/m-p/9528521#M1750343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-21T14:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module call exponentially slowing down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-exponentially-slowing-down/m-p/9528522#M1750344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function module global data is often used to buffer values and make subsequent calls faster. I am not sure clearing global data, if possible, is the right approach. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My opinion, I don't think there is any easy way,&amp;nbsp; you will have to go through the code of both calling program and function module to see why its taking time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 16:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-call-exponentially-slowing-down/m-p/9528522#M1750344</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2013-06-21T16:06:18Z</dc:date>
    </item>
  </channel>
</rss>

