cancel
Showing results for 
Search instead for 
Did you mean: 

WI_ID created for a particular task in workflow

Former Member
0 Kudos

Hi Experts,

I want to know is there any Function module or any Method, present to get the

no: of Workitem id (WI_ID) created for a particular Task in one workflow.

Thanks,

Deepika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I think you can read table SWWWIHEAD. In place of field WI_RH_TASK you have to give the Task Id. and in place of field TOP_WI_ID you have to provide the Instance Id of the Workflow.

Thanks

Arghadip

Former Member
0 Kudos

I have already checked SWWWIHEAD table but... in place of WI_RH_TASK we need to give the Workflow id (for E.g. WS90000005 ) .. but my requirement is to give Task id (i.e TS90000005) .

One more thing... One Workflow id can contain more than one task.. in that case how i will get the WI_ID generated for a particular task.

Ex: In my Workflow WS90000005 i have created two tasks (i.e. 1. TS90000005 and 2. TS90000011).

These two tasks will be triggered for different events.

So i want to know how many workitem id's (WI_ID) created for individual task ?

Thanks,

Deepika

Former Member
0 Kudos

In WI_RH_TASK field you can give the TASK Id:TS00008267. In the place of TOP Workitem id give the instance Id. You must first check my comments.

Thanks

Arghadip

imthiaz_ahmed
Active Contributor
0 Kudos

Take a look at this FM SWW_WI_TASK_INSTANCES_READ.

Regards, IA

Former Member
0 Kudos

Thanks a lot...

Answers (2)

Answers (2)

former_member184495
Active Contributor
0 Kudos

Hi DN,

did u mean Workitems per task,

if yes, then there is a T-code SWI2_FREQ.

Hope it helps.

Aditya

Former Member
0 Kudos

I dont know any standard function

but you can find the workitems in table

SWWWIHEAD

regards