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

creating new email attachment as internal table changes

Former Member
0 Likes
619

Hi Experts,

I have requirement, where in i have to send a mail with multiple attachments. I am using class cl_bcs and method  add_attachment for this.

I am able to attach only one attachment and send it as mail.

I am not able to attach more than one attachments. can somebody suggest on the same please.

Note: Before posting here i am searched many posts but didnt get desired output, as everywhere they have given different internal table, but for me i am using same internal table.

Thanks and Regards,

Chethan

Hi Experts,

I have requirement, where in i have to send a mail with multiple attachments. I am using class cl_bcs and method  add_attachment for this.

I am able to attach only one attachment and send it as mail.

I am not able to attach more than one attachments. can somebody suggest on the same please.

Note: Before posting here i am searched many posts but didnt get desired output, as everywhere they have given different internal table, but for me i am using same internal table.

Thanks and Regards,

Chethan

2 REPLIES 2
Read only

oliver_wurm
Active Participant
0 Likes
595

Hi Chethan,

with each call of ADD_ATTACHMENT you will add one attachment to the email message. So if you have multiple attachments you need multiple calls of that method. You might want to refer to demo program BCS_TEST10 where most of the capabilities of class CL_DOCUMENT_BCS are demonstrated.

Regards

Oliver

Read only

SimoneMilesi
Active Contributor
0 Likes
595

Could you share the snippet of code you are using to create the different attachments?