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

Issue while using the FM WWW_LIST_TO_HTML

Former Member
0 Likes
878

Hi Experts,

I have an issue here while converting the List output to HTML using the FM "WWW_LIST_TO_HTML" .

I have 154 pages list output which has to be converted to HTML format.When I run my program in Background The function module works fine converting all 154 page to HTML but when I run my program in Foreground(Directly), I find that only the last page is considered for the HTML conversion.

Infact the FM "LIST_TO_MEMORY" used in the FM "WWW_LIST_TO_HTML" seems to be saving only the Last page of the list output to Memory.

Can some one help on this issue, I want all the 154 pages even when running my program in forground(Directly).

Points will be rewarded for helpful answers..................

Thanks In Advance,

Sukumar

null

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
712

Hi Experts,

I have an issue here while converting the List output to HTML using the FM "WWW_LIST_TO_HTML" .

I have 154 pages list output which has to be converted to HTML format.When I run my program in Background The function module works fine converting all 154 page to HTML but when I run my program in Foreground(Directly), I find that only the last page is considered for the HTML conversion.

Infact the FM "LIST_TO_MEMORY" used in the FM "WWW_LIST_TO_HTML" seems to be saving only the Last page of the list output to Memory.

Can some one help on this issue, I want all the 154 pages even when running my program in forground(Directly).

Points will be rewarded for helpful answers..................

Thanks In Advance,

Sukumar

null

4 REPLIES 4
Read only

Former Member
0 Likes
712

try FM

LIST_DOWNLOAD_HTML

Read only

0 Likes
712

Hi Chandrasekhar,

forgot to mention that the HTML pages are being sent as an Email attachment by the same program. I guess LIST_DOWNLOAD_HTML is for Download.

Regards,

Sukumar

Read only

Former Member
0 Likes
713
Read only

athavanraja
Active Contributor
0 Likes
712

check this

REPORT  y_test_export.
DATA: html TYPE TABLE OF w3html. 
DATA: html_wa TYPE w3html.
DATA: listobject TYPE TABLE OF abaplist. 
DATA: report_name TYPE syrepid.
 
report_name = 'DEMO_LIST_FORMAT_COLOR_1' .
 
SUBMIT (report_name) EXPORTING LIST TO MEMORY AND RETURN .
 
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = listobject.
 
CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
  EXPORTING
    report_name = report_name
  TABLES
    html        = html
    listobject  = listobject.