<?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: Passing One internal Table Between two reports in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221725#M136646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try following sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT itab[] to memory id 'itab'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while importing in other report,&lt;/P&gt;&lt;P&gt;declare your internal table as itab with same structure.&lt;/P&gt;&lt;P&gt;Then use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT itab[]=itab[] from memory id 'itab'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Mar 2006 06:37:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-14T06:37:55Z</dc:date>
    <item>
      <title>Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221724#M136645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is Venky and my question  is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to pass one internal table between two reports using EXPORT IMPORT abap memory.&lt;/P&gt;&lt;P&gt;send me code plz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnz in advance.&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2024 18:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221724#M136645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-03T18:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221725#M136646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try following sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT itab[] to memory id 'itab'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while importing in other report,&lt;/P&gt;&lt;P&gt;declare your internal table as itab with same structure.&lt;/P&gt;&lt;P&gt;Then use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT itab[]=itab[] from memory id 'itab'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221725#M136646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T06:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221726#M136647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venky ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT obj1 ... objn TO MEMORY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT f itab FROM MEMORY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/SiliconValley/Campus/6345/export01.htm" target="test_blank"&gt;http://www.geocities.com/SiliconValley/Campus/6345/export01.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221726#M136647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T06:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221727#M136648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkatesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at demo programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_IMPORT&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_EXPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221727#M136648</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2006-03-14T06:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221728#M136649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu can use:&lt;/P&gt;&lt;P&gt;EXPORT INTERNAL TABLE itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221728#M136649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T06:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221729#M136650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt; check this sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA TEXT1(10) VALUE 'Exporting'.
DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
DO 5 TIMES.
ITAB-BOOKID = 100 + SY-INDEX.
APPEND ITAB.
ENDDO.

EXPORT ITAB
TO MEMORY ID 'table'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. IMPORTING...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.
LOOP AT JTAB.
WRITE / JTAB-BOOKID.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221729#M136650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T06:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221730#M136651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can export the internal table from Program 1 as below:&lt;/P&gt;&lt;P&gt;FREE MEMORY ID 'ID1'.&lt;/P&gt;&lt;P&gt;EXPORT itab TO MEMORY ID 'ID1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can retrieve the same Internal table in another Program using statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT itab FROM MEMORY ID 'ID1'.&lt;/P&gt;&lt;P&gt;FREE MEMORY ID 'ID1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nirupamaa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221730#M136651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T06:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221731#M136652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi satheesh&lt;/P&gt;&lt;P&gt;i awarded points to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221731#M136652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T06:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221732#M136653</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;try using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT (itab) TO MEMORY ID id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT ITAB = (itab) from memory ID id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221732#M136653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T06:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Passing One internal Table Between two reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221733#M136654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reading Data Objects from Memory&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read data objects from ABAP memory into an ABAP program, use the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT &amp;lt;f1&amp;gt; [TO &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [TO &amp;lt;g 2&amp;gt;] ... FROM MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO &amp;lt;g i &amp;gt; option, the data object &amp;lt;f i &amp;gt; in memory is assigned to the data object in the program with the same name. If you do use the option, the data object &amp;lt;f i &amp;gt; is read from memory into the field &amp;lt;g i &amp;gt;. The name &amp;lt;key&amp;gt; identifies the cluster in memory. It may be up to 32 characters long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not have to read all of the objects stored under a particular name &amp;lt;key&amp;gt;. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name &amp;lt;key&amp;gt;, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name &amp;lt;key&amp;gt;, SY-SUBRC is always 0, regardless of whether it contained the data object &amp;lt;f i &amp;gt;. If the cluster does not contain the data object &amp;lt;f i &amp;gt;, the target field remains unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this statement, the system does not check whether the structure of the object in memory is compatible with the structure into which you are reading it. The data is transported bit by bit. If the structures are incompatible, the data in the target field may be incorrect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTS1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TEXT1(10) VALUE 'Exporting'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 5 TIMES.&lt;/P&gt;&lt;P&gt;  ITAB-BOOKID = 100 + SY-INDEX.&lt;/P&gt;&lt;P&gt;  APPEND ITAB.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT TEXT1&lt;/P&gt;&lt;P&gt;       TEXT2 FROM 'Literal'&lt;/P&gt;&lt;P&gt;  TO MEMORY ID 'text'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT ITAB&lt;/P&gt;&lt;P&gt;  TO MEMORY ID 'table'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT SAPMZTS2 AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT SAPMZTS3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first part of this program is the same as the example in the section Saving Data Objects in Memory. In the example, the programs SAPMZTS1 and SAPMZTS2 are called using SUBMIT. You can create and maintain the programs called using the SUBMIT statement by double-clicking their names in the statement. For further information about the SUBMIT statement, refer to Calling Executable Programs (Reports)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example for SAPMZTS2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTS2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TEXT1(10),&lt;/P&gt;&lt;P&gt;      TEXT3 LIKE TEXT1 VALUE 'Initial'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT TEXT3 FROM MEMORY ID 'text'.&lt;/P&gt;&lt;P&gt;WRITE: / SY-SUBRC, TEXT3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.&lt;/P&gt;&lt;P&gt;WRITE: / SY-SUBRC, TEXT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example for SAPMZTS3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTS3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT JTAB.&lt;/P&gt;&lt;P&gt;  WRITE / JTAB-BOOKID.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is displayed on two successive screens and the program SAPMZTS2 attempts to read a data object TEXT3 from the data cluster "text", which does not exist. TEXT3 therefore remains unchanged. The existing data object TEXT2 is placed in TEXT1. In both cases, SY-SUBRC is 0, since the cluster "text" contains data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program SAPMZTS3 reads the internal table ITAB from the cluster "table" into the internal table JTAB. Both tables have the same structure, namely that of the ABAP Dictionary table SBOOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ashok Kumar Prithiviraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 06:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-one-internal-table-between-two-reports/m-p/1221733#M136654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T06:56:44Z</dc:date>
    </item>
  </channel>
</rss>

