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: 

OO ALV in background - Logo display/print

Former Member
0 Kudos

Hi all,

I have this program that is generating an ALV grid in foreground where I don't have a logo. A new requirement came in to create a statement form where the output is a subset of this ALV. I created a wrapper program that submits the first pgm in background mode, reads the spool and transforms it into a PDF.

The problem here is that I need a Logo in the header. I'm not sure if that would work in background. In foreground I would split the custom container and add the logo as a picture (ADD_PICTURE) on the top container using print_top_of_page. In background, I'm using a docking container and I don't think we can use splitter.

Any ideas on how can I add a logo to the top of page, in background? I've read many threads here but didn't find a solution.

Thanks in advance.

1 ACCEPTED SOLUTION

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

I do not know if this is possible but there is another solution.

instead of using the spool use the internal table that goes into the ALV and call a smart form  .

There you can have a logo and it is a more flexible solution for printing.

If you go this way you need to define table type in the SE11 or use external class (SE24) to store your types.(personally I prefer SE24) .

A sample of using class type in smart form:(see the attached files in this posts)

Regards.

2 REPLIES 2

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

I do not know if this is possible but there is another solution.

instead of using the spool use the internal table that goes into the ALV and call a smart form  .

There you can have a logo and it is a more flexible solution for printing.

If you go this way you need to define table type in the SE11 or use external class (SE24) to store your types.(personally I prefer SE24) .

A sample of using class type in smart form:(see the attached files in this posts)

Regards.

0 Kudos

Hi Eltan,

thanks for taking the time in responding. I read some material and the logo doesn't show up in background. I had thought about the smartforms, but was trying to avoid having to create another object....

Thanks again