<?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: abap memory question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797942#M1123574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what u did say is no difference between sap and abap memory,cos both statement i can get the value of memory i sent?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2008 13:02:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-03T13:02:12Z</dc:date>
    <item>
      <title>abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797940#M1123572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,guys,i did a example to test the difference between sap memory and abap memory,the result that i did program zmemory1 is : 1111  2223,&lt;/P&gt;&lt;P&gt;but the question is when i did program zmemory2 alone,the result is the same,why i can get test2 with&lt;/P&gt;&lt;P&gt;import statement in different session,below is my code,&lt;/P&gt;&lt;P&gt;thxs in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zmemory1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : test1(10) TYPE c,&lt;/P&gt;&lt;P&gt;       test2(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test1 = '1111'.&lt;/P&gt;&lt;P&gt;test2 = '2223'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE MEMORY ID 'TEST2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'TEST1' FIELD test1.&lt;/P&gt;&lt;P&gt;EXPORT test2 TO MEMORY ID 'TEST2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ZMEMORY2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;REPORT  zmemory2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: test1(10) TYPE c,&lt;/P&gt;&lt;P&gt;      test2(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'TEST1' FIELD test1 .&lt;/P&gt;&lt;P&gt;IMPORT test2 FROM MEMORY ID 'TEST2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ test1,test2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 12:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797940#M1123572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797941#M1123573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what i understood is although i am running zmemory2 report individually also the data is getting from memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;FREE MEMORY ID 'TEST2'.&lt;/P&gt;&lt;P&gt;in zmemory 2 as well before using import statement .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 12:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797941#M1123573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T12:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797942#M1123574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what u did say is no difference between sap and abap memory,cos both statement i can get the value of memory i sent?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797942#M1123574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797943#M1123575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u use SET/GET parameters it uses SAP memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u use IMPORT/EXPORT paramers, it uses ABAP Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOpe u understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards,&lt;/P&gt;&lt;P&gt;Flavya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797943#M1123575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797944#M1123576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP MEMORY --&amp;gt; It will stay until the application data is there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP memory --&amp;gt;( set import) will stay until u open u r sessions only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sorry ur words are hard to understand , what i understood i am giving the answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797944#M1123576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797945#M1123577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i know that,but in book,they say:abap memory is only available in one session,so i did zmemory1,and in it i called zmemory2,i could get test2 cos they were in the same session,but i did zmemory2 alone is absolutly in other new session to the fiist time i ran zmemory1,they are different session,have no idea!&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797945#M1123577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797946#M1123578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values stored in ABAP Memory is available in the same session means say you are executing a program so the instance of the program will be running in say session A, at the same time you run a different program which will now be running in a different session say session B. So, session A and session B are different session and you cannot access objects between this two session by using the ABAP memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only access values between Program A and Program B then submit the program B in program A, so these two programs will be in the same session and can share values/data between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as the session ends the memory is cleared by Garbage Collector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797946#M1123578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797947#M1123579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For testing do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- log of all your SAP sessions and log in once again&lt;/P&gt;&lt;P&gt;- First run your Z_MEMORY2 report and see the result (none   none)&lt;/P&gt;&lt;P&gt;- then run your Z_MEMORY1 report and see the result (1111   2223)&lt;/P&gt;&lt;P&gt;- then in the same window session switch to Z_MEMORY2 program and execute it. The result is (1111   2223)&lt;/P&gt;&lt;P&gt;- then open new window session and run Z_MEMORY2 once again. The result is (1111   none)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your understanding of SAP and ABAP memory is good, you just probably tried to run Z_MEMORY2 in same window, which is the same session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797947#M1123579</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-12-03T13:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797948#M1123580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,jayant,&lt;/P&gt;&lt;P&gt;when the program A end,the session A should be ended automatically,so the parameter i send in program A should be cleared in abap memory,in my case ,but i execute other program getting the paramter in abap memory,the value of this parameter is still here,i counldnt understand!&lt;/P&gt;&lt;P&gt;regars&lt;/P&gt;&lt;P&gt;kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797948#M1123580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797949#M1123581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thxs,Marin,u really did a great help!&lt;/P&gt;&lt;P&gt;i thought once i end the grogram ,the session should be end aslo like i did in other languages~~~&lt;/P&gt;&lt;P&gt;thxs again!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797949#M1123581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797950#M1123582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can retest the whole thing again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute your program ZMEMORY_1 in which you have chosen EXPORT TO MEMORY-ID -&amp;gt; This will store the value you want to, to a memory space created by name as specified by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute your Program ZMEMORY_2 in which you have chosen IMPORT FROM MEMORY-ID -&amp;gt; This will get the value you have stored in the memory ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case you execute the program separately you will not be able to get the value you have stored in memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have executed/submitted the program ZMEMORY_2 in program ZMEMORY_1 you will be able to get the values stored in the memory ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that Garbage Collector collects/clears the memory as soon as session is ended. May be in some case it would not have been triggred before the execution of the program, I am taking a case on my assumption but generally it does not happens and Garbage Collector does it job well :-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797950#M1123582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: abap memory question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797951#M1123583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thxs,jayant,marcin have told me the reason,there are a so-called 'window session'  here which caused my problem.&lt;/P&gt;&lt;P&gt;regards guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 13:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-memory-question/m-p/4797951#M1123583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T13:50:17Z</dc:date>
    </item>
  </channel>
</rss>

