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

SO_DOCUMENT_SEND_API1: send duplicated emails through Workflow

Former Member
0 Likes
915

Hi,

We have a workflow configured for the change of PO.

When a PO has error during the changes, system will send email users from distribution list triggered by workflow.

The email code should send one email with same content only BUT we have received duplicated email.

Please suggest me any reason of this!

Thanks,

Khanh

5 REPLIES 5
Read only

former_member188827
Active Contributor
0 Likes
758

check receiver list which is passed to FM.

sort the internal table holding receivers and then delete adjacent duplicates from the list and check again.

Read only

Former Member
0 Likes
758

Hi!

You might check out the transaction SOST for the sent e-mails from SAP.

An another possible problem, you have to check the receivers of the SO_DOCUMENT_SEND_API1 FM. You might check, is your SO_DOCUMENT_SEND_API1 fm called 2 times somehow or not?

Regards

Tamá

Read only

0 Likes
758

Hi ,

THanks for your quick promt.

Since this is using workflow so I cannot do debug.

1. I use a global variable to count how many times this function is called and the answer is 1.

2. There is only one user in the distribution list. I only hard-coded the receiver to one person only - same result.

Please advice me!

Thanks,

Khanh

Read only

0 Likes
758

Hi Khanh,

Please check the workflow log and also T-Code SOST.

Regards,

Ramu N.

Read only

0 Likes
758

Hi all,

We check with the workflow guy, he configured the event Change two times by mistake instead of Change and Cancel.

Thank you all for your time!

Nice week!

Thanks,

Khanh