Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get HTML source from CL_GUI_HTML_VIEWER

Former Member
0 Likes
1,001

Hi experts,

how can I get the HTML-Sourcecode from a URL displayed in the CL_GUI_HTML_VIEWER control within a dynpro?

I found a way to get these information within an eventhandler method of the control by using function module

DP_GET_STREAM_FROM_URL by using the same url (i.e.g. http://sdn.sap.com). But is this really necessary?

Thanks for your help

Markus

1 REPLY 1
Read only

franois_henrotte
Active Contributor
0 Likes
481

the way I do it is always use a CL_DD_DOCUMENT object and display it in HTML viewer

with CL_DD_DOCUMENT you have access to everything

now if you go directly with HTML viewer then the function you already call seems to be the best way to get html data