cancel
Showing results for 
Search instead for 
Did you mean: 

Get active Instance of Workflow

MohanChauhan
Product and Topic Expert
Product and Topic Expert
0 Kudos
705

Hi All,

I want to read the active instances of the workflow. Is there any FM or table from where i can get this. Also how to read the Workflow container variables from it.

I have a custom workflow with custom BO. I need to check the active instances of the workflow before triggering a new instance and also compare the date values from the active workflow container.

Regards,

Mohan

View Entire Topic
Former Member
0 Kudos

Programmically you can retrieve the active workflows for a particular BOR obj instance using SAP_WAPI_WORKITEMS_TO_OBJECT.

To read the container you can use FM SAP_WAPI_READ_CONTAINER.

Best Regards,

Trevor

MohanChauhan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Trevor

Yes you hit nail right in the head.

After some searching I also found out this is the best. Was just testing my program with these FM's.

Thanks to all for your suggestion.

Regards,

Mohan