Showing results for 
Search instead for 
Did you mean: 

Access HTML Output of BSP Pages

Former Member
0 Kudos

Hi BSP Experts

We want to pass the (already rendered) HTML ouput from a BSP Page to a file because we want to use an external programm to make pdf files. (html to pdf creator)

What is the best way to achieve this? I was playing around with the classes CL_BSP_PAGE_CONTEXT and CL_BSP_WRITER_HTTP but I did not have success.

Any Ideas?

Thanks a lot



Edited by: Timo Höllwarth on Nov 9, 2009 6:45 PM

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

are you trying to get the html of the same page?

if yes

in onmanipulation event you can capture the final HTML using

DATA: httpbody TYPE string .

CALL METHOD response->if_http_entity~get_cdata
    data = httpbody.

or from some other page?

if yes

either using AJAX call or using cl_http_client class



Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks it worked!