0
Former Member
Apr 09, 2009 at 03:42 PM

# BSP output pdf problem

30 Views

hi guru ,

we have a single bsp which produce pdf upon a personnel number, in the onrequest event ,

first we call a function to get pdf xstring, then use :

CALL METHOD response->set_content_type

EXPORTING

content_type = 'application/pdf'.

CALL METHOD response->set_data

EXPORTING

data = data_source.

to returen the pdf

the bsp works if we start it from se80 directly, the pdf file displayed in ie window, but when we try to run it from url or from another page, it will first bring up the pdf reader,then an error appears, the pdf file has been corrupted.

i guess it maybe related with response handling, could you pls give us some hints?

br.

jun