‎2012 May 17 11:27 AM
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.
‎2012 May 17 12:11 PM
Hi Santhosh,
you can refer the Demo examples
SAPHTML_DEMO1
SAPHTML_EVENTS_DEMO
BR,
Vijay
‎2012 May 17 1:55 PM
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