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

Check Email Bounce Back

Former Member
0 Likes
2,287

Hi Experts,

My client needs to check if an email bounces back to the SAP inbox. The email is sent using the function module 'SO_DOCUMENT_SEND_API1'. Is there any way to do this?

Thanks and regards,

Vishal.

Hi Experts,

My client needs to check if an email bounces back to the SAP inbox. The email is sent using the function module 'SO_DOCUMENT_SEND_API1'. Is there any way to do this?

Thanks and regards,

Vishal.

6 REPLIES 6
Read only

Former Member
0 Likes
1,534

Do you need to check if the email bounced back after it was sent successfully by the function SO_DOCUMENT_SEND_API1 or whether the function was not able to send the email?

For checking the latter you can evaluate SY-SUBRC after calling the function. I am not sure how to handle the former.

-Kiran

Read only

0 Likes
1,534

I need to check after the Function module send the email successfully. I'm already doing the sy-subrc check. Is there any way to monitor the SAP inbox for emails that bounce back. Like monitor for a specified time after sending an email.

Read only

0 Likes
1,534

Check the below transactions. Might help.

SCON SAPconnect - Administration

SCOT SAPconnect - Administration

SOST SAPconnect Send Requests

SOSV SAPconnect Send Requests

-Kiran

*Please reward useful answers

Read only

Former Member
0 Likes
1,534

There is a field RETRN_CODE in the TABLES parameter RECEIVERS. YOucan chekc the value of this RETRN_CODE.

If it is 0, then the mail has been delivered. Otherwise it is not.

regards,

Ravi

Read only

0 Likes
1,534

Hi Ravi,

The return code returns 0 even if an invalid email ID is given. I have tested this. The exception of this function module and the retun code are populated at the time of creating the email. They do not wait for the delivery.

The transactions mentioned by Kiran are there to monitor the sent emails. But i cannot see a functionality to check bounced emails. And i have to do this programatically.

Read only

0 Likes
1,534

Normally the mails will be sent out by SCOT program. Hence you don't have a control in your program whether the mail will bounce or not?

If any failure happens the mail status will be updated in user's outbox folder.

You need to check whether the sent mail status is success or not, if failure then take an action.

For this you need write a program to read the user's mails status.

Regds

Manohar