on 04-21-2011 10:42 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.