Application Development and Automation 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: 
Read only

Read receipt of emails sent from sap using function module SO_DOCUMENT_SEND_API1

Former Member
0 Likes
2,910

Hi i am sending email from SAP using following function:

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

   EXPORTING

    DOCUMENT_DATA                    = docdata

    PUT_IN_OUTBOX                    = 'X'

    SENDER_ADDRESS                   = ld_sender_address                                " for ex: [email protected]

    SENDER_ADDRESS_TYPE              = ld_sender_address_type               

    COMMIT_WORK                      = 'X'

  IMPORTING

    SENT_TO_ALL                      = w_sent_all

*   NEW_OBJECT_ID                    =

*   SENDER_ID                        =

   TABLES

     PACKING_LIST                     = objpack

    OBJECT_HEADER                    = objhead

    CONTENTS_BIN                     = objbin

    CONTENTS_TXT                     = objtxt

*   CONTENTS_HEX                     =

*   OBJECT_PARA                      =

*   OBJECT_PARB                      =

     RECEIVERS                        = reclist

* 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

           .

Before sending following code is written:

        reclist-rec_type = 'U'.

         reclist-COM_TYPE = 'INT'.

         reclist-notif_read = 'X'.

         reclist-NOTIF_DEL = 'X'.

         reclist-notif_ndel = 'X'.

         APPEND reclist.

My requirement is to get return receipt of email to the sender specified in code when the receiver reads the email.

I have done all configuration in SCOT. But still i am not getting read receipt.

Please give me solution for this problem.

Hi i am sending email from SAP using following function:

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

   EXPORTING

    DOCUMENT_DATA                    = docdata

    PUT_IN_OUTBOX                    = 'X'

    SENDER_ADDRESS                   = ld_sender_address                                " for ex: [email protected]

    SENDER_ADDRESS_TYPE              = ld_sender_address_type               

    COMMIT_WORK                      = 'X'

  IMPORTING

    SENT_TO_ALL                      = w_sent_all

*   NEW_OBJECT_ID                    =

*   SENDER_ID                        =

   TABLES

     PACKING_LIST                     = objpack

    OBJECT_HEADER                    = objhead

    CONTENTS_BIN                     = objbin

    CONTENTS_TXT                     = objtxt

*   CONTENTS_HEX                     =

*   OBJECT_PARA                      =

*   OBJECT_PARB                      =

     RECEIVERS                        = reclist

* 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

           .

Before sending following code is written:

        reclist-rec_type = 'U'.

         reclist-COM_TYPE = 'INT'.

         reclist-notif_read = 'X'.

         reclist-NOTIF_DEL = 'X'.

         reclist-notif_ndel = 'X'.

         APPEND reclist.

My requirement is to get return receipt of email to the sender specified in code when the receiver reads the email.

I have done all configuration in SCOT. But still i am not getting read receipt.

Please give me solution for this problem.

6 REPLIES 6
Read only

Former Member
0 Likes
1,831

hi, check documentation of FM. Did you set receiver email address as show below?

RECLIST-RECEIVER = '[email protected]'.

RECLIST-REC_TYPE = 'U'.

APPEND RECLIST.

Read only

0 Likes
1,831

Hi Vipin,

I have set receiver email address. But its not working too.

One thing i want to know as per your doucument, whether i have to set X.400 using tcode SCOT for sending emails from SAP??

Read only

0 Likes
1,831

i think u do not need make changes for SCOT for read receipt.

Which is mail software receiver mail id is using? Is it Outlook?

Read only

0 Likes
1,831

Thanx for reply.

Receiver mail id may be of any type for ex: it may be Lotus Notes id or any external mail id like [email protected], etc.

Read only

0 Likes
1,831

is your receiver mail software supports read receipt? I know Outlook support. Not sure  gmail but i think lotus also supports. it is mandatory that receiver mail software should support read receipt.

Read only

0 Likes
1,831

Yes Lotus supports read receipt.