<?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: how to write report output into table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930988#M60831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks rich , poornanad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rich your code help me...&lt;/P&gt;&lt;P&gt;but when i pass rsparam report with submit it doesn't return any thing, more specific on my requirement&lt;/P&gt;&lt;P&gt;i want those three column data which we get when we run rsparam report into a table?&lt;/P&gt;&lt;P&gt; so please tell me how do i get this?&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;john&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2005 12:56:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-24T12:56:01Z</dc:date>
    <item>
      <title>how to write report output into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930985#M60828</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 get data out from report "RSPARAM" which list all system profile parameters my requirement is that i need to write output of this report to table so can anyone please tell me how should achieve this?&lt;/P&gt;&lt;P&gt;is there any FM which read report as parameters and write into table?&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;john.&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>Thu, 23 Jun 2005 14:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930985#M60828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-23T14:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to write report output into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930986#M60829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take a look at the F1-documentation for the SUBMIT statement. There's an option called EXPORTING LIST TO MEMORY. That should help you realize your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 14:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930986#M60829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-23T14:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to write report output into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930987#M60830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003 .

data: begin of listout occurs 0,
      line(1024) type c,
      end of listout.

* Submit the report and export list to memory
submit z_your_report exporting list to memory
            and return.

* Get list from memory and convert to ascii
perform retrieve_list_from_memory tables listout.

loop at listout.
  write:/ listout.
endloop.

************************************************************************
* RETRIEVE_LIST_FROM_MEMORY
************************************************************************
form retrieve_list_from_memory tables reportlines.

  data: list like abaplist occurs 0 with header line.
  data: txtlines(1024) type c occurs 0 with header line.

  clear list.  refresh list.
  clear reportlines. refresh reportlines.

  call function 'LIST_FROM_MEMORY'
       tables
            listobject = list
       exceptions
            not_found  = 1
            others     = 2.

  check sy-subrc = 0.

  call function 'LIST_TO_ASCI'
       tables
            listobject         = list
            listasci           = txtlines
       exceptions
            empty_list         = 1
            list_index_invalid = 2
            others             = 3.

  check sy-subrc = 0.

  reportlines[] = txtlines[].

  call function 'LIST_FREE_MEMORY'.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 14:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930987#M60830</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-23T14:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to write report output into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930988#M60831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks rich , poornanad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rich your code help me...&lt;/P&gt;&lt;P&gt;but when i pass rsparam report with submit it doesn't return any thing, more specific on my requirement&lt;/P&gt;&lt;P&gt;i want those three column data which we get when we run rsparam report into a table?&lt;/P&gt;&lt;P&gt; so please tell me how do i get this?&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;john&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 12:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930988#M60831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-24T12:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to write report output into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930989#M60832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the program you are calling(rsparam) is just calling another report, RSPFPAR.  Let's just call that one directly.  Here is an updated version of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also put the first 3 columns in a internal table.  This should show you what you need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zrich_0003 .

data: begin of listout occurs 0,
      line(1024) type c,
      end of listout.

data: begin of itab occurs 0,
      column1(100) type c,
      column2(100) type c,
      column3(100) type c,
      therest(100) type c,
      end of itab.

* Submit the report and export list to memory
submit  rspfpar exporting list to memory
            and return.

* Get list from memory and convert to ascii
perform retrieve_list_from_memory tables listout.

loop at listout.
  if sy-tabix =&amp;gt; 7.
    clear itab.
split listout+1(500) at '|' into itab-column1 itab-column2
                                 itab-column3 itab-therest.
    append itab.
  endif.
endloop.

loop at itab.
  write:/ itab-column1, itab-column2, itab-column3.

endloop.

************************************************************************
* RETRIEVE_LIST_FROM_MEMORY
************************************************************************
form retrieve_list_from_memory tables reportlines.

  data: list like abaplist occurs 0 with header line.
  data: txtlines(1024) type c occurs 0 with header line.

  clear list.  refresh list.
  clear reportlines. refresh reportlines.

  call function 'LIST_FROM_MEMORY'
       tables
            listobject = list
       exceptions
            not_found  = 1
            others     = 2.

  check sy-subrc = 0.

  call function 'LIST_TO_ASCI'
       tables
            listobject         = list
            listasci           = txtlines
       exceptions
            empty_list         = 1
            list_index_invalid = 2
            others             = 3.

  check sy-subrc = 0.

  reportlines[] = txtlines[].

  call function 'LIST_FREE_MEMORY'.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 13:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930989#M60832</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-24T13:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to write report output into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930990#M60833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, can you please mark this post as a question and reward points accordingly.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2005 13:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930990#M60833</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-24T13:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to write report output into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930991#M60834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want reward your answer.How do i reward to your answer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;john&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2005 11:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930991#M60834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-27T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to write report output into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930992#M60835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You haven't marked your post as a question. I have done that now, and you'll be able to assign points to the answers that have helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2005 11:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-report-output-into-table/m-p/930992#M60835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-27T11:45:26Z</dc:date>
    </item>
  </channel>
</rss>

