<?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: Submit Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987771#M1493570</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;PRE&gt;&lt;CODE&gt;" Just Copy this and Test in 

Report Ztest1.
data : listobject TYPE TABLE OF ABAPLIST." For More info Take F1 help on Export to Memory 
SUBMIT ztest EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject       = listobject
 EXCEPTIONS
   NOT_FOUND        = 1
   OTHERS           = 2
          .
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
 EXPORTING
   WRITE_ONLY       = 'X'
  TABLES
    listobject       = listobject
 EXCEPTIONS
   EMPTY_LIST       = 1
   OTHERS           = 2      .
ENDIF.

Your ZTEST Program look as below

report ZTEST.
data : itab type standard table of sflight with header line.

select * from sflight into table itab.
if sy-subrc = 0.
  loop at itab.
    write :/ itab-carrid, itab-connid. " This Write Statement is Must to generatet List
  endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2010 06:41:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-22T06:41:22Z</dc:date>
    <item>
      <title>Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987768#M1493567</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 requirement where we need to get the output of report A in report B. For example: all the values displayed after executing report A needs to be fetched in the internal table of report B.&lt;/P&gt;&lt;P&gt;I tried using SUBMIT REPORT&lt;/P&gt;&lt;P&gt;                               EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;But i could not get proper solution.&lt;/P&gt;&lt;P&gt;Please share your views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Gowri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 06:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987768#M1493567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T06:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987769#M1493568</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;If you  are executing Report A then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export that internal table to a memory id  and in the Report B import that internal table from the specified memory id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So by doing like this you can get that internal table values of A in to B.&lt;/P&gt;&lt;P&gt;Hope you are familir with the Export and Import synatx. Other just do the F1 on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other just have a look on the below coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is in Report A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type table of ekko,&lt;/P&gt;&lt;P&gt;          itab1 type table of ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export itab to itab1 memory id ' Report A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Report B.&lt;/P&gt;&lt;P&gt;Data itab type table of Ekko.&lt;/P&gt;&lt;P&gt;Import Itab1 to itab from memory id ' Report A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 06:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987769#M1493568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T06:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987770#M1493569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumodh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Actually Report A is a Standard Report which we dont have any export ..import statements in it. &lt;/P&gt;&lt;P&gt;So I have tried using Submit report exporting list to memory in Report B(which is a custom report) and then using FM 'LIST_FROM_MEMORY' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Gowri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 06:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987770#M1493569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T06:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987771#M1493570</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;PRE&gt;&lt;CODE&gt;" Just Copy this and Test in 

Report Ztest1.
data : listobject TYPE TABLE OF ABAPLIST." For More info Take F1 help on Export to Memory 
SUBMIT ztest EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject       = listobject
 EXCEPTIONS
   NOT_FOUND        = 1
   OTHERS           = 2
          .
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
 EXPORTING
   WRITE_ONLY       = 'X'
  TABLES
    listobject       = listobject
 EXCEPTIONS
   EMPTY_LIST       = 1
   OTHERS           = 2      .
ENDIF.

Your ZTEST Program look as below

report ZTEST.
data : itab type standard table of sflight with header line.

select * from sflight into table itab.
if sy-subrc = 0.
  loop at itab.
    write :/ itab-carrid, itab-connid. " This Write Statement is Must to generatet List
  endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 06:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987771#M1493570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T06:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987772#M1493571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUBMIT (p_prog)&lt;/P&gt;&lt;P&gt;    WITH p_rbukrs EQ t_email_add-bukrs&lt;/P&gt;&lt;P&gt;    WITH p_budat EQ s_budat-low&lt;/P&gt;&lt;P&gt;    WITH s_tpsif2-low EQ t_email_add-zztpsif2&lt;/P&gt;&lt;P&gt;    WITH s_conso IN s_conso&lt;/P&gt;&lt;P&gt;    WITH s_altkt IN s_rzza&lt;/P&gt;&lt;P&gt;    TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;    SPOOL PARAMETERS s_pri_params&lt;/P&gt;&lt;P&gt;    WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;I.Muthukumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 06:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987772#M1493571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T06:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987773#M1493572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Can you please elaborate..&lt;/P&gt;&lt;P&gt;I dont have much idea on sap-spool. &lt;/P&gt;&lt;P&gt;where can we get the data in the internal table of custom report B , if we use the code given by u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Gowri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 06:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987773#M1493572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T06:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987774#M1493573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I have tried as you have given.But if we mention 'write_list' then the output will be displayed after executing the custom report B. &lt;/P&gt;&lt;P&gt;I dont want that .I want to fetch the report A output  in the internal table of report B and want to make some changes .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Gowri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 07:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987774#M1493573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T07:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987775#M1493574</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;Resolved myself..&lt;/P&gt;&lt;P&gt;Thankyou all for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gowri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 08:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987775#M1493574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T08:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987776#M1493575</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 tell how you solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 08:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987776#M1493575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T08:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987777#M1493576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumodh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually after calling FM 'LIST_FROM_MEMORY' , I have called FM 'LIST_TO_ASCI' and pssed table LISTASCI to  receive the list in ASCII.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Gowri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 08:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report/m-p/6987777#M1493576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T08:54:34Z</dc:date>
    </item>
  </channel>
</rss>

