<?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 Export / Import  from Memory in background. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637358#M876023</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;I have a trouble and I dont know very well how to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z report running in background, and this report uses a SUBMIT to call another one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the SUBMIT, there is an EXPORT to memory sentence; and the second report read this memory cluster and works with the data; but it doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute online, there is no problem, and the 2nd report shows an ALV with data exported in 1st report, but in background, nothing is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you give me some help?&lt;/P&gt;&lt;P&gt;A lot of thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2008 11:27:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-17T11:27:30Z</dc:date>
    <item>
      <title>Export / Import  from Memory in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637358#M876023</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;I have a trouble and I dont know very well how to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z report running in background, and this report uses a SUBMIT to call another one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the SUBMIT, there is an EXPORT to memory sentence; and the second report read this memory cluster and works with the data; but it doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute online, there is no problem, and the 2nd report shows an ALV with data exported in 1st report, but in background, nothing is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you give me some help?&lt;/P&gt;&lt;P&gt;A lot of thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 11:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637358#M876023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T11:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export / Import  from Memory in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637359#M876024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check it once with this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_REPORT0.

data a type c.

a = 'X'.
data print_parameters TYPE pri_params.

*print_parameters-PDEST = 'LOCL'.
export a from a to memory id 'a1'.

submit ZTEST_REPORT exporting list to memory and return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Submit prgram code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_REPORT.

data: vbak type vbak.

data: a type c.

import a to a from memory id 'a1'.
if a = 'X'.
vbak-vbeln = 'TEST'.
modify vbak from vbak.
commit work.
endif.
write a.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i checked the VBAK table, there i can see the entry VBELN = 'TEST'. i executed the program in background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 12:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637359#M876024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export / Import  from Memory in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637360#M876025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alvaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is simple. There are two types of memories in SAP. ABAP and SAP memory. These memories have some properties. ABAP memory remains active as long as the program is in the same session. When ever there is a new session the old ABAP memory get refreshed, and a new ABAP memory comes into picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, before submitting the program to some other program you are exporting the value. Export will transfer the value to the ABAP memory. And after that you are submitting the program so a new session is being created and the ABAP memory is refreshed and so when you import that value you will get nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in order to solve the matter. Find a data element whose parameter ID you can set or you can create a custom data element witha  custom parameter id and use that parameter id. Use the GET / SET parameter id to set or get the values. In that case the value is being stored at the SAP memory instead of ABAP memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have a look the following site for the custom parameter ID creation:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ABAP/ParameterID/custom.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/ABAP/ParameterID/custom.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Abhijit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 12:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637360#M876025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T12:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export / Import  from Memory in background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637361#M876026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both, but finally I've created a little file in unix server to exchange the data; cause I am not able to create a ID memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 14:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-from-memory-in-background/m-p/3637361#M876026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T14:31:48Z</dc:date>
    </item>
  </channel>
</rss>

