on 05-21-2014 6:12 PM
Hi Experts,
We have WF with multiple approval and then at the end again it will go to Initiator where we have deadline (LATESTEND).
By mistake I gave Refer.date/time as Workflow creation (but it should be Work Item creation).
Is there any way I can change this to Work item creation for the wf which are already initiated ?
More than 20 WF started and multiple user approved.so don’t want to restart the WF ‘s again
Thanks,
KP
The workflow template of a specific workflow instance, once started, can not be changed.
However, if you can catch the workitem after creation and before the deadline is reached, you can manually change the deadline of every workitem (from the log goto->tech disp->edit->change and change the deadline)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see any easy solution for your problem. As Ronen said, you can manually change the deadline, but only after the work item has been created, so basically that leaves you the ~3 minutes. And there isn't some kind of alert which you could use to get the info when WI is created (and even if there was, you would have only those 3 minutes to react.)
Basically you could do some tricks with the background job SWWDHEX that is responsible of checking the deadlines every three minutes (and then you could do some manual monitoring & deadline changes for the WIs), but you should be VERY careful if you choose this road, since this will have an effect for all workflows. Most probably the time and effort for this will be bigger than just restarting the workflows.
Regards,
Karri
Change what data? Did you find a table where the "data" is stored?
I've never done deep digging into this topic, but I assume that the deadline is set to the "runtime table" at the moment when the work item is created (especially in your case in which the deadline is set based on the work item creation and not for example based on a container element value). => You will have 3 minutes to change the data.
Regards,
Karri
Hello,
You could schedule a report to run every 3 mins (1 minute after the deadline job runs) which could warn you of a workitem that has just been created for the relevant task, via email. When you get the email, quickly get in and change the deadline manually via SWIA. To make it a bit easier you could reschedule the deadline job to run every 5 mins or 10 mins, temporarily.
regards
Rick Bakker
I don't know which field you should possibly change to make needed changes. And even if you manage to find certain field, I would very very careful to start changing standard table field values in production system. The correct way to change the deadline is either through the admin tools (as described earlier in this thread) or possibly some standard function/API (if you manage to find one, see SAP_WAPI* functions).
Regards,
Karri
Hi Karri,
I'm trying to restart the WF using tcode :- SWUS_WITH_REFERENCE .
but its starting from the beginning again, Is there anyway it continue from the old WF was there , instead staring from beginning ?
Thanks,
PK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not aware of any way to do this. When you use SWUS (or its variants), the workflow starts from beginning. Then you need to complete the steps manually, but perhaps this is not allowed in the process and then you just need to ask the people to complete/approve the work items again.
Regards,
Karri
Hi
Basic Question : What actually happens when the Latest End reaches for the last step (for the WI With Initiator).
I am sure it is not going to nuke the workflow initiator.....
For 20 odd workflows, I do not see a requirement to develop something and make it go till production.
Best is to take out the names of the Initiators and let them know in advance to ignore the escalations for the related documents (if your setup allows you inform the users).
Yeah, mistake has been made..... and is corrected too for new instances.......
But if you cannot reach out to them, best is what Rick suggested to create a custom prog to run every 3 minutes, pickup work items created in the past three minutes for that particular task (TSxxxxxxxx) from SWWIHEAD and then change their deadlines...you can even automate the changing of deadline from the same program using FM SWW_WI_DEADLINES_CHANGE (could not locate any with SAP_WAPI*).
Regards,
Modak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There are few WF at initial approval level, So Planning to restart them?
Can i know the steps to restart the WF which is active ?
Thanks,
Kirn.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no actual "restarting" functionality.
Steps:
1) Cancel the old workflow instance.
2) Start the workflow again. You should know how your workflow is started. If it is started by event, then you trigger the same event with transaction SWUE. If there is no even, then start the workflow for example with SWUS.
Regards,
Karri
hi,
Any other workarounds?
Thanks,
KP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.