on 12-14-2012 9:38 AM
Hi All,
I have searched every possible thread regarding duplicate WI but none has given a clear answer.
Issue is : Employee creates a travel request. A workitem is created in manager's inbox. when the employee edits the request, another workitem gets created.
How can I prevent creation of duplicate workitems?
I have a fork with two branches. One branch waits for event change of request while the other sends the request for manager's approval.
End condition of fork is till the request is either approved or rejected by the manager. Thanks.
If an employee changes travel request, the current workflow instance should be terminated and a new workflow instance gets created. Otherwise, the manager could approve something that s/he didn't see. You can achieve this by either using terminating events (the approval step is terminated automatically if the employee changes the travel request) or by using a fork that will terminate the workflow upon receiving an event indicating change of travel request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can create a virtual attribute that uses SAP_WAPI_WORKITEMS_TO_OBJECT function module to check whether there is a already existing workflow and use that in start condition of workflow SWB_cond to trigger workflow.
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
User should be able to edit the document only when it is not approved.
If document is not approved and user is editing the document then should put a condition before raising the event for WF.
If document is created first time then only it should trigger the WF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It is standard functionality , you can't stopped them from creating another workitem.
What is your requirement actually. share your workflow design
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.