Hello,
I have a problem with generating a PDF file with ABAP WebDynpro. I have an ALV and there I read a line. From this line I want to build a smartform which should be converted into PDF. I think my coding works. I have no syntax errors and when I debug the coding, everything looks good. I also get my popup that I want to have. But then I got an error: "File does not begin with '%PDF-'."
I look for this error here in SDN but I could not find a solution. I have also tried to do what is mentioned in note 1042424.
Can anybody helps me?
Regards, Markus
Request clarification before answering.
Ok Sebastian,
I tried what you have written. I did it in my Test WebDynpro that has only one view and no popup or anything else. In this Webdynpro I did everything like in the PDF "How to display a smartform as PDF document in Web Dynpro for ABAP".
But the result is always the same, nothing on the screen. I have now idea where the mistake can be.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry, I do not know how to help you further on.
But maybe you try it again as you did in your first example. Now you can generate the pdf properly. Maybe you will find another output option.
But one last question, you bind the xstring to pdfSource right? Make sure dataSource is not bound and templateSource is not bound.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.