on 12-07-2009 6:37 AM
How can we send multiple attachments through E-mail using BCS
Edited by: ganesh on Dec 7, 2009 8:03 AM
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried searching on SCN first? There are several posts and at least one (excellent) article (Thomas Jung) about this on SCN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.