cancel
Showing results for 
Search instead for 
Did you mean: 

WF Deadline Latest End Change

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ronen_weisz
Active Contributor
0 Kudos

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)

Former Member
0 Kudos

hi Ronen,

I don't know when tat Workitem item is created and also after 3 min  it reaching the deadline.

So is there anyway tat i can some info when the WI created?

OR any other alternate way...

Thanks,

KP.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Karri,

Changing the data in WF runtime table will efffect this??

Thanks,

KP

Former Member
0 Kudos

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

former_member185167
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi Karri,

i got 1 table where the runtime data of the WF is saving :- SWD_STEPS.in our quality system i chnage the fieldvalue(LATE_END_B) to WFS to WSI. but still this not working.

Former Member
0 Kudos

hi Rick,

Do we have any standard report or we have to create a costume one?

Thanks,

KP

Former Member
0 Kudos

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

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

I042439
Employee
Employee
0 Kudos

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


Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

Any other workarounds?

Thanks,

KP