<?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/1789606#M339801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swaminathan,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;For html view control you have to follow the following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; describing the above example.&lt;/P&gt;&lt;P&gt;steps: &lt;/P&gt;&lt;P&gt;1. data declaration &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: CONTENT  type standard table of char255,
      url(256) type c.
DATA: HTML_CONTROL TYPE ref to cl_gui_html_viewer,
      my_container type ref to cl_gui_custom_container,
      ui_flag type i.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. create a screen and on the screen create a control area and name it .&lt;/P&gt;&lt;P&gt;   eg. here : screen 100 and control area name 'HTML'&lt;/P&gt;&lt;P&gt;3. on the PBO of the screen, &lt;/P&gt;&lt;P&gt;   a. create container object &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CREATE OBJECT MY_CONTAINER
        EXPORTING
            CONTAINER_NAME = 'HTML'
        EXCEPTIONS
            OTHERS = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  b. set the ui flag for web browser (check docu)&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   ui_flag = CL_GUI_HTML_VIEWER=&amp;gt;UIFLAG_NO3DBORDER +
              CL_GUI_HTML_VIEWER=&amp;gt;UIFLAG_NOIEMENU.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  c. create html control object &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;create object html_control
         EXPORTING
              PARENT    = my_container
              SAPHTMLP  = 'X'
              UIFLAG    = ui_flag
              lifetime  = CL_GUI_HTML_VIEWER=&amp;gt;LIFETIME_DYNPRO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  d. set the url &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;url = 'http://help.sap.com'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e. load data on to the html control&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD html_control-&amp;gt;load_data
  EXPORTING
    URL                  = url
*    TYPE                 = 'text'
*    SUBTYPE              = 'html'
*    SIZE                 = 0
    IMPORTING
      ASSIGNED_URL         = url
  CHANGING
    data_table           = content
*  EXCEPTIONS
*    DP_INVALID_PARAMETER = 1
*    DP_ERROR_GENERAL     = 2
*    CNTL_ERROR           = 3
*    others               = 4
        .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;e. Finally show the URL on the control screen&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD html_control-&amp;gt;show_url
  EXPORTING
    url                    = url
*    FRAME                  =
*    IN_PLACE               = ' X'
*  EXCEPTIONS
*    CNTL_ERROR             = 1
*    CNHT_ERROR_NOT_ALLOWED = 2
*    CNHT_ERROR_PARAMETER   = 3
*    DP_ERROR_GENERAL       = 4
*    others                 = 5
        .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 06:42:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T06:42:59Z</dc:date>
    <item>
      <title>Html Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789601#M339796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;          i ve the following req :&lt;/P&gt;&lt;P&gt;    i ve some pushbuttons on the container.thru 1 button i need to navigate&lt;/P&gt;&lt;P&gt;to an intranet web page.i tried with cl_gui_html_viewer, but i couldnt get&lt;/P&gt;&lt;P&gt; the right o/p.can anybody help me on how to use the method SHOW_URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Swaminathan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 11:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789601#M339796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T11:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Html Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789602#M339797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out transaction DWDM - it has got sample programs which is easy to follow.&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;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 11:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789602#M339797</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-11-30T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Html Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789603#M339798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : URL TYPE STRING.&lt;/P&gt;&lt;P&gt;URL = 'http://sdn.sap.com/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;EXECUTE&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          DOCUMENT = URL&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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anish Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 11:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789603#M339798</guid>
      <dc:creator>former_member150733</dc:creator>
      <dc:date>2006-11-30T11:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Html Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789604#M339799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swaminathan,&lt;/P&gt;&lt;P&gt;   Check the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a screen 100 having a control area 'HTML' copy paste the following code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZHTML_CONTROL                 .
data: CONTENT  type standard table of char255,
      url(256) type c.
DATA: HTML_CONTROL TYPE ref to cl_gui_html_viewer,
      my_container type ref to cl_gui_custom_container,
      ui_flag type i.


call screen 100.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module STATUS_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.


    CREATE OBJECT MY_CONTAINER
        EXPORTING
            CONTAINER_NAME = 'HTML'
        EXCEPTIONS
            OTHERS = 1.

    ui_flag = CL_GUI_HTML_VIEWER=&amp;gt;UIFLAG_NO3DBORDER +
              CL_GUI_HTML_VIEWER=&amp;gt;UIFLAG_NOIEMENU.

    create object html_control
         EXPORTING
              PARENT    = my_container
              SAPHTMLP  = 'X'
              UIFLAG    = ui_flag
              lifetime  = CL_GUI_HTML_VIEWER=&amp;gt;LIFETIME_DYNPRO.

url = 'http://help.sap.com'.

CALL METHOD html_control-&amp;gt;load_data
  EXPORTING
    URL                  = url
*    TYPE                 = 'text'
*    SUBTYPE              = 'html'
*    SIZE                 = 0
    IMPORTING
      ASSIGNED_URL         = url
  CHANGING
    data_table           = content
*  EXCEPTIONS
*    DP_INVALID_PARAMETER = 1
*    DP_ERROR_GENERAL     = 2
*    CNTL_ERROR           = 3
*    others               = 4
        .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

CALL METHOD html_control-&amp;gt;show_url
  EXPORTING
    url                    = url
*    FRAME                  =
*    IN_PLACE               = ' X'
*  EXCEPTIONS
*    CNTL_ERROR             = 1
*    CNHT_ERROR_NOT_ALLOWED = 2
*    CNHT_ERROR_PARAMETER   = 3
*    DP_ERROR_GENERAL       = 4
*    others                 = 5
        .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


endmodule.                 " STATUS_0100  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 07:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789604#M339799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T07:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Html Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789605#M339800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello kinshuk,&lt;/P&gt;&lt;P&gt;          thank u very much. your help is invaluable.  &lt;/P&gt;&lt;P&gt;  i will be very thankful if u describe briefly about the&lt;/P&gt;&lt;P&gt; code.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Swaminathan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 06:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789605#M339800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T06:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Html Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789606#M339801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swaminathan,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;For html view control you have to follow the following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; describing the above example.&lt;/P&gt;&lt;P&gt;steps: &lt;/P&gt;&lt;P&gt;1. data declaration &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: CONTENT  type standard table of char255,
      url(256) type c.
DATA: HTML_CONTROL TYPE ref to cl_gui_html_viewer,
      my_container type ref to cl_gui_custom_container,
      ui_flag type i.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. create a screen and on the screen create a control area and name it .&lt;/P&gt;&lt;P&gt;   eg. here : screen 100 and control area name 'HTML'&lt;/P&gt;&lt;P&gt;3. on the PBO of the screen, &lt;/P&gt;&lt;P&gt;   a. create container object &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CREATE OBJECT MY_CONTAINER
        EXPORTING
            CONTAINER_NAME = 'HTML'
        EXCEPTIONS
            OTHERS = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  b. set the ui flag for web browser (check docu)&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   ui_flag = CL_GUI_HTML_VIEWER=&amp;gt;UIFLAG_NO3DBORDER +
              CL_GUI_HTML_VIEWER=&amp;gt;UIFLAG_NOIEMENU.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  c. create html control object &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;create object html_control
         EXPORTING
              PARENT    = my_container
              SAPHTMLP  = 'X'
              UIFLAG    = ui_flag
              lifetime  = CL_GUI_HTML_VIEWER=&amp;gt;LIFETIME_DYNPRO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  d. set the url &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;url = 'http://help.sap.com'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e. load data on to the html control&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD html_control-&amp;gt;load_data
  EXPORTING
    URL                  = url
*    TYPE                 = 'text'
*    SUBTYPE              = 'html'
*    SIZE                 = 0
    IMPORTING
      ASSIGNED_URL         = url
  CHANGING
    data_table           = content
*  EXCEPTIONS
*    DP_INVALID_PARAMETER = 1
*    DP_ERROR_GENERAL     = 2
*    CNTL_ERROR           = 3
*    others               = 4
        .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;e. Finally show the URL on the control screen&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD html_control-&amp;gt;show_url
  EXPORTING
    url                    = url
*    FRAME                  =
*    IN_PLACE               = ' X'
*  EXCEPTIONS
*    CNTL_ERROR             = 1
*    CNHT_ERROR_NOT_ALLOWED = 2
*    CNHT_ERROR_PARAMETER   = 3
*    DP_ERROR_GENERAL       = 4
*    others                 = 5
        .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 06:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789606#M339801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T06:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Html Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789607#M339802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kinshuk,&lt;/P&gt;&lt;P&gt;       is it possible to show the URL in explorer instead of SAP screen?&lt;/P&gt;&lt;P&gt;i mean, my requirement is when i press the pushbutton it shud open the &lt;/P&gt;&lt;P&gt;concerned url in IE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Swami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 04:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789607#M339802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T04:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Html Viewer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789608#M339803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for that use FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_BROWSER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;Reward helpful answers with points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 04:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789608#M339803</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-12-11T04:45: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/1789609#M339804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi raja,&lt;/P&gt;&lt;P&gt;         thank u very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Swami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 05:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-viewer/m-p/1789609#M339804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T05:18:46Z</dc:date>
    </item>
  </channel>
</rss>

