Skip to Content
0
Former Member
Aug 09, 2006 at 09:47 AM

Sending mail with 2 attachments

1705 Views

Hi All,

I have a requirement where I have to send a mail with 2 attachments. Both attachments should be excel sheets.

Iam using the function module

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = gd_doc_data

put_in_outbox = 'X'

commit_work = 'X'

IMPORTING

sent_to_all = gd_sent_all

TABLES

packing_list = it_packing_list

contents_txt = it_message

contents_bin = it_attachment

receivers = it_receivers

EXCEPTIONS

too_many_receivers = 1

document_not_sent = 2

document_type_not_exist = 3

operation_no_authorization = 4

parameter_error = 5

x_error = 6

enqueue_error = 7

OTHERS = 8.

I don't know where to pass another attachment.

How can it be done?

Kindly help me.

Regards,

Krithika