cancel
Showing results for 
Search instead for 
Did you mean: 

Remove work item from approvers inbox

Former Member
0 Kudos

Hi All,

During approval, i wanted to remove the shopping cart work item from the inbox/UWL

Using the FM 'BBP_PD_SC_STATUS_CHANGE_WF', the status is set to approve.

Then FM SAP_WAPI_WORKITEM_COMPLETE is called to remove it from my inbox.

But, work item continues to remains there.


Could someone help with a function module or any other method to solve this issue??


Regards,

Eldho

Accepted Solutions (0)

Answers (4)

Answers (4)

konstantin_anikeev
Active Contributor
0 Kudos

Hi,

what is your process?

1. Forward the workitem from inbox of user1 to inbox of user2.

2. Approve the shopping cart in substitution of user1.

3. Approve the shopping cart as it was done by user1.

4. Reject the shopping cart?

Regards

Konstantin

former_member272779
Participant
0 Kudos

Hi,

When we want to remove the items from the inbox we only complete the workflow.

A.S

vishal_sharda2
Participant
0 Kudos

Hello Eldho,

Is your problem resolved. I have used same FM that you have mentioned to approve the SC. However, the item still remains in the approver's inbox.

Please advice.

Thanks!

-Vishal.

lisa_sheil
Contributor
0 Kudos

Dear Eldho,

Are you using SAP standard workflow or a custom workflow (like WS9xxxx) ?

Please check the Task if 'Synchronous object methods' are chosen for it.

Below is the difference between synchronous methods and asynchronous methods:


- Synchronous methods that sit behind the work items do not need terminating event to finish the execution so when you save or go out of the transaction in the work item the execution is finish  and so the work item will disappear from the inbox.

- Asynchronous methods need a terminating event in order to finish the execution of the work item so when you return to the inbox after execution the work item, it may still not have received its terminating event and will remain in the inbox. When you then refresh, the terminating event will have been rec and the work item execution finished and so will be removed from the inbox.

For those old workitems that are still in your inbox, you could try the below to complete them:

- Try manually raising the terminating event with the object instance via SWUE and see if it terminates the work item.

- If that does not work then you could manually complete the work item via SWIA.

I hope this helps,

Kind Regards,

Lisa