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: 

How to send an pdf email from application server path and from spool as attachments in one mail

former_member15804
Participant
0 Kudos
447

Hi

I have a requirement of sendinf two file as attachment in one mail.

1. From al11 directory - the file is stored in pdf format

2. From spool request generating the file from this request.

How can i send both the file in one email

Please help me with your suggestions.

Thanks and Regards

1 ACCEPTED SOLUTION

RAF
Active Contributor
213

Hi,

use cl_bcs=>create_persistent to create an send request

Create cl_document_bcs=>create_document

and add here your 2 documents

lo_document->add_attachment

lo_send_request->set_document( lo_document ).

2 REPLIES 2

RAF
Active Contributor
214

Hi,

use cl_bcs=>create_persistent to create an send request

Create cl_document_bcs=>create_document

and add here your 2 documents

lo_document->add_attachment

lo_send_request->set_document( lo_document ).

0 Kudos
213

Thanks for your suggestion . It solved my problem