<?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: memory id cleared unexpectedly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045669#M1172946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Never mind.&lt;/P&gt;&lt;P&gt;So in that case is your query resolved?&lt;/P&gt;&lt;P&gt;Also tracking just the variable should not be much of a problem. Just ensure the variable is not defined again within the perform or somewhere in between. This could be a reason for it getting cleared.&lt;/P&gt;&lt;P&gt;To check it u can temporarily transfer the content to another variable TAXCODE1 which is global in nature...if this variable persists then there is some problem in declaration of TAXCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the Best !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2009 16:18:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-16T16:18:35Z</dc:date>
    <item>
      <title>memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045660#M1172937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To begin with this logic has been in our production systems working fine for at least 2 years; it works in 4.5B and continued to work after we upgraded to 6.0.   Some changes to the system has made this program work differently and I need some guidance to determine the root cause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a user exit that calls a subroutine and just after that subroutine we export to a memory id.  This memory id is then later used in a different user exit.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the code is like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform  XYZ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export  ABC to memory id "ABC" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We found in debug that ABC was being cleared before we were able to export it to the memory id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;To fix this issue we moved the EXPORT  statement within the subroutine.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what might cause this to happen? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 15:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045660#M1172937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T15:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045661#M1172938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Perform XYZ using ABC. " Pass back the ABC in the subroutine Instead of using export inside a subrouine

Export ABC to memory id "ABC"
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: a®s on Jan 15, 2009 11:00 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 15:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045661#M1172938</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-01-15T15:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045662#M1172939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Usually Exporting to a memory ID would persist during the current work process. Hence if you havent mentioned explicitly to execute perform in a new task it should be available.&lt;/P&gt;&lt;P&gt;Also look if in some modification someone might have explicitly FREE the ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition you could make use of ABAP shared memory where data would persist even after the execution is over and hence may prove useful to you.&lt;/P&gt;&lt;P&gt; Revert if u need anything more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 15:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045662#M1172939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T15:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045663#M1172940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ankesh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How might I find if someone explicitly FREE the ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recall no changes have been made to our code so this FREE ID would have to be somewhere else. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 15:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045663#M1172940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T15:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045664#M1172941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess if someone has put it in the code then it must be there in any of the objects that are getting executed.&lt;/P&gt;&lt;P&gt;Like your current set of programs.&lt;/P&gt;&lt;P&gt;You could do a global search in each of it.&lt;/P&gt;&lt;P&gt;Or you could set a break point on command FREE ID... during debugging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 15:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045664#M1172941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T15:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045665#M1172942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What is the scope of the variable ABC ? I'm assuming it is global to the program.&lt;/P&gt;&lt;P&gt;Do a where used on that variable in the ABAP editor and see if any statement is clearing this variable before subroutine XYZ is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 15:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045665#M1172942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T15:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045666#M1172943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Advait &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is global to that program and doing the where used on the variable there is a clear statement at the beginning of the subroutine that eventually finds the value for ABC.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 16:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045666#M1172943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T16:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045667#M1172944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that is strange then. So there could be 2 possible reasons : &lt;/P&gt;&lt;P&gt;1. The value is not getting exported to the memory id at all : &lt;/P&gt;&lt;P&gt;In this case,you should try to debug the program and check the value of the memory id 'ABC', in the ABAP Memory area, in the debugger's menu option Goto&lt;DEL&gt;&amp;gt;System Areas&lt;/DEL&gt;&amp;gt;ABAP memory after the export statement and just before the import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The memory id is being cleared somewhere after the export and before the corresponding import :&lt;/P&gt;&lt;P&gt;Since import/export is ABAP memory only and can be referenced within only one internal session, you can further debug the program until you reach the point where the memory id 'ABC' is imported . Remember to put a breakpoint on the statements 'FREE' and 'IMPORT'  when the debugger starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 08:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045667#M1172944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T08:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045668#M1172945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies for not explaining the situation better.   It was my not being an abap developer and just not thinking through the problem correctly.   I'll try this again.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAMPLE code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM   XYZ &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;EXPORT  TAXCODE to memory-id &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM  XYZ &lt;/P&gt;&lt;P&gt;     TAXCODE = "ABC"  &lt;/P&gt;&lt;P&gt;ENDFORM  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some how the TAXCODE variable is cleared from the time it is returned from the FORM XYZ and the time the EXPORT statement is performed.   There is NO other code between the PERFORM and the EXPORT statements.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine like this in at least one production system (that is the TAXCODE is not cleared).   In a different system we have had to move the EXPORT statement to just before the ENDFORM.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So again my apologies it has nothing to do with the memory id.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 15:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045668#M1172945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T15:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045669#M1172946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Never mind.&lt;/P&gt;&lt;P&gt;So in that case is your query resolved?&lt;/P&gt;&lt;P&gt;Also tracking just the variable should not be much of a problem. Just ensure the variable is not defined again within the perform or somewhere in between. This could be a reason for it getting cleared.&lt;/P&gt;&lt;P&gt;To check it u can temporarily transfer the content to another variable TAXCODE1 which is global in nature...if this variable persists then there is some problem in declaration of TAXCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the Best !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 16:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045669#M1172946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T16:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045670#M1172947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ankesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excellent suggestion.    Since I'm not the one making the code changes, I'll need to wait until next week to see what the result is.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 16:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045670#M1172947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T16:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: memory id cleared unexpectedly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045671#M1172948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure none of you will be surprised about our findings.   We found that a different group had modified a user exit and redeclared the global variable in their user exit.   Even though our process does not branch to that user exit, the redeclaring of that globally declared variable is what caused the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your help with this. &lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 22:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-id-cleared-unexpectedly/m-p/5045671#M1172948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T22:33:03Z</dc:date>
    </item>
  </channel>
</rss>

