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

Convert Internal table to HTML format

Former Member
0 Likes
1,092

Hai friends,

I have a requirement ( To convet internal table data to HTML format and send to distributor through mail ).

Previously i used WWW_ITAB_TO_HTML function module but it is not working perfectly in 4.6c version.

Please help me.

Thanks,

Nagaraju.

2 REPLIES 2
Read only

Former Member
0 Likes
460

Hi Naga,

Ram Manohar Tiwari has written a nice weblog about this, maybe you can try to do it that way: /people/rammanohar.tiwari/blog/2006/01/29/abap-utility-print-screen-to-html

Have a nice day!

Read only

Former Member
0 Likes
460

hey dude i have tryed this code...using www_itab_to_html it is working .

&----


*& Report ZTESTINGHTML *

*& *

&----


*& *

*& *

&----


REPORT ZTESTINGHTML .

data: begin of itab occurs 0,

matnr type mara-matnr,

mtart type mara-mtart,

matkl type mara-matkl,

groes type mara-groes,

end of itab.

data: ifields type table of w3fields with header line.

data: ihtml type table of w3html with header line.

select * into corresponding fields of table itab

from mara up to 100 rows.

call function 'WWW_ITAB_TO_HTML'

EXPORTING

*TABLE_ATTRIBUTES = 'BORDER=1'

*TABLE_HEADER =

ALL_FIELDS = 'X'

tables

html = ihtml

fields = ifields

*

*ROW_HEADER =

itable = itab

.

check sy-subrc = 0.

call function 'GUI_DOWNLOAD'

exporting

filename = 'C:\Documents and Settings\Trainee\Desktop\test.html'

tables

data_tab = ihtml.