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

Not recieving mail through FM 'SO_DOCUMENT_SEND_API1'

Former Member
0 Likes
566

Hi All,

I am not recieving any mail through the FM 'SO_DOCUMENT_SEND_API1'

  • Fill the Mailing List.

LOOP AT IT_EMAIL INTO WA_EMAIL.

WA_RECLIST-RECEIVER = WA_EMAIL-EMAIL.

WA_RECLIST-REC_TYPE = 'U'.

APPEND WA_RECLIST TO RECLIST.

ENDLOOP.

  • Send e-mail to the Global Stock management group.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

DOCUMENT_DATA = DOC_CHNG

  • PUT_IN_OUTBOX = 'X'

  • SENDER_ADDRESS = sy-uname

  • SENDER_ADDRESS_TYPE = 'B'

  • COMMIT_WORK = 'X'

  • IMPORTING

  • SENT_TO_ALL = 'X'

  • NEW_OBJECT_ID =

  • SENDER_ID =

TABLES

PACKING_LIST = OBJPACK

  • OBJECT_HEADER =

  • CONTENTS_BIN =

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

.

Please provoide helpful pointers.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
533

Hi Vivek,

After Call Function,

IF sy-subrc EQ 0.

COMMIT WORK AND WAIT.

ENDIF.

I am sure it will work.

Please assign points.

Hi All,

I am not recieving any mail through the FM 'SO_DOCUMENT_SEND_API1'

  • Fill the Mailing List.

LOOP AT IT_EMAIL INTO WA_EMAIL.

WA_RECLIST-RECEIVER = WA_EMAIL-EMAIL.

WA_RECLIST-REC_TYPE = 'U'.

APPEND WA_RECLIST TO RECLIST.

ENDLOOP.

  • Send e-mail to the Global Stock management group.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

DOCUMENT_DATA = DOC_CHNG

  • PUT_IN_OUTBOX = 'X'

  • SENDER_ADDRESS = sy-uname

  • SENDER_ADDRESS_TYPE = 'B'

  • COMMIT_WORK = 'X'

  • IMPORTING

  • SENT_TO_ALL = 'X'

  • NEW_OBJECT_ID =

  • SENDER_ID =

TABLES

PACKING_LIST = OBJPACK

  • OBJECT_HEADER =

  • CONTENTS_BIN =

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

.

Please provoide helpful pointers.

3 REPLIES 3
Read only

Former Member
0 Likes
533

I created a seperate program for this so that I could force the email process to kick off.

Try using this code


SUBMIT rsconn01 "SAPconnect Start Send Process
    WITH mode EQ '*'
    WITH output EQ ''
    TO SAP-SPOOL
    DESTINATION 'LOCAL'
    IMMEDIATELY ' '
    KEEP IN SPOOL 'X'
    WITHOUT SPOOL DYNPRO
    AND RETURN.

Read only

Former Member
0 Likes
534

Hi Vivek,

After Call Function,

IF sy-subrc EQ 0.

COMMIT WORK AND WAIT.

ENDIF.

I am sure it will work.

Please assign points.

Read only

Former Member
0 Likes
533

Hi Vivek,

Uncomment Commit Work and Make its value as 'X'.

also check in SBWP -


> OUTBOX (whether your Mail is generated or Not).

Regards,

Sunil.