<?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: Error in converting Spool to HTML format. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-converting-spool-to-html-format/m-p/6893419#M1480351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First convert the spool to internal table by using FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSPO_RETURN_ABAP_SPOOLJOB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next from internal table to HTML....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link: /people/rammanohar.tiwari/blog/2006/01/29/abap-utility-print-screen-to-html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the follwoing:&lt;/P&gt;&lt;P&gt;1. define HTML internal table with ref to type W3HTML&lt;/P&gt;&lt;P&gt;2. download it as BIN type and give total lenght of the strings as a parameter in the down load.&lt;/P&gt;&lt;P&gt;See the code extract below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table html lines entries.&lt;/P&gt;&lt;P&gt;read table html into w_html index entries.&lt;/P&gt;&lt;P&gt;size = ( entries - 1 ) * 255 + strlen( w_html ).&lt;/P&gt;&lt;P&gt;concatenate p_path file into file.&lt;/P&gt;&lt;P&gt;call function 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;bin_filesize = size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename = file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = html&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 May 2010 07:52:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-13T07:52:04Z</dc:date>
    <item>
      <title>Error in converting Spool to HTML format.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-converting-spool-to-html-format/m-p/6893418#M1480350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading SPool and converting that into HTML formt. Please do find below code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Submit report to convert the spool to HTML format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN&lt;/P&gt;&lt;P&gt;  WITH rqident = p_spoolno.&lt;/P&gt;&lt;P&gt;&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 = gt_listobj&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Convert the spool to HTML format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   REPORT_NAME         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     template_name       = 'WEBREPORTING_REPORT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      html                = p_html_tab&lt;/P&gt;&lt;P&gt;      listobject          = gt_listobj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i send p_html_tab as attachement to email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I opened the attachement, i can view only half page in htm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get the full page in htm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 06:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-converting-spool-to-html-format/m-p/6893418#M1480350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T06:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in converting Spool to HTML format.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-converting-spool-to-html-format/m-p/6893419#M1480351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First convert the spool to internal table by using FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSPO_RETURN_ABAP_SPOOLJOB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next from internal table to HTML....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link: /people/rammanohar.tiwari/blog/2006/01/29/abap-utility-print-screen-to-html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the follwoing:&lt;/P&gt;&lt;P&gt;1. define HTML internal table with ref to type W3HTML&lt;/P&gt;&lt;P&gt;2. download it as BIN type and give total lenght of the strings as a parameter in the down load.&lt;/P&gt;&lt;P&gt;See the code extract below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table html lines entries.&lt;/P&gt;&lt;P&gt;read table html into w_html index entries.&lt;/P&gt;&lt;P&gt;size = ( entries - 1 ) * 255 + strlen( w_html ).&lt;/P&gt;&lt;P&gt;concatenate p_path file into file.&lt;/P&gt;&lt;P&gt;call function 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;bin_filesize = size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename = file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = html&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 07:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-converting-spool-to-html-format/m-p/6893419#M1480351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T07:52:04Z</dc:date>
    </item>
  </channel>
</rss>

