<?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: Exporting to memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698268#M890462</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;&lt;/P&gt;&lt;P&gt;Internal tables are specfic to the program ,  so if at all we want to use the data from internal table of one program to internal table of another program , we can use EXPORT and IMPORT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 16:38:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T16:38:56Z</dc:date>
    <item>
      <title>Exporting to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698266#M890460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got to know the export and import (to and from memory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why we export generally the internal tables to the memory . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone thru  the couple of examples . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know in detail . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 16:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698266#M890460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T16:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698267#M890461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we export generally the internal tables to the memory so that we can import the internal table data from another program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of a program exporting an internal table to ABAP memory.&lt;/P&gt;&lt;P&gt;Prog 1&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;



parameters: pa_vbeln like vbak-vbeln.
data: itab type standard table of vbak.
* get data to fill the table
select * from vbak into table itab
            where vbeln = pa_vbeln.
* now store the internal table to ABAP memory
export itab to Memory ID 'table''.
 
* here we call another program, prog 2
submit prog2 and return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prog 2 -&amp;gt; This imports the internal table exported by prog 1 and writes the content of the internal table to a list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: jtab type standard table of vbak,
       wa_vbak type vbak.
 
* importing the itab that was exported by prog1
import itab to jtab from memory id 'table'.
 
loop at jtab into wa_vbak.
 write:/ wa_vbak-vbeln,
        wa_vbak-erdat.
endloop.
 
* clear the specific memory id after required processing is complete
free memory id 'table'

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 16:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698267#M890461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T16:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698268#M890462</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;&lt;/P&gt;&lt;P&gt;Internal tables are specfic to the program ,  so if at all we want to use the data from internal table of one program to internal table of another program , we can use EXPORT and IMPORT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 16:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698268#M890462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698269#M890463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;We can pass data from one program to another..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You have to define an internal table ITAB in program XXXX  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the program XXXX you export your ITAB to the memory.  &lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;EXPORT ITAB TO MEMORY ID 'TD'&lt;/STRONG&gt; (ID is the name of memory, you don't need to create it ).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In program YYYY you have to declare The same table (same table's name and same fields).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In YYYY you can import ITAB :  &lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;IMPORT ITAB FROM MEMORY ID 'TD'&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Now you can export it to XXXX after modifications.  &lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;EXPORT ITAB TO MEMORY ID 'TD'&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. In XXXX :  &lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;IMPORT ITAB FROM MEMORY ID 'TD'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 16:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-to-memory/m-p/3698269#M890463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T16:44:28Z</dc:date>
    </item>
  </channel>
</rss>

