2006 Jul 05 6:14 PM
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.
2006 Jul 05 6:24 PM
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
2006 Jul 05 6:28 PM
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.
2006 Jul 05 6:30 PM
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
2006 Jul 05 6:41 PM
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
2006 Jul 05 7:05 PM
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.
2006 Jul 05 9:39 PM
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