12-22-2011 11:18 AM
+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
12-27-2011 10:51 PM
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
12-28-2011 2:48 AM
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.
12-28-2011 3:27 AM
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.