09-29-2011 10:25 AM
Hi Experts,
I have a requirement where I need to convert internal table data into PDF format and send it as an E-Mail with PDF attachment.
How do I achieve this .
I dont have any smart form or SCript...
In Fact I don't want to use SPOOL....
Is there any way to convert Internal Table to PDF.....
Please Guide....
Edited by: Thomas Zloch on Sep 29, 2011 1:50 PM
09-29-2011 10:55 AM
Hi,
try below stuff,
http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES
some more info like this at ,
http://wiki.sdn.sap.com/wiki/display/ABAP/SendingMails-HomePage
Thanks,
Chandra
Edited by: Chandrashekhar Mahajan on Sep 29, 2011 3:25 PM
09-29-2011 11:18 AM
Hi,
The function module SO_NEW_DOCUMENT_ATT_SEND_API1 can be used to send mail.
Here in TABLES, for packing_list: pass doc_type as 'PDF' and it may happen. (I have used the same for excel attachment with XLS as doc_type and it worked). Go through function module documentation and you will get some idea.
Regards
Srinivas B
09-29-2011 11:22 AM
Hi Anurodh ,
yeh we convert the itab into pdf by using spool request.
Thanks,
Anish
09-29-2011 12:08 PM
Guies Guies Guies.....
I am telling once again...
I cant use Spool request.... Because... I am not creating it....
Please help me if any FM to convert Itab to PDF.....
My requirement is to show some different output and send some different mail with attachmnet in PDF...
Don't want to run report in Background....
09-29-2011 12:23 PM
09-29-2011 12:35 PM
Hi Anurodh,
See below steps to get a table in a report to PDF
1) Generate the classical Report output .
2) Create a Spool Request .
3) Search the Spool Request .
4) Submit the Spool Request for Pdf Creation .
5) Download the Pdf Output in Presentation server or Application Server .
Regards,
Prashanti
09-29-2011 12:53 PM
PDF is a form of output, now you want to create this without creating an output, does not make sense to me. You should maybe rethink your approach and work with a temporary spool output to get your PDF, as often described here. Or explain more about the background of your issue.
Thomas