cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow issue: get error at Send Mail standard task

Former Member
0 Likes
1,192

Hello experts,

I am modifying an existing workflow. It has a Send Mail standard task. I would like to get the result of this task (error or success) and insert it in a Z dictionary table before it is totally completed. I am using a method in Program Exit of Mail Send task after creation and after execution but I am not able to know if the email is sent successfully until the task is completely finished. Therefore, my method is useless.

Here comes the question, is there any way of knowing if the email is sent successfully before finishing the task? I want to save the result of the standad task in a Z dictionary table.

I place my simple workflow just in case. The taks I talk about above is the circled one.

Thanks in advance.

PD: I have already read examples Program Exits In Workflow - ABAP Development - SCN Wiki and

View Entire Topic
Former Member
0 Likes

Hi,

If the users have a valid email address and they are set up correctly then the email should go to their inbox.

You could, as an extra precaution, check if the user has a valid email address and if not, send the email to a global inbox something like approvals@yourcompany.com.

Or you can just set up SCOT so that it records errors when sending out emails and monitor SOST.

In a normal world incorrect emails, or non-existing emails is not something that happens regularly; monitoring and ad-hoc decisions should be enough.

Kind regards, Rob Dielemans

Former Member

Hello,

Thanks for your answer. Finally I was able to get the status of the task before finishing. I used the program exit of the send mail task. I made use of 'status change' event. It is explained in more detail here:

Thank both of you for your help, regards.