Skip to Content
author's profile photo Former Member
Former Member

CL_GUI_HTML_VIEWER in own window GUI


How to force CL_GUI_HTML_VIEWER to open links always in own window GUI.

Including links javascripts

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 11, 2006 at 06:56 AM

    <i>always in own window GUI.</i>

    you mean within the same control? if yes you should avoid adding target attribute in the links.



    Add a comment
    10|10000 characters needed characters exceeded

    • not really intercept. but what you could do is make your ABAP program to act as HTTP client (using cl_http_client class) and read the contents of the page and search for these links, modfy them and show the modified contet (which is your own html) - but this will cause other problems if there are relative links in that page (i am sure it will certainly have), and there are lot of other issues involved with that.

      So the only option out to just live with this.



  • Posted on Jan 31, 2008 at 09:59 AM

    Please check SAP Note 856741.

    After creating the HTML Viewer control, call the method ENABLE_SIMPLEBROWSING as follows:



    benable = 1.

    Now the links will open in the same SAP GUI session.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.