Skip to Content
Former Member
Jul 21, 2010 at 04:37 PM

Order blocked by user / Workflow error handling


Hi Folks,

I am getting this requirement quite often. Time to address it in a more efficient way than that I know.

The following is the requirement:

Workitem goes to approver. If the approver approves/rejects the workitem, there is a subsequent change in the sales order which is handled by BAPI in the next step. If the sales order is locked by some user, BAPI does not make change and throws an error.

Solution that I can think of:

The way it is handled right now is - if there is an error message from BAPI - the workflow is routed to a power user or an email message is sent to admin asking him to inform the right user.

This approach of mine does not sound correct. Can we actually throw error at the time when the approver tries to open the workitem itself (i.e. see if the transaction is being locked and if it is locked - throw an error and do not allow the approver to take action ).