Hi,
I see a lot of questions in the forum around having problems opening a PDF from a webdynpro. However, I cannot find any with answers to solve my problem. I am getting an error,"There was an error opening this document... file may be corrupt" when trying to open a PDF from a dynpro.
I am putting the data I need in the PDF into a string. I am then taking that string and converting it to an xstring with the FM SCMS_STRING_TO_XSTRING. Then, I call attach_file_to_response, exporting filename = 'CommissionReport.pdf', content = my xstring, and mime_type = 'application/pfd'. Does anybody have an idea of what I may be doing wrong?
Thanks,
Carrie