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

Application server file

Former Member
0 Likes
617

Hi All,

A PDF file is in application server. And I want to attach the file along with the email. How to download the file from application server to mail.

Thanx

J Kumar.

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
575

Hi,

1. Use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send PDF file via email. (See F1 help on this FM, it also gives an example)

2. In this FM, there is one internal table for attachment.

3. Use OPEN DATASET statement for reading the application server file

into internal table and pass this internal table to this FM.

Please check this blog perhaps it may help.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d...

Regards,

Ferry Lianto

4 REPLIES 4
Read only

ferry_lianto
Active Contributor
0 Likes
575

Hi,

You can use transaction CG3Y to download from application server to your PC and attach it to your mail.

Regards,

Ferry Lianto

Read only

0 Likes
575

Hi Fery,

Thanks for reply.

I would like to download the PDF file in the email by print program.

So no need to downolad in the presentation server.

thanx

J Kumar.

Read only

0 Likes
575
Read only

ferry_lianto
Active Contributor
0 Likes
576

Hi,

1. Use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send PDF file via email. (See F1 help on this FM, it also gives an example)

2. In this FM, there is one internal table for attachment.

3. Use OPEN DATASET statement for reading the application server file

into internal table and pass this internal table to this FM.

Please check this blog perhaps it may help.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d...

Regards,

Ferry Lianto