cancel
Showing results for 
Search instead for 
Did you mean: 

How to get information of running instance of workflow for a given item

Former Member
0 Kudos

Hi All,

I have a requirement where i need to know if a workflow instance is running for a given BOR object key. When an instance is running i do not want any other instance of the same BOR object key to be triggered. Instead it needs to be suppressed.

Please tell me how do i implement this criteria in my workflow builder.

Regards,

Imran

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Use a Terminating event in your workflow in a parallel task. It will use the new one instead and terminate the existing workitem.

Former Member
0 Kudos

Hi Sudhir,

I can use this approach. But my requirement is not to trigger the workflow at all. The event created must not be used for creating another instance of workflow for a given BOR object key.

Former Member
0 Kudos

Create a virtual attribute of type BOOLe-BOOLe and in this attribute you use Function Module SAP_WAPI_WORKITEM_TO_OBJECT

Provide the Business Object and the Object Key and if on executing this FM you receive any entry in the Worklist Parameter this mean Wflow is already there and hnce you should set flag as X.

Create a start condition of Wflow using SWB_COND Transaction code and use this Flag for creating the start condition. If you wish you could also use Check Function Module. Search this forum you will get reference on Check FM

Thanks

Arghadip