<?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: Convert Internal Table To HTML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-html/m-p/3470046#M834111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;P&gt;&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thie will generate HTML local file with formatting as in the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2008 04:22:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-28T04:22:40Z</dc:date>
    <item>
      <title>Convert Internal Table To HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-html/m-p/3470044#M834109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you now how you can convert an Internal Table To HTML ? Are there any means with which we can do it in SAP 4.6C. I used FM WWW_ITAB_TO_HTML but we are having some alignment issues when the page is rendered,Please let me know if you have a code or some thing where i can work on. I have provided snapshot of my code.Kindly help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ifields     type table of w3fields   with header line,&lt;/P&gt;&lt;P&gt;      ihtml       type table of w3html     with header line,&lt;/P&gt;&lt;P&gt;      headers     type table of w3head     with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM DEFINE_HTML_TABLE_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'WWW_ITAB_TO_HTML'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            HTML       = ihtml&lt;/P&gt;&lt;P&gt;            FIELDS     = ifields&lt;/P&gt;&lt;P&gt;            ROW_HEADER = headers&lt;/P&gt;&lt;P&gt;            ITABLE     = int_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              filename                = p_outht&lt;/P&gt;&lt;P&gt;              filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              data_tab                = ihtml&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;		:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DEFINE_HTML_TABLE_HEADER.&lt;/P&gt;&lt;P&gt;  headers-nr = 1.&lt;/P&gt;&lt;P&gt;  headers-text = 'SAP Plant'.&lt;/P&gt;&lt;P&gt;  append headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  headers-nr = 2.&lt;/P&gt;&lt;P&gt;  headers-text = 'Legacy Plant'.&lt;/P&gt;&lt;P&gt;  append headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  headers-nr = 3.&lt;/P&gt;&lt;P&gt;  headers-text = 'Material Number'.&lt;/P&gt;&lt;P&gt;  append headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  headers-nr = 4.&lt;/P&gt;&lt;P&gt;  headers-text = 'Qty'.&lt;/P&gt;&lt;P&gt;  append headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  headers-nr = 5.&lt;/P&gt;&lt;P&gt;  headers-text = 'Total Qty'.&lt;/P&gt;&lt;P&gt;  append headers.&lt;/P&gt;&lt;P&gt;ENDFORM.&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;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 02:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-html/m-p/3470044#M834109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T02:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Internal Table To HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-html/m-p/3470045#M834110</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;&lt;/P&gt;&lt;P&gt;Check this blog this may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link: [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3090] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 03:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-html/m-p/3470045#M834110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T03:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Internal Table To HTML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-html/m-p/3470046#M834111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;P&gt;&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thie will generate HTML local file with formatting as in the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 04:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-html/m-p/3470046#M834111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T04:22:40Z</dc:date>
    </item>
  </channel>
</rss>

