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

Dynamic Document Display Problem

Former Member
0 Likes
465

I'm dealing with HTML in ABAP and i' stuck with a little problem. Perhaps somebody know's the answer and can help me out. Thanks in advance.

My problem is:

I am rendering a html page in abap and display ist using a cl_dd_document.

Works fine.

But now in need to set the right DOCTYPE for the rendered html page.

If i add the DOCTYPE definition, my html page is not displayed, instead i get a display of the html-code??

How can i add the DOCTYPE definition to a self-rendered html page?

If i add the DOCTYPE definition as first element of my html table, the html code won't be interpreted.

If i do not add the DOCTYPE defintion everything works fine.

I need the DOCTYPE definition so that the browser won't get into quirks mode and interpretes the html tag's right.

2 REPLIES 2
Read only

Former Member
0 Likes
404

Hi Santhosh,

you can refer the Demo examples

SAPHTML_DEMO1

SAPHTML_EVENTS_DEMO

BR,

Vijay

Read only

Clemenss
Active Contributor
0 Likes
404

Hi Santosh,

you might consider to use CL_GUI_HTML_VIEWER which will make use of local IE explorer - which is at least better than nothing.

Regards

Clemens