Application Development and Automation 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: 
Read only

ITAB to PDF without spool request

0 Likes
1,186

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

7 REPLIES 7
Read only

ChandrashekharMahajan
Active Contributor
0 Likes
1,000

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

Read only

Former Member
0 Likes
1,000

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

Read only

Former Member
0 Likes
1,000

Hi Anurodh ,

yeh we convert the itab into pdf by using spool request.

Thanks,

Anish

Read only

0 Likes
1,000

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....

Read only

0 Likes
1,000

Try using thisfunction module CONVERT_OTF

Regards

Srinivas B

Read only

0 Likes
1,000

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

Read only

0 Likes
1,000

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