Application Development and Automation 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: 
Read only

Adding to text to PDF

Former Member
0 Likes
517

Hi all,

I have a report that generates an ALV output which is sent to email recipients as a pdf attachement. I have to converted the spool to pdf. But i have to add a message to the readers in the beginning of the pdf document. can anyone tell me how to do that. any help will be appreciated.

regards

Hi all,

I have a report that generates an ALV output which is sent to email recipients as a pdf attachement. I have to converted the spool to pdf. But i have to add a message to the readers in the beginning of the pdf document. can anyone tell me how to do that. any help will be appreciated.

regards

2 REPLIES 2
Read only

Former Member
0 Likes
453

add the message in the top-of-page of the ALV

check this link how to use top of page

[top-of-page in alv|http://wiki.sdn.sap.com/wiki/display/Snippets/DisplayHeadinginALVReport]

Read only

Former Member
0 Likes
453

Hi,

If you are scheduling the report as a background job for converting the spool to pdf and sending the email, you can add the message in the report output itself before converting the spool to pdf which willl hold the message too.


if sy-batch = 'X'.
call function 'REUSE_ALV_COMMENTARY_WRITE'   " Use this fm with REUSE_ALV_GRID_DISPLAY' to write the message in the alv top of page event
endif.

Regards,

Vikranth