<?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 an internal table to memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895529#M54172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is pretty simple, just go:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* From calling program
  EXPORT it_itab TO MEMORY ID 'ZZ_MEM_ID'.

* From within called program
  IMPORT it_itab FROM MEMORY ID 'ZZ_MEM_ID;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2005 15:36:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-26T15:36:21Z</dc:date>
    <item>
      <title>Exporting an internal table to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895528#M54171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;  I want to call an program from another program and want the values stored in an internal table used in the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i export an internal table to memory id an then import it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 15:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895528#M54171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T15:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting an internal table to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895529#M54172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is pretty simple, just go:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* From calling program
  EXPORT it_itab TO MEMORY ID 'ZZ_MEM_ID'.

* From within called program
  IMPORT it_itab FROM MEMORY ID 'ZZ_MEM_ID;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 15:36:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895529#M54172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting an internal table to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895530#M54173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember also that the internal table must be declared in both programs and must have the &amp;lt;b&amp;gt;same structure and the same name.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 15:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895530#M54173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T15:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting an internal table to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895531#M54174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi brad , &lt;/P&gt;&lt;P&gt; Thank you for the response, do we write the import statement in the called program or in the calling program? &lt;/P&gt;&lt;P&gt; I want to process data retrieved from the called program in the calling program, will the data be available in the calling program if I import it in the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 16:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895531#M54174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T16:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting an internal table to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895532#M54175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't matter which program is the calling or the called program.  You can use these statements in both directions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for your example, put the EXPORT statement in the called program (to export the final internal table to memory), and then put the IMPORT statement in the calling program (to get the results back).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope thats clearer now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 16:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895532#M54175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T16:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting an internal table to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895533#M54176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So to be clear, for your requirement it would be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Towards the end of the called program
  EXPORT it_itab TO MEMORY ID 'ZZ_MEM_ID'.
.
.
.
* And then from calling program after the submit zzzz and return statement
  IMPORT it_itab FROM MEMORY ID 'ZZ_MEM_ID'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Brad Williams (put back intro text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Brad Williams&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 20:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895533#M54176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T20:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting an internal table to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895534#M54177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad , &lt;/P&gt;&lt;P&gt;  Thank you , your solution gives the perfect result.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2005 16:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-an-internal-table-to-memory/m-p/895534#M54177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-27T16:27:11Z</dc:date>
    </item>
  </channel>
</rss>

