SAP Knowledge Base Article - Public

3158859 - My Inbox - Approval of multiple Purchase Requisition items

Symptom

You have configured your Flexible workflow for Purchase Requisitions at item level.
In the APP 'My Inbox' you have the possibility to process multiple entries at the same time. 
When using this option for several PR items simultaneously, you receive a pop up stating. 
'Some items were not processed correctly' and 'X number of tasks not processed' 
If you re-process the selected items they are completely processed after one or more attempts. 

Environment

SAP S/4Hana Cloud - All Versions 

Reproducing the Issue

1) Go to 'My Inbox' 
2) Choose the task type 'Release of Purchase Requisition Item'
3) Select several items from one or more Purchase Requisitions
4) Choose 'Approve' or 'Reject'   
5) Not all items are processed 

Cause

Standard System Behaviour. 

When the work items are released together on mass, the system triggers several background work processes simultaneously.
The Purchase Requisition status and other field values need to be updated so the system sets an exclusive lock 
on the purchase requisition. Each work item is processed in sequence and attempts to update the corresponding 
Purchase Requisition Item. If the document is locked this update will not be possible and the task will not be
processed as a result. When processing several items from the same Purchase requisition lock conflicts are inevitable.

Resolution

It is recommended that PR item approvals are processed individually to avoid lock conflicts. 
Note* There is also the option to manage your workflow procedure at header level for PR's.

See Also

SM12, ENQUEUE_EMEBANE. EBAN, CL_MM_PUR_PR_FLEX_WFL, GSFRG, SET_DECISION_RELEASE, MMPUR_PR_WFL_COMMON/010

Keywords

KBA , MM-FIO-PUR-REL , Fiori UI for Purchasing Approval , CA-INB-FIO , Fiori UI for My Inbox Application , Problem

Product

SAP S/4HANA Cloud all versions