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

Transform internal table in HTML format

Former Member
0 Likes
636

I use functions WWW_ITAB_TO_HTML_HEADERS, WWW_ITAB_TO_HTML_LAYOUT, WWW_ITAB_TO_HTML to transform an internal table to HTML format. It works but i am not able to fix the size of the table columns in the display of the HTML. Help required.

Regards,

Daniel Cantin

1 REPLY 1
Read only

GrahamRobbo
SAP Mentor
SAP Mentor
0 Likes
475

Hi Dan,

Can't you just write the html in a loop.

data wa like line of itab.
data html type string.

* Top part of HTML here
concatenate `<html><body>'
'<table>' into html.

loop at itab into wa.
concatenate html `<tr><td>` wa-field1 `</td><td>` wa-field2 .... '</td></tr>` into html.
endloop.

* Bottom part of HTML here
concatenate html `</table></body></html>` into html.

Cheers

Graham