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

Report Output In HTML Format

Former Member
0 Likes
517

Hi,

i have my report output of 4 paes. when i tried to save them in HTML format , it saves all pages all together in 1 html. i want to save each page in different html.

like i have 4 pages in report output .. i want 4 html for each different page .

Can anybody help me ..its urgent

Hi,

i have my report output of 4 paes. when i tried to save them in HTML format , it saves all pages all together in 1 html. i want to save each page in different html.

like i have 4 pages in report output .. i want 4 html for each different page .

Can anybody help me ..its urgent

2 REPLIES 2
Read only

vivekkrishnan
Active Participant
0 Likes
450

Hi were you be able to find the solutiion ??

we are facing a similar problem.

Regards,

Vivek K

Read only

Former Member
0 Likes
450

Hi,

You can do in this way ...

CALL FUNCTION 'WWW_ITAB_TO_HTML'

TABLES

HTML = F_HTML

FIELDS = FLDS

ITABLE = ITAB.

IF SY-SUBRC NE 0.

WRITE: / 'Error in generating the html format'.

EXIT.

ENDIF.

CALL FUNCTION 'WS_DOWNLOAD'

EXPORTING

FILENAME = 'c:test.html'

MODE = 'BIN'

TABLES

DATA_TAB = F_HTML

EXCEPTIONS

FILE_OPEN_ERROR = 1

FILE_WRITE_ERROR = 2

OTHERS = 9.

call these 2 Fucntion modules for every page. so each page it wil downlaod a HTML page

Regards

Sudheer