Is there an ABAP function module to remove the "reserved" status of a work item? We have an application that displays...
workflow items (outside the inbox). I've been given the task to find out how to let User A execute work items that are reserved by User B (for when User B is absent).
I've tried function modules (SAP_WAPI_FORWARD_WORKITEM, SWW_WI_AGENTS_CHANGE and SAP_WAPI_PUT_BACK_WORKITEM), but still get the message, "Work item is reserved for a different agent."
You definitely should not allow User B to execute a workflow if User A has it reserved. If someone is absent, they should set up a substitute (or an administrator can do this for them) so that User B can have full access to User A's inbox.
From the SAP Business Workplace (inbox), go to Settings-->Workflow Settings-->Maintain Substitute.
For more information on maintaining substitutes, please consult SAP Help Portal.
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
A SearchSAP.com reader wants to know how to hide the forward button in an SAP Business Workplace toolbar. Continue Reading
Find out how to automatically replace an SAP workflow item when a user hits "cancel" so that the workflow item re-appears to all possible agents. Continue Reading