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,

I tried to get the PDF in a new window in my application.

I have an own view for my PDF. This view is in an own window and this window will be started by an own web-dynpro-application.

It's all in one web dynpro project.

I have one URL to start my project with the data selection. When I select a data row from an ALV I push a button. Now a new window opens with a new URL (because of my second web-dynpro-application).

The windows and views use the same context and when I debug my coding, the needed PDF tables are filled. But my new browser window is still empty.

When I open my PDF in a sperate project, then I get my PDF-print.

What is wrong?