cancel
Showing results for 
Search instead for 
Did you mean: 

Custom workflow and custom Agents executing the task

Former Member
0 Kudos

Hi,

I have a problem with my custom WOrkflow.

I would like to assign the agents for my custom activity.

When I set the Task properties and Agent Assignment to General Task, it works fine - but everybody

gets the entry in SAP Inbox.

I have a Z-table with usernames, where allowed users are stored to execute the task.

I have created a Rule in Agents, with function module to determine the agents.

But I see I have also to change the General task flag, and when I remove it, I have

only the possibility to use the Work center/Role/Job/Org Unit etc.

How can I make my task being assigned only to my users from z-table?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

bpawanchand
Active Contributor
0 Kudos

Hi,

The right approach would be creating a rule , in which you have to select the rule type as EXECUTE FUNCTION MODULE TO DETERMINE AGents.

Develop a function module and assign this rule to the task , which you are sending for the approval.

Regards

Pavan

Former Member
0 Kudos

it is working, I set option to terminate task if not found and set the task not General.

Thanks, solved.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In the Task, if you are click the Agent Assignment Button, there is one icon to add the user. You can use that button or you can use the key F5 to add any user's on it.

But My doubt is, you can pass the workflow container with the user's you maintained in the Ztable. You can create the method to populate the user from ztable to your workflow container.

Thanks,

Viji.