cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow in SAP Inbox - Right Click to Cancel the Workflow

Former Member
0 Kudos

Hi,

Is there a way to cancel the workflow item in SAP inbox?

I have a requirement of scenario like below:

1) user submit shift plan. A workflow item created in SAP Inbox for manager to approve it.

2) user feel want to cancel the shift plan submitted due to further changes before approve it. Thus in SAP inbox, user want to right click the mouse button, an option to cancel the workflow be available.

Can this be done in SAP Inbox?

Hope someone can help me on this.

Many thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Eddie_Morris
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi

How did the user create the shift plan in the first place. What transaction did they use. Is there an option to open the shift plan and cancel? If so then it is possible a CANCELLED or DELETED (or similar) event is raised in the system.

Add a fork step in your workflow with 2 branches. In one branch have all the steps regarding manager approval. In the other branch have a "Wait for event" step which waits for the CANCELLED/DELETED event and when it receives this event it will complete the branch and also the worflow.

Regards,

Eddie

Former Member
0 Kudos

Hi,

User create a shift plan using a standard program t-code: PP61.

I tried to add two decision box for the activity but seems SAP not allowed.

My workflow originally:

Workflow starte --> Get employee details --> Send to manager approval ....

According to what you suggested, I tried to changed to:

Workflow starte --> Get employee details -->(1) Send to manager Inbox for approval decision....

-->(2) Send to requester Inbox for cancel decision...

Thanks.

Edited by: Irene Sam on Apr 22, 2011 12:13 PM

Former Member
0 Kudos

Hi irene,

You can change your process flow as below.

Create the Event 'Canceled' in the corresponding business object. In your current work flow initially create a Fork step type with two branches. In the one branch follow the approval process and in the other branch create a wait step type with the event 'Canceled'. After this call the Process control step type with the option 'Complete workflow' Then make the entries in SWEC to enable the event linkage.

In the transaction PP61, add the button to cancel the shift plan using enhancement.

Employee open the Transaction PP61 in change mode and he can click the cancel button if he wants.

Once the cancel button is clicked, Call the FM SAP_WAPI_CREATE_EVENT and trigger the event 'Canceled'.

So at run time, if the canceled event triggers the work flow will be completed. So it will not be available at the Approver's in box.

Thanks,

Viji.

Answers (3)

Answers (3)

former_member185167
Active Contributor
0 Kudos

Hello,

You say:

1) user submit shift plan. A workflow item created in SAP Inbox for manager to approve it.

2) user feel want to cancel the shift plan submitted due to further changes before approve it

But, the workitem is not in the user's inbox, it's in the manager's inbox!

Normally the user woud go to the transaction where they created the instance (shift plan, in this case) and make the change or cancellation there. This generates an event and that can be used to cancel the workflow, thereby removing the workitem from the manager's inbox.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi,

User(requester) can view the workflow item in the Outbox - Started Workflows.

In there, they can view where the workflow item they have created. Now they have the requirement to right click on this item and cancel it if want.

Thanks.

suresh_subramanian2
Active Contributor
0 Kudos

Hello Irene Sam !

If the user don't want to process the work item, it is better to logically deleting it rather than canceling or deleting it.

Right clicking on the work item and canceling it is not good solution.

Regards,

S.Suresh

former_member186746
Active Contributor
0 Kudos

Hi,

no this is ofcourse not possible.

From a Business Process Modeling perspective if a user action can have several outcomes, like an option to cancel the action, or when it is desirable to cancel the workflow altogether, then you have to incorporate it in the process flow and model it in SAP Business Workflow.

What you can do as a user, wit sufficient rights is go to the workflow log of that workitem and complete or logically delete the workitem. This can be achieved from the SAP inbox

In newer SWIA transactions theres an option to also complete manually the workitem.

Kind regards, Rob Dielemans

Edited by: Rob Dielemans on Apr 21, 2011 2:01 PM