on 10-22-2007 1:20 PM
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.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.