Skip to Content
Former Member
Mar 05, 2007 at 10:42 AM

ESS deleting an Absence request before approving it.



I have problems stopping the ESS Absence Request workflow after the user deletes it before the manager approves.

Reproduction scenario:

- 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:

Documentstatus: SENT

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.

Kind regards,

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.)