cancel
Showing results for 
Search instead for 
Did you mean: 

How to restart workflow after completion?

Former Member
0 Kudos

Dear experts,

We have situation where we need to restart the workflow after completion - strange isn't...

A multi-level wf: At the top approval level agent rejected and as a result workflow rightly set to completed... Now agent want to change decision to approve...

Therefore seeking your expert advice on how to re-start the completed workflow at that level only...

Best Regards,

Aslam

Accepted Solutions (1)

Accepted Solutions (1)

former_member554978
Active Contributor
0 Kudos

Use SWUS and enter the WF template number and correctly enter the object key

Populate the wf_initaitor as well.

Former Member
0 Kudos

Thanks for the response Swaminathan, the tcode you had mention is for testing worklfow...

Please advice...

Best Regards,

Aslam

former_member554978
Active Contributor
0 Kudos

i hope you wanted to change the document status alone.

by executing thru SWUS..old workitem status will remain same.

But with the new workitem...the approver can change the document status.

narin_nandivada3
Active Contributor
0 Kudos

HI Aslam,

Once completed i think it cannot be restarted...?

instead if its for reporting purpose the make the necessary changes at table level.. or if there is certain process after approval then you need to create a new instance... or do the process again which would trigger the workflow and then take the approval.

Regards

Narin.

bpawanchand
Active Contributor
0 Kudos

@ Aslam Riaz

try some thing like this,

1. Get the exact workitem ID from the log , which workitem the manager has approved at the higher level.

2. Now open SE37 and execute the FM SAP_WAPI_ADM_WORKITEM_REDORULE, by passing the workitem ID which you found from the workflow log.

3. Check this time you will find a workitem ID but with the same previous old workitem instacne values....

Answers (4)

Answers (4)

debanjan_das2
Explorer
0 Kudos
Former Member
0 Kudos

thankd

bpawanchand
Active Contributor
0 Kudos

I think If you try to start the workflow from SWUS or manually, then a new instanceof the workflow is created right, then how will you confirm that you are trying to reset the same wotkitem status....

what i mean is a new instance of the workflow is created again, which means again a new workitem is sent to approver to approver, but not the old workitem status is modified.....

Former Member
0 Kudos

Hi,

If its the requirement specific to a case then you can trigger the workflow manually by passing the parameters same as of old Instance.

Regards,

Vaishali.