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: 

Need to sent alv output as html or as pdf attachment in mail

Former Member
0 Kudos

+Hello

I want to send an ALV output as attachement in html or as pdf format. how to do that? line size is greater than 600(nearly 40 fields).

+please help me in this query.

Regards

Guruvayurappan

Moderator Message: Please search before posting your question. Thread locked.

Edited by: Suhas Saha on Dec 29, 2011 4:57 PM

3 REPLIES 3

Former Member
0 Kudos

Hi,

For sending the ALV output as PDF attachment, you can create a spool (proper page size in print parameters) and convert the spool to PDF using the FM CONVERT_ABAPSPOOLJOB_2_PDF and then send the same as attachment in mail.

For send the data as HTML attachment, try the below FMs

WWW_ITAB_TO_HTML_HEADERS & WWW_ITAB_TO_HTML_LAYOUT to create the HTML layout

WWW_ITAB_TO_HTML to create the HTML for the actual data.

Hope this helps you.

Regards,

Sachinkumar Mehta

madhu_vadlamani
Active Contributor
0 Kudos

Hi ,

You can try with standard program RSTXPDFT4.There are some wikis are available in this.Please check this [Alv to Pdf|http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES] form gaurav.

Regards,

Madhu.

sjeevan
Active Contributor
0 Kudos

After executing the report, in most GUI's

List >> Send to >> Mail recipient, in the "Reciepient field" enter the email address and hit enter it will default to "internet address".

This will send email directly from SAP.

if it's not working you need to check SCOT settings, you can search SDN forums to fix if you have any issue.