cancel
Showing results for 
Search instead for 
Did you mean: 

Mail trigger restriction in workflow ?

sampat_kumkar
Contributor
0 Kudos


Dear All,

We have created workflow in three level.

Level 1 -  JV posted up to 3000000 ( multiple user)

Level 2 - JV posted from 3 Million to 6 Million (single user)

Level 3 - JV posted above 6 million (single user)

Mails are triggering when FI entry get parked. Its working fine.

There are multiple users in Level 1 e.g User1, User2, User3 etc....

When end user park the document mails are going to all Level 1 users inbox.

I want to restrict the mail trigger option for particular user only. e.g  A & B (end user) park the document mail will trigger for User1 only.

C & D park the document mail will trigger for User2 only.

E & F park the document mail will trigger for User3 only.

How do we map in the system ?

Note: HR module is not implemented.

Regards,

Sampat

Accepted Solutions (0)

Answers (6)

Answers (6)

sampat_kumkar
Contributor
0 Kudos

Dear All,

Thanks for your input.

I will update you very soon.

Regards

Sampat Kumkar

SandySingh
Active Contributor
0 Kudos

Hello

Is this issue resolved?

Regards

sandy

former_member183134
Participant
0 Kudos

Hi sampat,

You can achieve this by Maintaining  the User's and approver's in a Ztable

In your case

ZTABLE.

User who is parking (WF-Initiator)    Approvers for those users   

A(sap logon name)                         User1(sap logon name)

B     "                                            User1(sap logon name)

     

C     "                                            User2(sap logon name)     

D     "                                            User2(sap logon name)

    

E     "                                            User3(sap logon name)    

F     "                                            User3(sap logon name)

You will be getting the User name (WF_initiator) who is parking the document in your code.. based on that select the approver from Ztable passing the user name (WF-Initiator).

You will get the approver name to who you need to send the mail notification.

I hope this will help your requirement.

Cheers!!!

Anand

Former Member
0 Kudos

Hi Sampat,

Actually you can specify the user either giving e-mail address to the 'send mail' workitem.

- by specifying the email directly, or using the container element placeholder which can be populated in previous work item(activity).

or

using the expression for the sap inbox.

Former Member
0 Kudos

Hi Sampat,

If you are using custom workflow , then the mail functionality must be enabled/written by you only. You can put a filter before the mail step. Create a internal table with your mapping and then in the backround task , read the desired mapping and send the emails.

Thanks

Rakesh

SandySingh
Active Contributor
0 Kudos

Hello

Create a background step in the workflow and calculate the email recipient Agents. You can either use IF ELSE statement in the method or use a Custom table. You can check the user name of person who has created the park document from &WF_INITIATOR& container element.

Regards

Sandy