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
658

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

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (3)

Answers (3)

Former Member
0 Kudos

I think you can check with transaction Code SWI2_FREQ and just provide your Wflow template number with WS in front and select subworkflow.

Thanks

Arghadip

Former Member
0 Kudos

i think you can use transaction SWI1.

Former Member
0 Kudos

Mohan check 'information' transactions SWI* . You will find what you need.