‎2008 Feb 27 1:15 PM
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.
‎2008 Feb 27 3:39 PM
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!
‎2008 Feb 27 3:52 PM
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.