<?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: Reading from memory. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180348#M1518391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SCHT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the syntax you've used is obsolete. It would only work if both variables have the same name (either i_val or i_val1).&lt;/P&gt;&lt;P&gt;I would recommend to use the following syntax instead:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT value1 FROM i_val

  TO MEMORY ID 'PrjID'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;IMPORT value1 TO i_val1
  FROM MEMORY ID 'PrjID'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;'value1' is a freely chosen name of the area used to store your variable in memory id 'PrjID'. This syntax allows unbundling the value from the name of the variable used to store it in the memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Aug 2010 18:54:12 GMT</pubDate>
    <dc:creator>alejiandro_sensejl</dc:creator>
    <dc:date>2010-08-16T18:54:12Z</dc:date>
    <item>
      <title>Reading from memory.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180347#M1518390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read a variable from memory and in my first function module I have this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
i_val TYPE /bic/szsfppd96-/bic/zsfppd96.
EXPORT i_val to MEMORY ID 'PrjID'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my second function module I have this to read it out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
i_val1 TYPE /bic/szsfppd96-/bic/zsfppd96.
IMPORT i_val1 FROM MEMORY ID 'PrjID'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I go into debugging mode and read &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i_val1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get an empty value. Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SCHT on Aug 16, 2010 8:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 18:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180347#M1518390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T18:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from memory.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180348#M1518391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SCHT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the syntax you've used is obsolete. It would only work if both variables have the same name (either i_val or i_val1).&lt;/P&gt;&lt;P&gt;I would recommend to use the following syntax instead:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT value1 FROM i_val

  TO MEMORY ID 'PrjID'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;IMPORT value1 TO i_val1
  FROM MEMORY ID 'PrjID'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;'value1' is a freely chosen name of the area used to store your variable in memory id 'PrjID'. This syntax allows unbundling the value from the name of the variable used to store it in the memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 18:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180348#M1518391</guid>
      <dc:creator>alejiandro_sensejl</dc:creator>
      <dc:date>2010-08-16T18:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from memory.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180349#M1518392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the helpful answer... does it work if i have 2 web session? e.g. the 1st web session is where i do the export statement and 2nd web session is where the import happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 19:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180349#M1518392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T19:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from memory.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180350#M1518393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the "EXPORT/IMPORT xxx TO/FROM MEMORY" statements are using the [ABAP Memory|http://help.sap.com/abapdocu_70/en/ABENABAP_MEMORY_GLOSRY.htm] that is not shared between sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to share it between sessions, you should have a look at the follwing concepts.&lt;/P&gt;&lt;P&gt;- GET/SET-Parameter&lt;/P&gt;&lt;P&gt;- EXPORT/IMPORT xxx TO/FROM SHARED BUFFER / EXPORT/IMPORT xxx TO/FROM SHARED MEMORY/ EXPORT/IMPORT xxx TO/FROM DATABASE&lt;/P&gt;&lt;P&gt;- [Persistence Service|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f5/a36828bc6911d4b2e80050dadfb92b/frameset.htm]&lt;/P&gt;&lt;P&gt;- [Shared Objects|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list is sorted from the easiest implementation (which I would recommend only to use for storing a minor amount of data) to the more powerful statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 19:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-from-memory/m-p/7180350#M1518393</guid>
      <dc:creator>alejiandro_sensejl</dc:creator>
      <dc:date>2010-08-16T19:41:23Z</dc:date>
    </item>
  </channel>
</rss>

