Skip to Content
avatar image
Former Member

how to send mails to multiple recipents using SO_DOCUMENT_SEND_API

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 22, 2007 at 09:01 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 23, 2007 at 02:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 23, 2007 at 03:23 AM

    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.

Add comment
10|10000 characters needed characters exceeded