cancel
Showing results for 
Search instead for 
Did you mean: 

"SEND EMAIL" task error

Former Member
0 Kudos

Hi all,

I got an issue in "SEND EMAIL" task in workflow. The task is using standard BOR "SELFITEM", method "SENDTASKDESCRIPTION" to send the email.

First of all, the "SEND EMAIL" task work fine in Development system. After move the workflow into Quality system, the "SEND EMAIL" never work.

I had checked and done following:

- Email can be send via SBWP, and received in my outlook.

- Manually run the BOR "SELFITEM", method "SENDTASKDESCRIPTION" in SWO1, and email send successfully.

- Checked ST22 and there is no short dump.

- Check SU53 for user WF-BATCH, and didn't see any auth issue.

- Retransport the workflow definition from Development system into Quality system (3 times), but still not working.

- The email address is provided directly to the ADDRESSSTRING from workflow container, no user id is needed in this task. I check the workflow log, the ADDRESSTRING holding correct email address.

The SAP system is ECC 6.0.

The error that I got from the workflow log is "Exception 1001, Message area SO, Number 23 : Document <XXX> could not be sent". I had no clue at the moment how this can be happen.

Do anyone here got experience in this issue before?

Besides that, do anyone know how to debug the "SENDTASKDESCRIPTION" when the workflow trigger it? This is a background task, and the method is a standard SAP program, I can't write a long run loop in the code to hold it for debug.

Regards,

Edison Wang

Accepted Solutions (1)

Accepted Solutions (1)

former_member185167
Active Contributor

Hello,

What happens when you provide a username instead? Be sure to add US to the front of it.

What message type are you using for the email address? Double-check that it's a valid address, no spaces etc.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi Rick,

Based on the design, the email address of the user already provided, and I should not use the user in the task.

Regarding your question "What message type are you using for the email address?", does it means that the "Recipient Type" for the email address? If yes, the type is "U E-Mail Address". I check the container of the task in workflow log also getting the correct type.

Besides that, I test the SEND EMAIL task individually at SWUD, and it is not working as well:(

Any idea?

Thanks.

Regards,

Edison Wang

former_member185167
Active Contributor
0 Kudos

Hello,

I asked what happens IF you use the username. It helps to narrow down the problem.

The Recipient Type sounds correct.

"Manually run the BOR "SELFITEM", method "SENDTASKDESCRIPTION" in SWO1, and email send successfully."

This makes me conclude that the method works properly and that the problem is in your workflow.

"Besides that, I test the SEND EMAIL task individually at SWUD, and it is not working as well"

Please give more details on this.

Could you also try making a test workflow which has just one step - a SendMail step calling a SAP-standard task.

Pass it the same email address.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi Rick,

"Besides that, I test the SEND EMAIL task individually at SWUD, and it is not working as well"

This means I went in to tcode SWUD, and test the task individually by execute the "Test Environment". Then, in the next screen, I execute "Start Task" to perform the task testing.

Thank you.

Regards,

Edison

former_member185167
Active Contributor
0 Kudos

What about my other questions?

"It's not working" - how is it not working?

Former Member
0 Kudos

Hi Richard,

The problem now is resolved.

The root cause of this issue is because of the Standard Domain for the workflow internet mail address is not maintain in Q system. After I maintained the standard domain, the workflow is sending email fine.

We can maintain the Standard Domain in tcode SWU3, "Maintain Additional Settings and Services" -> "Maintain Standard Domain for Internet Mail". Automatic customizing is not possible for this setting, so we need to maintain manually ourself.

Lesson learned: SWU3 is the most important step to check in every system (D,Q and P). Never expect the configuration of this 3 systems are same.

Please feel free to comment.

Thank you.

Regards,

Edison Wang

former_member185167
Active Contributor
0 Kudos

Thank you for the follow-up. A new cause for that error message!

Answers (1)

Answers (1)

0 Kudos

Hsin

I get the same error as soon as I select the SEND MAIL step. How do I resolve it. It creates some bindings on its own. How do I see the workflow log? WF_INITIATOR is being binded with ADDRESSSTRING. Please let me know, Thanks.