<?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 group memory with RFC calls in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231785#M139537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does make sense as global data within a function group is accessable by all function modules of the group.  Normally, in the ABAP system, you call multiple function modules of the same group, and they all share the data.  If you are calling from outside the system, I would expect a different behavior if you are connecting one by one.  But if you are using a pooled connection, this may be the issue.  Not sure though.  It seems that the session on r/3 has not ended and you are accessing the same when calling the second function module.  Is there any function module of the group that looks like it is a "refresher".  In some groups, there is a function module that will refresh the global data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/9f/db992335c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/9f/db992335c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Mar 2006 16:51:21 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-03-14T16:51:21Z</dc:date>
    <item>
      <title>Function group memory with RFC calls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231784#M139536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a system where a web front-end interacts with our 4.6C system through RFC calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a number of problems where variables declared in a function group are not being cleared out between separate RFC calls to functions in the same group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not have expected separate RFC calls from an external system to use the same memory area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen this happen at other sites too, but have never found an explanation for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this problem and if so can you give me more information about why it happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Denis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 16:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231784#M139536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T16:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function group memory with RFC calls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231785#M139537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does make sense as global data within a function group is accessable by all function modules of the group.  Normally, in the ABAP system, you call multiple function modules of the same group, and they all share the data.  If you are calling from outside the system, I would expect a different behavior if you are connecting one by one.  But if you are using a pooled connection, this may be the issue.  Not sure though.  It seems that the session on r/3 has not ended and you are accessing the same when calling the second function module.  Is there any function module of the group that looks like it is a "refresher".  In some groups, there is a function module that will refresh the global data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/9f/db992335c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/9f/db992335c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 16:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231785#M139537</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-14T16:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function group memory with RFC calls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231786#M139538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you quick response Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are connecting using JCO and a connection pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not an issolated example. Sometimes I have found a refresh function and this fixes that issue, but another arises later down the line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really trying to understand the issue better so that I am not constantly patching up holes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 17:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231786#M139538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T17:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function group memory with RFC calls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231787#M139539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Denis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Rich has pointed out and once the function group is loaded into the memory, the variables exist. So, you make a call to one of the RFC's now and after about 1/2 hr make a call to another RFC in the same group, there is a possibility that you might have variables that are still active in the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a developer, it should have been taken care the function module level to clear out the variables that are not required at the global level before you start execution of code of the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This process could be erroneous as you will not be able to guess the output as sometimes the memory might exist and sometimes it could have been cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward the helpful posts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 17:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231787#M139539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T17:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function group memory with RFC calls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231788#M139540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am aware that the memory of a function group is loaded at the first call to one of the functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is the lifetime of this memory that I want to understand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we were talking about function calls with an ABAP program then the memory would disappear at the end of the internal session of the program. However with RFC calls it seems that it stays around from one call to the next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensuring our developments correctly clear out the memory is fine. However the problems I have is when we make call to standard SAP FMs that make use of the Function group memory. These are extremely difficult to track down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really like to know if there is some way of releasing this memory between calls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 18:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231788#M139540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T18:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function group memory with RFC calls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231789#M139541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Denis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if we will be able to figure out when the garbage collection kicks in. Its better to take care in the coding part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 18:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231789#M139541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T18:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function group memory with RFC calls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231790#M139542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the BAPIs, almost all of them will do initialization of the variables and memory areas before starting the actual process. You will have to do the same in your RFCs to avoid any memory left-overs from a previous run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if it is going to wipe out the export and tables parameter values, but in report programs, FREE MEMORY at the end of the code does the trick. I haven't used it in function modules, so I cannot comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 18:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-group-memory-with-rfc-calls/m-p/1231790#M139542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T18:37:00Z</dc:date>
    </item>
  </channel>
</rss>

