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.
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?