<?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: download data to html format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-to-html-format/m-p/2248344#M485685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use this function module   LIST_DOWNLOAD_HTML,&lt;/P&gt;&lt;P&gt;It will be help full to extract the data to html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try check  it out ..&lt;/P&gt;&lt;P&gt;REward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 May 2007 04:46:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-12T04:46:06Z</dc:date>
    <item>
      <title>download data to html format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-to-html-format/m-p/2248342#M485683</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; i want to download data from database tables to the html format what is function module for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 02:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-to-html-format/m-p/2248342#M485683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T02:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: download data to html format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-to-html-format/m-p/2248343#M485684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI USE fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIST_DOWNLOAD_HTML&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            RQIDENT              = SPOOL_NUMBER&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            REAL_TYPE            = G_DOC_TYPE&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            BUFFER               = COMPRESSED_LIST&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'TABLE_DECOMPRESS'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            IN                   = COMPRESSED_LIST&lt;/P&gt;&lt;P&gt;            OUT                  = LISTOBJECT&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            HTML       = IT_HTML&lt;/P&gt;&lt;P&gt;            LISTOBJECT = LISTOBJECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you get a HTML include the content of your report in IT_HTML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the function LIST_DOWNLOAD_HTML to download a list in HTML format&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Demonstrate various things that can be done with lists&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The first example shows how to have a list go to memory instead of the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;screen or a spool, and how to write out that list.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The second set of examples shows how to save the screen list in&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;various formats&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;REPORT ZKBTST31.&lt;/P&gt;&lt;P&gt;DATA: MTAB_REPORT_LIST LIKE ABAPLIST OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: MTAB_REPORT_HTML LIKE W3HTML OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF MTAB_REPORT_ASCII OCCURS 0,&lt;/P&gt;&lt;P&gt;        LINE(255) TYPE C,&lt;/P&gt;&lt;P&gt;      END OF MTAB_REPORT_ASCII.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*-- Submit a report.  This one is the chart of accounts&lt;/P&gt;&lt;P&gt;  SUBMIT RFSKPL00&lt;/P&gt;&lt;P&gt;    EXPORTING LIST TO MEMORY           " Save list in memory&lt;/P&gt;&lt;P&gt;    AND RETURN.    " Return control to this program&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*-- Get the list from memory&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            LISTOBJECT = MTAB_REPORT_LIST&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            NOT_FOUND  = 1&lt;/P&gt;&lt;P&gt;            OTHERS     = 2.&lt;/P&gt;&lt;P&gt;*-- Write the list out&lt;/P&gt;&lt;P&gt;*-- This is a trivial example.  A better use would be when the&lt;/P&gt;&lt;P&gt;*-- requirement is to have one report print out several different&lt;/P&gt;&lt;P&gt;*-- reports on the same list level.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_LIST'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            LISTOBJECT = MTAB_REPORT_LIST&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            EMPTY_LIST = 1&lt;/P&gt;&lt;P&gt;            OTHERS     = 2.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The examples below this line do not require that the report be       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;submitted to memory when run.  All that they require is that the     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;report has been written to the screen.           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*-- Take the current list that has been written to screen, and format&lt;/P&gt;&lt;P&gt;*-- as an HTML file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WWW_LIST_TO_HTML'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            HTML   = MTAB_REPORT_HTML&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS = 1.&lt;/P&gt;&lt;P&gt;*-- Save the list.  Same as using System-&amp;gt;List-&amp;gt;Save-&amp;gt;Local File or&lt;/P&gt;&lt;P&gt;*-- entering %pc in the OKCODE box.  This function does not need the&lt;/P&gt;&lt;P&gt;*-- include &amp;lt;%_LIST&amp;gt; in a program.&lt;/P&gt;&lt;P&gt;*-- Method can be:&lt;/P&gt;&lt;P&gt;*--   NOCO - No conversion&lt;/P&gt;&lt;P&gt;*--   RTF  - Rich Text Format&lt;/P&gt;&lt;P&gt;*--   DAT  - Tab delimited Format&lt;/P&gt;&lt;P&gt;*-- When no method is given, a selection screen is presented for the&lt;/P&gt;&lt;P&gt;*-- user to choose the method.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LIST_DOWNLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          METHOD     = 'NOCO'&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS     = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rEWADS IF HELPFUL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 03:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-to-html-format/m-p/2248343#M485684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T03:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: download data to html format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-to-html-format/m-p/2248344#M485685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use this function module   LIST_DOWNLOAD_HTML,&lt;/P&gt;&lt;P&gt;It will be help full to extract the data to html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try check  it out ..&lt;/P&gt;&lt;P&gt;REward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 04:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/download-data-to-html-format/m-p/2248344#M485685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T04:46:06Z</dc:date>
    </item>
  </channel>
</rss>

