Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to send mails to multiple recipents using SO_DOCUMENT_SEND_API

Former Member
0 Kudos

Hi ,

I am using the FM "SO_DOCUMENT_SEND_API". I need to send mails to multiple recipens using the same. (keeping two of the persons in CC.)

Thanks

3 REPLIES 3

Jelena
Active Contributor
0 Kudos

I don't think you can do CC from SAP but you can send the same email to more than one recipient. If you're always sending the same email to the same group, consider creating a distribution list on the mail server.

former_member189059
Active Contributor
0 Kudos

use the function module 'SO_NEW_DOCUMENT_SEND_API1'

in that one of the parameters is a 'receivers' table

declare it as follows

DATA:  reclist    TYPE STANDARD TABLE OF somlreci1  WITH HEADER LINE.

you can populate this table with all your receivers

when populating the reclist, there is one field called 'COPY'

set it to 'X' to send as cc

kishorepallapothula
Participant
0 Kudos

Hi Suman,

Try this hope your problem ends here.

call function 'SO_NEW_DOCUMENT_SEND_API1'

exporting

document_data = idocument

document_type = 'RAW'

put_in_outbox = 'X'

  • IMPORTING

  • SENT_TO_ALL =

  • NEW_OBJECT_ID =

tables

  • object_header = ioutput

object_content = ioutput

  • CONTENTS_HEX =

  • OBJECT_PARA =

  • OBJECT_PARB =

receivers = int_irecievers

  • 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 = 99

But it is not at all posible to send CC.

Rewards if useful.

Regards,

Kishore.