cancel
Showing results for 
Search instead for 
Did you mean: 

Agent determination position/ rule

Former Member
0 Kudos

HI Gurus,

I am new in workflow. For our project we have created a org structure. Which has O-S-US.

There are only two positions Agent and Lead Agent.

If I want to send an workitem to lead-agent I can send it to the position. But as our business will be maintaining the org structure they want an option that in case if any user is not assigned to the Lead-agent it should inform the workflow initiator.

Do I have to use a rule, or how I do that Please help. Any other better way to do it?

I promise I will reward every helpful answer.

With thanks

Rabbi

Accepted Solutions (1)

Accepted Solutions (1)

former_member190818
Active Contributor
0 Kudos

Hi Khan,

you can maintain an ztable for the Lead position. And in Rule, get the position id of the lead and check with the table HRP1001. In this table, you can see the position is assigned to any user or not. So if there is any user, then u can assign as initiator and send a mail.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thnx for your reply arghadip and JMB. U guys been a great help.

Former Member
0 Kudos

I think you have to evaluate the agents by using a method. In side the method you need to check whether any agent is maintained in the Org. Unit if not you have to put WF_INITIATOR as the agent.

The method will return the agent ID(SAP User Id) concatenated with US in front.

Thanks

Arghadip