2015 Jun 18 8:20 AM
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
2015 Jun 18 9:33 AM
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
2015 Jun 18 9:33 AM
Could you share the snippet of code you are using to create the different attachments?