Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to print the top of page part along with the ALV list and generate PDF

Former Member
0 Kudos

HI all,

I have created one ALV by using oops concept .

and also am able to get the top of page where I have One standard logo on the right hand side

and some details on the left side .

Now my requirement is to while printing the list the logo and other top of page details should appear

In the PDF output but currently while am pressing the print preview button only the alv data is coming

am already using the method

handle_top_of_page

FOR EVENT print_top_of_page

OF cl_gui_alv_grid,

may be am missing something ... How to get the top of page along with the logo printed ?

3 REPLIES 3

Former Member
0 Kudos

Hi everybody cant it be done ?

Still I have not received any posts ....

0 Kudos

Surya,

Any info on your post.We also face the same issue.

Regards,

Siva

Former Member
0 Kudos

Hi Surya,

After generating the grid display click on print button,

a spool number is generated. capture the spool number and convert it to pdf using the fm:

CONVERT_ABAPSPOOLJOB_2_PDF and save the file

Hope this will solve your problem.

Regards,

R K.