11-04-2015 7:07 PM
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.
11-05-2015 2:53 AM
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.
11-05-2015 2:53 AM
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.
11-05-2015 2:16 PM
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