By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Now, all four in Group B have rights to execute the WI. Based on WI text, one among Group B reserved it (At this point, he is the only one selected agent). After a while, he REPLACED the workitem. According to my scenario, the workitem should be given only to Group B users -- NOT group A. But the workitem appears in Group A users as well Group B.
Hope I have explained my situation clearly. Please help.
I think this is an excellent question as I have hit this issue myself. Ideally what you are asking for is the ability to 'detect' that a user has replaced a work item (ie. a user exit/BADI) and then be able to programmatically changed the assigned agents or possible agent from Group A & B to just Group B. As great a solution as that is, I am not aware of any such exits/BADIs and hence this solution can not be implemented.
I do however, have another suggestion for you. Why not re-model your workflow so that when group A receives the intial work item they receive a Decision task with the details of the work attached. That way the Group A user can review the details and decide where the item should go to. Then they execute the decision task and select the outcome FORWARD TASK TO GROUP B. When they click this option, you can create and route the work item to group B and they are defined as the only possible agents of this task. If one of them replaces the task, then only group B will see the work item. Hope my suggestion helps.
Dig Deeper on SAP workflow development
Related Q&A from Alon Raskin
An SAP user has created a user decision step in an SAP workflow item and wants to know how an end user can send an attachment to other users.continue reading
Find out how to configure clients so that the same version of an SAP workflow item is used when the workflow is triggered in separate clients.continue reading
A SearchSAP.com reader wants to know how to hide the forward button in an SAP Business Workplace toolbar.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.