cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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

0 Likes
View Entire Topic
Former Member
0 Likes

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.

Former Member
0 Likes

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.

Former Member
0 Likes

One last thing I remember. It seems you have an old version of Webdynpro ABAP.

Do you have a javascript error in the left lower corner of your browser?

If so, check note 1096114.