cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Workitem from INBOX

Former Member
0 Kudos

Hi Experts,

I have a requirement, i have already sent a workitem to a user, now i want to recall that work-item.

what i want is that when i re-call, that work-item should automatically get deleted from the list of the user...

after my recall the user should not be able to see that workitem in his/her inbox..

Kindly let me know what can be done in this situation.

Best Regards,

Kanika

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Folks

We want to be able to clear SAP office items inc documents, attachments to messages, shared and private folders, trash and workflow items. My understanding is that wqorkflow items are removed once actioned. How do we remove the ones which have not been actioned? How do we remove those in the outbox?

Advice is greatly appreciated

Joseph

ritesh_khattri1
Explorer
0 Kudos

Dear Joseph & other Mates,

Could you find the solution of:

1. Recalling an unread or unactioned workitem send to the next level - (similar to email functionality where a user can recall a message if it was sent by mistake)

2. In a way that the complete action executed with the workitem assignment is reverted back?

We have a similar requirement in the "Public Sector - Tax & Revenue Management module" implemented for Tax Authorities, where:

  1. We use work item inbox available in NWBC to trigger & access work items assigned to agents defined in PPOM.
  2. This workflow is built & tracked for the progress in SWIA

Do let me know if you need more details for the reference.

Thanks in Advance

Regards

RK

keohanster
Active Contributor

Hi Ritesh,

I appreciate you looking for similar questions to your problem, but please notice, the original thread is from 2008. Please continue your search, and if you still can't find a relevant (current) question, then feel free to create a new question. You can always paste a link to this discussion and say that you looked at this discussion for an answer, but it didn't help.

Regards,

Sue

Former Member
0 Kudos

Hi Kanika,

You can delete that particular work item using tcode swwl, otherwise you can forward it to some other agent sing tcode swi5. in both the case work item would be deleted from the original agent inbox.

BR,

Pashant Singhal.

former_member193382
Active Contributor
0 Kudos

Hi Kanika,

May i know what do you know by recall?

As said earlier by rick, the workitem is vanished from the user's inbox once it is forwarded or executed by someone else? May i know whether you are sending work item to multiple users or single user?

Please revert back.

Regards,

Raj

Former Member
0 Kudos

HI Raj,

my requirement is that, once I have send a task in the UI worklist of an approver, and some how i realise that this approver is not the correct one. i need to send the same workitem to another user.

and i do not have to forward that workitem from the earlier approver's worklist. i want it shoyld be automatically deleted once i hace changed the approver and send it to other approver..

can u help me on this

Best Regards,

kanika

Former Member
0 Kudos

I think for this the Workflow should be waiting for an event which gets triggered by the user after realising wrong approver corrects it.On triggering the event the current wflow instance should get cancelled and new Wflow get triggered.

Thanks

Arghadip

Former Member
0 Kudos

i want it shoyld be automatically deleted once i hace changed the approver and send it to other approver

how are you going to change the approver?

if you re-run your WF and the changed approver can be identified by the new instance of your WF then you can do as suggested by Arghadip or if you want to change the user manually then you can do that using FM SWW_WI_AGENTS_CHANGE. this FM will only change the agents of the WI without executing it or deleting it. thus it will disappear from the earlier user's inbox and appear in the new user's inbox.

former_member193382
Active Contributor
0 Kudos

Hi,

I have a solution for this. But before that i would like to know whether you are using rule to determine agent or is it hard coded in workflow?

Regards,

Raj

Former Member
0 Kudos

Hi,

My agent is a general task with the assigned expression value of the approver that I am fetching from the BO..!!

I am triggering the WF based on a start event and start condition to select the Approver maintained.

I am sending this WF item task to the corresponding value that is being fetched from UI into the BO and from BO to WF..

Best regards,

kanika

former_member193382
Active Contributor
0 Kudos

Hi Kanika,

in your workflow use fork step. One branch will have the regular steps and the other branch will have a wait for event step and a task.

Create a custom method in your BO with the following code.

BEGIN_METHOD DELETE CHANGING CONTAINER.

data :begin of itab occurs 0,

wi_id like swwwihead-wi_id,

wi_rh_task like swwwihead-wi_rh_task,

wi_stat like swwwihead-wi_stat,

end of itab.

select wi_id wi_rh_task wi_stat from swwwihead into corresponding fields

of table itab where wi_rh_task = 'TS99900263'.

loop at itab.

if itab-wi_stat = 'READY'.

delete from swwwihead where wi_id = itab-wi_id.

endif.

endloop.

END_METHOD.

data:PURCHASEORDER like ekko-ebeln.

BEGIN_METHOD CHANGEPO CHANGING CONTAINER.

SET PARAMETER ID 'BES' FIELD PURCHASEORDER.

CALL TRANSACTION 'ME22N' AND SKIP FIRST SCREEN.

END_METHOD.

This code will delete the workitem from all approver's inbox. But as you have parallel processing your regular steps will resend the workitem.

Use the task created with above in the wait for event branch. Whenever you want, you can either schedule a background job to trigger the custom event to delete the workitem or you can manually trigger it using SWUE tcode.

let me know if your problem is solved or if you have any queries.

Regards,

Raj

former_member193382
Active Contributor
0 Kudos

Hi Kanika,

Here is one more solution.

Check out BO WORKITEM. This might help you.

Regards,

Raj

surjith_kumar
Active Contributor
0 Kudos

Hi,

Pass the Work-item No. to this Function Module SAP_WAPI_WORKITEM_DELETE and execute.

Regards,

Surjith Kumar

bhagaban_pradhan2
Participant
0 Kudos

above workitem will delete which have status "COMPLETED"

former_member185167
Active Contributor
0 Kudos

Hello,

You don't have to do anything. That's the default behaviour.

If a workitem is forwarded, or deleted, or reserved by someone else - it disappears from the user's inbox.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

Use the Terminating event, to take no further action on the workitem sent to the User's inbox.

See the below link

http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4b590453d11d189430000e829fbbd/frameset.htm

If, you want to remove the workitem for this time only. Use SWWL to delete the workitem (It is not advisable to use in Production system)