Skip to Content
author's profile photo Former Member
Former Member

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

+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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2011 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 28, 2011 at 02: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 28, 2011 at 03: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.