cancel
Showing results for 
Search instead for 
Did you mean: 

How to restart a parent workflow from a sub workflow ?

Former Member
0 Kudos

Hi Experts,

I have a main workflow for invoice approval that inturn calls a sub-workflow.

a) Checking the image quality of the scanned invoice and b) manual entry of the invoice in SAP system via transaction MIR7 (based on the scanned image) is handled in main workflow. The finance expert is the person who does this in the main workflow.

All the approvals / rejections of this invoice happen in this Sub-workflow.

Now, when there is a rejection of invoice by an approver, the finance expert gets a work item that he executes (again transaction MIR7) in order to delete the invoice. Once this invoice is deleted, a wait for event "Deleted" gets triggered that ends both the main and sub workflows. This also deletes the scanned image fo the invoice.

Finally, if they would like to re-process this invoice, they have to start from scratch i.e they have to scan the invoice again and start the entire process.

They are now asking if there is a way to restart the process without deleting the scanned copy of the invoice i.e. there should be an option to either delete the invoice + scanned copy AND start step b) again retaining the scanned copy of invoice.

Please suggest an optimum solution in this regard.

Best Regards,

Hari

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185167
Active Contributor
0 Kudos

Hello,

Instead of terminating both workflows with the Deleted event, you could change it so that when it happens someone is asked to make the decision to delete the scanned copy or not, and pass that parameter back to the main workflow.

In the main workflow it checks the parameter and then either loops around for another try (if they choose to not delete the scan), or terminates.

What are your ideas?

regards

Rick Bakker

Hanabi Technology