cancel
Showing results for 
Search instead for 
Did you mean: 

Help required in work item

Former Member
0 Kudos

Hi Experts,

I have a requirement to send workitems to multiple approvers.I am taking in all the approvers in an internal table, looping in the table to send the work item one by one. The question is will the work item numbers be same for the different approvers or will it vary? If it varies how to get that particular workitem number from the swwwihead table and delete it using the function module SAP_WAPI_WORKITEM_DELETE.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I am not sure what is ur Requirement. If you want to do sequential approval your approach is fine. But I cannot understand why you delete the workitem id. The workitem Id will be always different and you can get the respective workitem id by providing the main instance id and the task the workitem is executing.

<b>Reward points if useful</b>

Former Member
0 Kudos

Thanx Arghadip

The requirement is like I am sending work items to approvers putting them in a loop of an internal table. After one of them accepts the workitem I have to delete the work item from others UWL.So if I use the function module SAP_WAPI_DELETE_WORKITEM I would need the workitem id to be deleted.That is where I am stuck as to how to get the workitem IDs since I will have only the workitem ID of the person accepting the UWL.By the way what is the main instance ID?

Former Member
0 Kudos

It seems that you have a requirement to send workitems to multiple approver. If you want to send same workitem to multiple user. Then if one approver reserves workitem the workitem will disappear from other´s inbox. So you needs not worry about deleting workitem from other user´s SAP Inbox. Only thing you have to do is pass a multiliner element in the agent assignment section and type of agent should be expression. The element should be of type of WFSYST-Agent and the the SAP User Id should be concatenated with US in the front.

Reward points if useful

Answers (0)