<?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: Export &amp; Import internal table data across the programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881364#M1594871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT obj1 ... objn FROM DATABASE dbtab(ar) ID key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 09:22:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-26T09:22:50Z</dc:date>
    <item>
      <title>Export &amp; Import internal table data across the programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881361#M1594868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have two different reports,let say ZPRO1 &amp;amp; ZPRO2. I want to export internal table data of ZPRO1  to  ZPRO2 and then I want to do some calculations in ZPRO2 with the imported internal table data(ZPRO1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use 'SUBMIT' or CALL TRANSACTION syntax ZPRO1 is displaying..but I want to use only internal table data of ZPRO1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 08:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881361#M1594868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export &amp; Import internal table data across the programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881362#M1594869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that these programs are custom! The easiest(and convenient) solution would be to EXPORT the internal table of ZPRO1 to some memory cluster &amp;amp; later on IMPORT it in ZPRO2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you intend to SUBMIT ZPRO1, you must remember accessing the table through the call stack is not an option!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Similar requirements have been discussed before in the forums, you can refer to those as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on May 26, 2011 2:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 08:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881362#M1594869</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-05-26T08:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export &amp; Import internal table data across the programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881363#M1594870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use export and import statements to use your programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first program, use EXPORT statement and in the sceond one you can IMPORT it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sytax, press F1 key on the words EXPORT and IMPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For variable we use EXPORT statement as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT V_BATCH_FLAG TO MEMORY ID 'ZCON_LM05'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 09:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881363#M1594870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T09:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export &amp; Import internal table data across the programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881364#M1594871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT obj1 ... objn FROM DATABASE dbtab(ar) ID key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 09:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881364#M1594871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T09:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export &amp; Import internal table data across the programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881365#M1594872</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;  Please follow the simple code and try to solve your issue.&lt;/P&gt;&lt;P&gt;Code in program1&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of ty_itab,
       matnr type matnr,
       end of ty_itab.

data: it_itab type table of ty_itab,
      wa_itab type ty_itab,
      it_itab1 type table of ty_itab.

select matnr from mara into table it_itab.

export it_itab to shared buffer indx(st) id 'ABC'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code in program2&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of ty_itab,
       matnr type matnr,
       end of ty_itab.

data: it_itab type table of ty_itab,
      wa_itab type ty_itab.

import it_itab from shared buffer indx(st) id 'ABC'.
 loop at it_itab into wa_itab.
 write:/ wa_itab-matnr.
 endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please delete shared buffer indx(st) id 'ABC', once we don't need the internal table data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dande&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 09:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881365#M1594872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-26T09:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export &amp; Import internal table data across the programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881366#M1594873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 01:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table-data-across-the-programs/m-p/7881366#M1594873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-30T01:55:06Z</dc:date>
    </item>
  </channel>
</rss>

