cancel
Showing results for 
Search instead for 
Did you mean: 

SC workflow retriggered after follow on doc created

Former Member
0 Kudos

Hi all,

SRM 5.0 ECS SP12

We are using a custom workflow similar to n step approval wf for shopping cart.

ISSUE:

There are few SCs which have been released and their corresponding POs created.

After few days, the work flow of the SC triggered again creating a new instance without the user making any changes to the SC.

The SC went to the same set of approvers for approval but when they try to approve the SC, an error message comes up "Shopping Cart has since been approved. Changes no longer possible".

Could anyone help me out as to how this can be possible, since once the SC is released the workflow for the SC cannot be re-triggered?

Is this is a std bug??

Please advise.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183917
Active Contributor
0 Kudos

Hi-

You need to identify the root cause, why the new workflow instance got triggered for the same SC number, probably by analysing the workflow log and other things.

As a workaround, you can restrict the second workflow instance by using check FM. Inside the FM, check if the follow on documents (like PR..) has been created for the SC, then raise exception, which will not trigger the second instance of workflow for the same SC number.

Vinoth

Former Member
0 Kudos

Thanks Vinoth.

Cna you pls elaborate how to use CHECK FM in workflows.We are using custom workflow for shopping cart.

former_member183917
Active Contributor
0 Kudos

Hi:

There are lot of threads on how to use check FM, searching will give a lot

You need to develop a FM with proper interface parameters (Ex: SWB_CHECK_FB_START_COND_EVAL where SAP uses for WF- WS10001011) so workflow will accept this as check FM. Then inside this FM, check if the follow on documents exists , then raise an exception which will not trigeer the workflow.

And you need to link your check FM to your custom workflow in SWE2.

Vinoth

Answers (0)