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.

View Entire Topic
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.