<?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: Executing two reports from a third report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370750#M1040035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;report&amp;gt; EXPORTING LIST TO MEMORY AND RETURN - this will export the list output to memory..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can use the FMs LIST_FROM_MEMORY and then LIST_TO_ASCI to get the output from the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2008 10:21:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-28T10:21:23Z</dc:date>
    <item>
      <title>Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370748#M1040033</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;&lt;/P&gt;&lt;P&gt;I hv to execute two reports from a third report...say I hv Zrep1, Zrep2 and Zrep3...&lt;/P&gt;&lt;P&gt;From zrep3 I hv to execute the other two reports and I hv to get the output tables from those reports....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I hv used Submit zrep1 via selection-screen....here i'm gettin the selection screen of zrep1, if I execute it im gettin the o/p, but I dont want to display the output...I jus want to import the outputs of those two reports into Zrep3 with my selection screen criterion..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 10:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370748#M1040033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T10:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370749#M1040034</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;We have to use the Import list commands for this&lt;/P&gt;&lt;P&gt;We have option called as  EXPORTING LIST TO MEMORY AND RETURN  and IMPORTING LIST FROM MEMORY AND RETURN &lt;/P&gt;&lt;P&gt;Also use the FM LIST_TO_MEMORY FM for your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the sample code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA list_tab TYPE TABLE OF abaplist. 

SUBMIT report EXPORTING LIST TO MEMORY 
              AND RETURN. 

CALL FUNCTION 'LIST_FROM_MEMORY' 
  TABLES 
    listobject = list_tab 
  EXCEPTIONS 
    not_found  = 1 
    OTHERS     = 2. 

IF sy-subrc = 0. 
  CALL FUNCTION 'WRITE_LIST' 
    TABLES 
      listobject = list_tab. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 10:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370749#M1040034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T10:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370750#M1040035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;report&amp;gt; EXPORTING LIST TO MEMORY AND RETURN - this will export the list output to memory..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can use the FMs LIST_FROM_MEMORY and then LIST_TO_ASCI to get the output from the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 10:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370750#M1040035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T10:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370751#M1040036</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;Use Submit statement with syntax- ... EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;then read list from memory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 10:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370751#M1040036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T10:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370752#M1040037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mamtha,&lt;/P&gt;&lt;P&gt;   When you are calling prog1 and prog2 from prog3, what you can do after getting data in internal table in prog1. Just EXPORT this internal table to a memory Id. Then call the prog3 using SUBMIT &amp;lt;progname&amp;gt; AND RETURN and in prog3 just fetch that internal table from same memory id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 10:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370752#M1040037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370753#M1040038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I need to use submit report in zrep1 , zrep2 &amp;amp; zrep3....???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In zrep1 I hv to export final internal table...&lt;/P&gt;&lt;P&gt;submit &amp;lt;zrep1&amp;gt; exporting list to memory....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in zrep3 I need to import it....&lt;/P&gt;&lt;P&gt;submit &amp;lt;zrep1&amp;gt; importing list from memory...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct??? Can u be more clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whr I hv to use those FM's???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 10:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370753#M1040038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T10:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370754#M1040039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

   data listobject type table of abaplist.
data  g_list_content type solix_tab.

 submit zrep1 with p1 = v_vbeln exporting list to memory AND RETURN.

perform get_list.


&amp;lt;---Process the data in g_list_content.

 submit zre2 with p1 = v_vbeln exporting list to memory AND RETURN.

perform get_list.

&amp;lt;---Process the data in g_list_content.



form getlist.

* import the list from memory and store it in table listobject
    call function 'LIST_FROM_MEMORY'
      tables
        listobject = listobject
      exceptions
        not_found  = 1
        others     = 2.
    if sy-subrc &amp;lt;&amp;gt; 0.
*    message e105 with 'LIST_FROM_MEMORY'.
    endif.

* free memory
    call function 'LIST_FREE_MEMORY'
      tables
        listobject = listobject
      exceptions
        others     = 1.
    if sy-subrc &amp;lt;&amp;gt; 0.
*    message e105 with 'LIST_FREE_MEMORY'.
    endif.

* it's always necessary to compress the table.
* SAPconnect will decompress it
    call function 'TABLE_COMPRESS'
      tables
        in             = listobject
        out            = g_list_content
      exceptions
        compress_error = 1
        others         = 2.
    if sy-subrc &amp;lt;&amp;gt; 0.
*    message e105 with 'TABLE_COMPRESS'.
    endif.

endform.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 11:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370754#M1040039</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-08-28T11:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370755#M1040040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hv one more doubt...If I execute ZREP1 the output shd be exported to ZREP3 and If I execute ZREP2, the o/p shd be sent to ZREP3...hw can I do this..???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 11:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370755#M1040040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T11:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370756#M1040041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DEAR FRIEND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go through the MEMORY ID CONCEPTS..then u will get it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 11:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370756#M1040041</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-08-28T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370757#M1040042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u tell me hw to export the o/p from prog1 and import it in prog3 using memory id...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 11:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370757#M1040042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T11:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370758#M1040043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is from which program you want to export to the ABAP memory:           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   export ist_resb to memory id 'ABC'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   where ist_resb is the internal table name &lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;This code is from which program you want to import from the ABAP memory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        import *ist_resb *= ist_resb from memory id 'ABC'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              where  &lt;STRONG&gt;ist_resb This internal table is the importing program internal table.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;                    ist_resb This internal table is the exporting program internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But remember in both the program you have defined the same internal table with same structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 11:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370758#M1040043</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-08-28T11:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370759#M1040044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx for ur replies...I had tried it..but I'm not getting the data in my importing table internal table..see my declaration...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZREP1&lt;/P&gt;&lt;P&gt;    EXPORT t_final TO MEMORY ID 'TST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZREP2&lt;/P&gt;&lt;P&gt;   import t_final1 = t_final from memory id 'TST'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 11:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370759#M1040044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T11:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Executing two reports from a third report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370760#M1040045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice idea, but i would extract the logic of zrep1 and zrep2 into function modules and use those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the list outpout is a nightmare cause this is not a stable interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-two-reports-from-a-third-report/m-p/4370760#M1040045</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-08-28T13:02:39Z</dc:date>
    </item>
  </channel>
</rss>

