cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple recieving users for a different documents

Former Member
0 Kudos

Dear Experts,

I am new to Work Flow, and I have the following requirement, please help me out..

I have a parking document in FI, after creation of the document by a user ABC, it should trigger a mail to XYZ, and if a document is created by another user 123 it should trigger a mail to 456.

I have created a simple work flow to trigger a mail into SAP inbox with method Change. But it is triggering the mail to XYZ and 456 at a time created by the both the users.

How can I seperate the mail flow to the different user if the document is created different other users?

Also is it possible to trigger a popup box of the mail to the user? If yes how can we do it?

Please help me out in this regard.

Thanks and Regards,

Praveen.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

closing thread

Former Member
0 Kudos

Hi,

A bit confused when you say user ABC creates the document and you used CHANGE method. Is it Create or Change method for which you want the mail to be sent ?

If I understand your requirement, you want when user ABC creates, mail sent to XYZ and if it's 123, mail should be sent to 456.

If yes, you can do the following:

Whenever the wflow is initiated or triggered by some user, it 'll be available in the system cont. element WFINITIATOR. So, immediately, after triggering the wflow, you put a condition step where you specify, if WFINITIATOR = 'ABC', then set the agent for SendMail step as 'XYZ' and if WFINITIATOR = '123', then set the agent for SendMail step as '456' .

This should work.

Also, for informing user XYZ or 456, in the SendMail step task, do the following binding from WF container to task container:

X--->&EXPRESS&.

Then, users XYZ and 456 will get immediate pop-up's about their mails into their SAP Inboxes.

Hope this helps

venu

Former Member
0 Kudos

Hello,

First, try to get the userid of the person who creates the document by creating a new attribute in the BO that you are using,if not create a new method to get the userid. once it is available in the workflow container, use the step type condition or multiple condition, depending on how many values you want to compare...

I think it is better to use the multiple condition step type as you can compare many value. then use the sendmail step to send it to the specified person. You can use separate sendmail steps in each condition or fill a container element with the email address that you want to send for a particular userid. once it is populated, use the same element in the senders address of the sendmail step that you use at the end.

Hope this will help.

Regards

Samson