cancel
Showing results for 
Search instead for 
Did you mean: 

sending multiple attachments through Email

Former Member
0 Kudos

How can we send multiple attachments through E-mail using BCS

Edited by: ganesh on Dec 7, 2009 8:03 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

use this piece of code to create an attachment and then add the attachment to the document , using this u cud attach many documents to the attachment..

  • create attachment

clear text.

APPEND 'This is the attachment text!' TO text. "#EC NOTEXT

attachment = cl_document_bcs=>create_document(

i_type = 'RAW'

i_text = text

i_length = '11'

i_subject = 'attachment...' ).

  • add (existing) attachment to main document

CALL METHOD DOCUMENT->ADD_DOCUMENT_AS_ATTACHMENT

EXPORTING

IM_DOCUMENT = attachment

.

regards,

Sm1tje
Active Contributor
0 Kudos

Have you tried searching on SCN first? There are several posts and at least one (excellent) article (Thomas Jung) about this on SCN.