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: 

convert alv to pdf and mail

Former Member
0 Kudos

hi friends,

i want convert the alv report to pdf and mail the same pdf.

have used function REUSE_ALV_LIST_DISPLAY to display alv report.

i am using CONVERT_ABAPSPOOLJOB_2_PDF to convert the alv report to pdf.

now i need to mail the pdf implicitly to the email address.

i have used some function to mail the pdf but it is asking for the path which has to be hard coded.

the path cannot be hard coded.

cant use F4_GETFILENAME or gui_upload to attach the file or to get the path because the pdf has to be sent directly to some email address.

thanks.

regards,

akshay ruia.

3 REPLIES 3

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

What is the FM you're using to send the PDF as email?

Generally the widely used FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' won't ask you to upload a PDF file!

BR,

Suhas

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Please refer the link below.............

Sample Program To Convert Smartform To PDF Document & Mail It To The Concerned As An Attachment.

http://www.abapmadeeasy.com/2011/02/sap-abap-sample-program-to-convert.html

Regards,

Uttam Agrawal

http://www.abapmadeeasy.com

Edited by: uttamagrawal on Feb 22, 2011 9:19 AM