Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FM : SO_OBJECT_SEND

Hi .

I am editing std sap code wherein sap is using FM: SO_OBJECT_SEND .

I am trying to send mail to external email address however it is not going. sy-subrc = 0 !

However if I try for internal sap address it is working.

Below is code for external address

MOVE 'U' TO X_RECEIVERS-RECESC. " Receiver type "A

MOVE 'X' TO X_RECEIVERS-SNDCP. " Send as a copy

MOVE 'X' TO X_RECEIVERS-SNDEX. " EXPRESS DOCUMENT

X_RECEIVERS-RECEXTNAM = 'abc@anywhere.com'.

X_RECEIVERS-SNDART = 'INT'.

APPEND X_RECEIVERS.

Below is code for internal address

MOVE RECEIVER TO X_RECEIVERS-RECNAM. " user id

MOVE 'B' TO X_RECEIVERS-RECESC. " Receiver type "B

MOVE 'X' TO X_RECEIVERS-SNDCP. " Send as a copy

MOVE 'X' TO X_RECEIVERS-SNDEX. " EXPRESS DOCUMENT

APPEND X_RECEIVERS.

please suggest

Tags:
Former Member
Former Member replied

Hi Osk,

You have to put an explicit COMMIT WORK statement in the Program immediately after the function call to SO_OBJECT_SEND. This statement is required from version 47 & upward.

Regards,

Suresh Datti

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question