Skip to Content
0

Prevent Multiple workflow instances creation

May 25, 2017 at 11:12 AM

85

avatar image

Hi all,

We have a requirement to trigger workflow is created/changed.We are creating material using BAPI BAPI_MATERIAL_SAVEREPLICA

Change document and event linkage are configured in SWEC and SWE2 and the workflow is working fine if material is created/changed from MM01/MM02.

But the BAPI is creating multiple change documents and so multiple workflow instances are being created .

The FM SAP_WAPI_WORKITEMS_TO_OBJECT used in Check FM is not returning anything ,so the events are triggered almost simultaneously.

We tried implementing the solution provided by Florin in the below blog ,it is behaving erratically .Many times it is not deleting all the required instances.
https://blogs.sap.com/2013/05/05/the-super-singleton-concept-for-workflow-instances-3-step-approach/ .

Also is there any way to prevent the workflow trigger instead of deleting the workflow instance after it is triggered?

Thanks

Suman Kalyan

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers