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: 

Convert spool to PDF and send Email in background

Former Member
0 Kudos

Hi Friends,

I would like to execute one of my programs in background.

Once I get the spool number of that program, I would like to convert into PDF format and send it as attachement to external mail address.Pl give your suggestions.

Regards

Elini.P

1 ACCEPTED SOLUTION

former_member214131
Active Contributor
0 Kudos

Hello,

You can convert the spool to PDF by PRG: RSTXPDFT4 or by FM: CONVERT_ABAPSPOOLJOB_2_PDF

Then you can send the PDF by Attachment ny external mail by FM: SO_NEW_DOCUMENT_ATT_SEND_API1.

I hope this helps you.

Best Regards, Murugesh AS

2 REPLIES 2

former_member214131
Active Contributor
0 Kudos

Hello,

You can convert the spool to PDF by PRG: RSTXPDFT4 or by FM: CONVERT_ABAPSPOOLJOB_2_PDF

Then you can send the PDF by Attachment ny external mail by FM: SO_NEW_DOCUMENT_ATT_SEND_API1.

I hope this helps you.

Best Regards, Murugesh AS

0 Kudos

Have also a look at the thread https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://

See also https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://

There is also this excellent weblog by Thomas Jung.

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface