<?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: Clearing Global SAP Memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814077#M1469373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either clear the global data when you first go into the FM or you can create a separate FM &lt;U&gt;in the same group&lt;/U&gt; which clears the global data. In this case, you would call the clearing FM and then the other one.. You would do it this way if there are situations where you want to keep the global data between sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Mar 2010 18:07:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-30T18:07:49Z</dc:date>
    <item>
      <title>Clearing Global SAP Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814076#M1469372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with clearing global sap memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a global internal table in a function group, when the function module of this function group is called for the second or third time from the same session, the new data i am passing, is appending to the old data without clearing the same even after clearing the global table before passing my data. This doesn't happen when i change the session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone shed some light....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 17:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814076#M1469372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T17:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing Global SAP Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814077#M1469373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either clear the global data when you first go into the FM or you can create a separate FM &lt;U&gt;in the same group&lt;/U&gt; which clears the global data. In this case, you would call the clearing FM and then the other one.. You would do it this way if there are situations where you want to keep the global data between sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 18:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814077#M1469373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing Global SAP Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814078#M1469374</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;This is not the problem. But the behaviour of SAP. When you use global internal tables, make sure that you clear all these global tables in all the FMs of the FG before using them. This should solve the issue. (I am assuming that you are talking about Z Function group).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 18:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814078#M1469374</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-30T18:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing Global SAP Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814079#M1469375</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;If this is custom function module you should first clear all the variable (Internal table, wor area, variables) declared in the TOP include. If there is more than one function module in the same function group the create one more FM only to clear the global variables likes every  *_INITIALIZE FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the standard one you can find one more FM wth more or less similar name ending with _INITIALIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If youing any bapi then you should use BAPI_TRANSACTION_COMMIT  or BAP_TRANSACTION _ROLLBACK to refresh the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 18:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-global-sap-memory/m-p/6814079#M1469375</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2010-03-30T18:24:14Z</dc:date>
    </item>
  </channel>
</rss>

