cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Workitem From Approver's Inbox

former_member193382
Active Contributor
0 Kudos

Hi All,

i am working purchase requisition Release workflow. I have developed a custom workflow for the same.

Now i have a requirement where i have to delete the workitem from the approver's inbox if the initiator changes the PR and send a new workitem to the approver with new PR.

How can i do this?

Please help me.

Thanks and regards,

Raj

Accepted Solutions (1)

Accepted Solutions (1)

imthiaz_ahmed
Active Contributor
0 Kudos

Not to complicate the things, add the desired event under terminating events and it should take care of it.

Regards, IA

former_member193382
Active Contributor
0 Kudos

Hi IA,

I have added the terminating event and also activated the same in the outcomes step and put a process control step in it to cancel the WI. But it is not working. Method Display is the first in my workflow after the event releasestepcreated is trigerred.

Can you tell me how can i make it work i.e, how can i delete the previous WI from the approver's or replace it with the new WI if the PR is changed before the WI enters the processing status?

Thanks and regards,

Raj

imthiaz_ahmed
Active Contributor
0 Kudos

You don't need a process control. Adding the terminating events to the approval task takes care of the logically deleting the WI from the existing inbox.

Regards, IA

Answers (5)

Answers (5)

former_member193382
Active Contributor
0 Kudos

Used process control step

Former Member
0 Kudos

Dear experts,

Just my doubt...

If a PR creator changes the PR which initialized a new release strategy, I thought the work item would be automatically removed from the old approver's inbox and send to the new approver, even though just by using a standard PR workflow (without customization)?

Thanks,

YL

former_member193382
Active Contributor
0 Kudos

Hi All,

I have put significantly changed from BUS2105 as terminating in the task that comes immediately after the workflow is triggered. But it is not working. But similarly when i tried with purchase order release workflow there is a event called changed in BUS2012. It is working fine. but there is no such event here.

What should i do now?

please suggest something.

Thanks and regards,

Raj

Former Member
0 Kudos

Hi Raj,

This is the standard way to cancel or cancel and restart workflow, and several other operations.

You can see in tc swel that the receiver type is a method bi_event_handler~on_event in class cl_swf_run_handler*.

regards,

Ronit.

Former Member
0 Kudos

Hi Raj,

You can go to tab events under basic data -> version-dependent

Put your event and chose the receiver type 1 - cancel workflow

regards,

Ronit.

former_member193382
Active Contributor
0 Kudos

Hi Ronit,

Can you please explain me how it works?

Thanks and regards,

Raj

Former Member
0 Kudos

Hi Raj,

You can delete that Workitem from SWWL.by giving the Workitem number and status and agent name.

thanks

Raj

vijy_mukunthan
Active Contributor
0 Kudos

hi RaviRaj K

Boss he is asking about automatic deleation of workitem not manual deleation boss.

Regards

vijay

Former Member
0 Kudos

Hi,

The same requirement was asked very recently for PO workflow.

To answer your question, place the Changed also as one of the triggering event. And in the workflow where you send witem to user 1, place a fork with 1 out of 2 outcomes where in branch 1 will have Wait for event "CHANGED" step and then below that, put a Process control where you cancel the workflow or set witems to obsolete.

Pl search for the last 10 days threads for detailed solution

Hope this helps.

venu