<?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: cl_gui_html_viewer method load_data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021282#M1347690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this coding in my report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'DOC_OBJECT_GET_HTML'
    EXPORTING
      docuid     = 'RE'
      docuobject = sy-repid
    TABLES
      html_page  = l_t_html_page.

  CREATE OBJECT html_viewer
    EXPORTING
      parent = container.

  CALL METHOD html_viewer-&amp;gt;load_data
    IMPORTING
      assigned_url = l_f_url
    CHANGING
      data_table   = l_t_html_page.

  CALL METHOD html_viewer-&amp;gt;show_url
    EXPORTING
      url = l_f_url.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where can I insert the background colour?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2009 13:28:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-20T13:28:05Z</dc:date>
    <item>
      <title>cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021280#M1347688</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 use use the mentioned method to load the documentation of the program into a container. Is it possible to change the background of this? I get only a white background, what I want is a different colour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 10:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021280#M1347688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T10:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021281#M1347689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    APPEND '&amp;lt;HTML&amp;gt;&amp;lt; body style="background-color:#c3d9ff;" &amp;gt;' TO raw_html.
    APPEND '&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;' TO raw_html.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this &lt;A href="http://html-color-codes.info/" target="test_blank"&gt;http://html-color-codes.info/&lt;/A&gt; for color information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 13:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021281#M1347689</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-08-20T13:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021282#M1347690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this coding in my report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'DOC_OBJECT_GET_HTML'
    EXPORTING
      docuid     = 'RE'
      docuobject = sy-repid
    TABLES
      html_page  = l_t_html_page.

  CREATE OBJECT html_viewer
    EXPORTING
      parent = container.

  CALL METHOD html_viewer-&amp;gt;load_data
    IMPORTING
      assigned_url = l_f_url
    CHANGING
      data_table   = l_t_html_page.

  CALL METHOD html_viewer-&amp;gt;show_url
    EXPORTING
      url = l_f_url.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where can I insert the background colour?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 13:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021282#M1347690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T13:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021283#M1347691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'DOC_OBJECT_GET_HTML'
    EXPORTING
      docuid     = 'RE'
      docuobject = sy-repid
    TABLES
      html_page  = l_t_html_page.
 
"&amp;lt;- here
"just look for &amp;lt;BODY&amp;gt; tag inside table L_T_HTML_PAGE and modify it accordingly (as suggested by Naimesh)

  CREATE OBJECT html_viewer
    EXPORTING
      parent = container.
 
  CALL METHOD html_viewer-&amp;gt;load_data
    IMPORTING
      assigned_url = l_f_url
    CHANGING
      data_table   = l_t_html_page.
 
  CALL METHOD html_viewer-&amp;gt;show_url
    EXPORTING
      url = l_f_url.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 13:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021283#M1347691</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-20T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021284#M1347692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I look to the body tag. Shall I have to modify the first line in the hmtl table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 11:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021284#M1347692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T11:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021285#M1347693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at the table, and check each line if &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CS  '&amp;lt;BODY&amp;gt;'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;then use that line and statements &lt;STRONG&gt;FIND&lt;/STRONG&gt; or &lt;STRONG&gt;SEARCH&lt;/STRONG&gt; to get its position in a line. Next use offset specification to modify that &amp;lt;BODY ...&amp;gt; and finally modify entire line in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 12:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021285#M1347693</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-09-01T12:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021286#M1347694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my html:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;BODY BGCOLOR="WHITE" TEXT="BLACK" LINK="BLUE" VLINK="#3366CC" ALINK="RED"&amp;gt;
&amp;lt;TABLE BORDER="0" CELLPADDING="2" WIDTH="100%" BGCOLOR="#3366CC"&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;FONT COLOR="#FFFFFF" SIZE="5"&amp;gt;

&amp;lt;/FONT&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;/TABLE&amp;gt;
&amp;lt;H2&amp;gt;Dokumentation&amp;lt;/H2&amp;gt;
&amp;lt;H2&amp;gt;&amp;lt;/H2&amp;gt;
&amp;lt;P&amp;gt;Einleitung:&amp;lt;/P&amp;gt;
&amp;lt;/FONT&amp;gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have to make:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at html into wa_html.
if wa_html-TDLINE cs 'BODY'.
.....
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but how can I say that he only change the value of BGCOLOR?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 12:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021286#M1347694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T12:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021287#M1347695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SEARCH it_html FOR 'BODY'.
IF sy-subrc = 0.
  DELETE it_html INDEX sy-tabix. "sy-tabix automatically set by SEARCH
  it_html = '&amp;lt; BODY style="background-color:#c3d9ff" TEXT="BLACK" LINK="BLUE" VLINK="#3366CC" ALINK="RED" &amp;gt;'.
  INSERT it_html INDEX sy-tabix. "new style applies here
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 12:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021287#M1347695</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-09-01T12:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: cl_gui_html_viewer method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021288#M1347696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have this one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    LOOP AT l_t_html_page INTO l_r_html_page.
      SEARCH l_r_html_page FOR 'BODY'.
      IF sy-subrc = 0.
        l_r_html_page-tdline = '&amp;lt;BODY BGCOLOR="WHITE" TEXT="GREEN" LINK="BLUE" VLINK="#3366CC" ALINK="RED"&amp;gt;'.
        MODIFY l_t_html_page FROM l_r_html_page.
        CLEAR l_r_html_page.
      ENDIF.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and it works, thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 13:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6021288#M1347696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T13:11:03Z</dc:date>
    </item>
  </channel>
</rss>

