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

Facing Problem with Send Mail

Former Member
0 Likes
386

I am using the Below Function Module

        SO_NEW_DOCUMENT_ATT_SEND_API1

for sending Mail , It often sends the Mail to given  Mail id. But sometimes Mail will not reach the recipient.  Already Basis Team has Done SCOTT Setting. Please Guide for this Issue. Thanks in advance.

Regards

Sarvesh

2 REPLIES 2
Read only

Former Member
0 Likes
344

Try external commit work..

like,

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

    EXPORTING

      document_data                    =

*     PUT_IN_OUTBOX                    = ' '

*     COMMIT_WORK                      = ' '

*   IMPORTING

*     SENT_TO_ALL                      =

*     NEW_OBJECT_ID                    =

    tables

      packing_list                     =

*     OBJECT_HEADER                    =

*     CONTENTS_BIN                     =

*     CONTENTS_TXT                     =

*     CONTENTS_HEX                     =

*     OBJECT_PARA                      =

*     OBJECT_PARB                      =

      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

            .

  IF sy-subrc EQ 0.

COMMIT WORK.

ENDIF.

Read only

Former Member
0 Likes
344

HI Nivas,

SAP server will take some time to send a mail...PLease go to Transaction SOST and try sending ur mail from there.

Regards,

Azhar