cancel
Showing results for 
Search instead for 
Did you mean: 

how to generate and display the pdf form as a web dynpro abap view

Former Member
0 Kudos

Hi,

I filled the value in the table and displayed in the view,In that view i have one button"TOPDF".

My requirement is,if i click that button,i want to display the table in the PDF output.

For the above requirement,i created another view with interactive form,In that view i created one "pdf" Node and "soure" as a attribute of Type-xstring.Then i binded the soure attribute withe "pdfdatasoure" of my interactive form view.

Now my doubt is how and where can i pass the table values to pdf output.

can any body cleare my doubt with some sample code.

Thanks in Advance.

Regards,

Ravi.

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_szcs
Active Contributor
0 Kudos

Hello Ravi,

Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.

Best regards,

Thomas