cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Workitem ID

Former Member
0 Kudos

Hi,

I want to know the instance of Runnign workflow means whether it is running or completed or In Process. so that i am using FM SWP_WF_INSTANCE_HEADER_READ.

For the above FM WorkItem ID is required, but i am not able to find FM or table(I hav eObject Key and Object type) to get WI ID.

Could anyone let me help to resolve this issue..

Harkesh Dang

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Insert this code within your method before the FM call:

swc_get_element container 'WorkItemID' zzw_id

( data: zzw_id like swwwihead-wi_id)

You should be able to debug the container for the exact name of the workitem id.

Regards,

Peter Hang

Former Member
0 Kudos

Search this forum you will get your answer. Search in se37 with keyword

SAP_WAPI*

and in se11

SW*

Thanks

Arghadip

Former Member
0 Kudos

Hi,

I need to get Workitem ID through Object Key thats why i am looking for FM or any table.

Harkesh Dang

Former Member
0 Kudos

Use FM

SAP_WAPI_WORKITEMS_TO_OBJECT

and you can also check table

SWIWIOBJCT

SWW_WI2OBJ

Thanks

Arghadip