I have problems stopping the ESS Absence Request workflow after the user deletes it before the manager approves.
- The requestor creates an Absence request.
... the workflow (a copy of WS12300111) is instantiated
... the manager of the requestor gets a work item
Now the requestor decides to delete the absence request...
- Requestor deletes the absence request.
The user now gets the information message:
... the ESS application now tries to complete (FM: <b>SAP_WAPI_WORKITEM_COMPLETE</b>) the Work item of the manager.
No administrator found for the task
(By debugging, I found out that this was message 5W 141.)
The <b>result</b> is that the request document is ended with <b>status WITHDRAWN</b>, which is correct, however the workflow has still a READY work item for the manager which he cannot start anymore.
The error message is a little bit weird, because it actually ment that the requestor is not an agent for the work item of the manager.
I could solve this problem by giving the requestors more authorization. When I added SAP_ALL to the requestor, the error does not occur.
The transition table determines:
Status transition: DELETE
Workflow control: CONTINUE Continue Workflow
...that's why it start FM: SAP_WAPI_WORKITEM_COMPLETE
I hope you have an answer to my problem.
Alwin van de Put
(I expected that ESS would make use of events for terminating work items in stead of using SAP_WAPI_WORKITEM_COMPLETE.)