Skip to Content
Former Member
May 22, 2014 at 02:07 PM

Create pdf from xstring in the web ui


Hello everybody,

our requirement is to save a xstring as a pdf-file from the web ui. The xstring comes from an internal table.

The problem is that we dont know how we can sent the xstring to the browser.

We found this links but they do not help.

Downloads in WebUI-Anwendungen

Download data from web ui to Excel and PPT - CRM - SCN Wiki

We tried this code but it gives an error. When we change the type to csv, it will save a csv-file containing the code of the BSP. Something must be wrong with the response, we think.


name = 'Content-Disposition'"#EC NOTEXT

value = 'attachment; filename=myfile.pdf').


name = 'Content-Type'"#EC NOTEXT

value = 'application/pdfl' ).

DATA lv_content_bin TYPE xstring value 'any xstring'



data = lv_content_bin " Binärdaten


Does anybody know, how we can fix this?

Greetings Christian