Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Code eo send e-mail to multiple addresses

Hi,

I need to send an e-mail to multiple addresses.

Can the Function module SO_NEW_DOCUMENT_SEND_API1

be used to send email to MULTIPLE e-mail addresses ?

Tags:
replied

Hi,

Yes you can..You can add any no. of email ids to the table parameter 'RECEIVERS' of the function module. You can create a distribution list and then add the ids to that dist. list.. use so23 to create the dist. list..

eg..

  • Receiver details

  • The distribution list has the email ids.

wa_reclist-receiver = p_dist.

  • Receiver type is 'internet mail'.

wa_reclist-rec_type = 'C'.

  • Express mail activated

wa_reclist-express = 'X'.

APPEND wa_reclist TO it_reclist.

CLEAR wa_reclist.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = wa_docdata

  • PUT_IN_OUTBOX = ' '

  • IMPORTING

  • SENT_TO_ALL =

  • NEW_OBJECT_ID =

TABLES

packing_list = it_objpack

  • OBJECT_HEADER =

  • CONTENTS_BIN =

contents_txt = it_objtxt

  • CONTENTS_HEX =

  • OBJECT_PARA =

  • OBJECT_PARB =

receivers = it_reclist

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question