Skip to Content
0
Former Member
Jun 11, 2009 at 05:41 AM

Mail to Recipients

63 Views

Hi,

Im unable to send the mail to multiple mailid.

In the selection i have given sel_mail as select options.Do i need to declare or initilize this select option

with slectionoption parameters/attributes?

FM - SO_DOCUMENT_SEND_API1

The code is- Im looping at the recivers list even though i could able to send mail.

LOOP at sel_mail.

it_receivers-receiver = sel_mail-low.

it_receivers-rec_type = 'C'.

it_receivers-com_type = 'INT'.

it_receivers-notif_del = 'X'.

it_receivers-notif_ndel = 'X'.

APPEND it_receivers.

ENDLOOP.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = w_doc_data

put_in_outbox = 'X'

commit_work = 'X'

  • IMPORTING

  • SENT_TO_ALL = 'X'

  • NEW_OBJECT_ID =

TABLES

packing_list = it_packing_list

  • OBJECT_HEADER =

contents_bin = it_attachment

contents_txt = it_message

  • CONTENTS_HEX =

  • OBJECT_PARA =

  • OBJECT_PARB =

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