Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workitems - Deletion

Former Member
0 Likes
412

Hi

My requirement is to delete workitems from the inbox of the particular user.

I am using function module SAP_WAPI_SET_WORKITEM_COMPLETD to delete the workitems.

But this function module delete the workitems(if it is same) from the inbox of all users.But i need to delete the workitem for a particular user even though it exists in other inbox also.

If i delete the workitems from users inbox , the workflow is going into error.how to avoid this.

Help me to solve this issue.

2 REPLIES 2
Read only

Former Member
0 Likes
385

Hi Pandiyan,

If you send that SY-UNAME (ie.username) for the import parameter ACTUAL_AGENT, then it should be deleting those work-items for that person only.

<b>Reward points if this helps,</b>

Kiran

Read only

0 Likes
385

Hi Kiran,

I have used SY-UNAME for the import parameter ACTUAL_AGENT,But its deleting the workitems from all users inbox.Could you tell me some other function module to delete the workitems.