<?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: html viewer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185304#M1519090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot believe I forgot &lt;STRONG&gt;&amp;lt;html&amp;gt; .. &amp;lt;/html&amp;gt;&lt;/STRONG&gt; ... shame on me .&lt;/P&gt;&lt;P&gt;Thank you for help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Aug 2010 11:59:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-30T11:59:38Z</dc:date>
    <item>
      <title>html viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185301#M1519087</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;I am trying to understand how this object works. I believe that this is a way to write my own html page and see it in a dynpro.&lt;/P&gt;&lt;P&gt;This is the code I wrote:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" declaration of object
DATA html_viewer TYPE REF TO cl_gui_html_viewer.
" container
DATA g_custom_container TYPE REF TO cl_gui_custom_container.
" url of doc created
DATA l_doc_url(255) TYPE c.
" dynamic HTML creation structs
DATA data_table TYPE STANDARD TABLE OF char255.
DATA wa_table LIKE LINE OF data_table.

" test
wa_table = '&amp;lt;h1&amp;gt;This is a test&amp;lt;/h1&amp;gt;'.
INSERT wa_table INTO TABLE data_table.

" create container
CREATE OBJECT g_custom_container
  EXPORTING
    container_name = 'CONTAINER'.
" create html viewer
CREATE OBJECT html_viewer
  EXPORTING
    parent     = g_custom_container.
" load data on server
CALL METHOD html_viewer-&amp;gt;load_data
  EXPORTING
    type                 = 'text'
    subtype              = 'html'
  IMPORTING
    assigned_url         = l_doc_url
  CHANGING
    data_table           = data_table
  EXCEPTIONS
    dp_invalid_parameter = 1
    dp_error_general     = 2.
" show loaded data in html control
CALL METHOD html_viewer-&amp;gt;show_data
  EXPORTING
    url = l_doc_url.

" call main screen
CALL SCREEN 10.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;All works, but html is not interpreted: the result is that I see in the html control '&amp;lt;h.1&amp;gt;Test&amp;lt;/h.1&amp;gt;'  (Added dot to not see written as header here in the post) and not 'Test' written as header (that would be &amp;lt;h1&amp;gt;Test&amp;lt;/h1&amp;gt;). Am i missing something or do I misunderstood the use of this object?&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gabriele Montori on Aug 30, 2010 12:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 10:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185301#M1519087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T10:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: html viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185302#M1519088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey...you can go through...below program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPHTML_DEMO1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 11:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185302#M1519088</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-08-30T11:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: html viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185303#M1519089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your problem is witjh the HTML. You need to insert the &amp;lt;html&amp;gt; tag. try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
" test
wa_table = '&amp;lt;html&amp;gt;'.
Append wa_table TO data_table.
wa_table = '&amp;lt;h1&amp;gt;This is a test&amp;lt;/h1&amp;gt;'.
append wa_table TO data_table.
wa_table = '&amp;lt;/html&amp;gt;'.
Append wa_table TO data_table.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 11:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185303#M1519089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T11:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: html viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185304#M1519090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot believe I forgot &lt;STRONG&gt;&amp;lt;html&amp;gt; .. &amp;lt;/html&amp;gt;&lt;/STRONG&gt; ... shame on me .&lt;/P&gt;&lt;P&gt;Thank you for help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 11:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/7185304#M1519090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T11:59:38Z</dc:date>
    </item>
  </channel>
</rss>

