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

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

former_member15804
Participant
0 Likes
1,121

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
Read only

RobertVit
Active Contributor
887

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

Kind regards
Robert
2 REPLIES 2
Read only

RobertVit
Active Contributor
888

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

Kind regards
Robert
Read only

0 Likes
887

Thanks for your suggestion . It solved my problem