cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow being called 4 times

former_member203139
Participant
0 Kudos

All,

I have created a new WF with a subtype on which i have generated a new method to assign it to a task.

The WF is trigered when the event technicalcompleted of BO AFVC_PM is called on tx code Co02.

Does anybody know how to trigger it just once?

Kind Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member203139
Participant
0 Kudos

Thanks for the answers, I guess it was being called because the BOR object key field was the Route number i set a condition just to process one in my custom WF.

Thank you all.

anjan_paul
Active Contributor
0 Kudos

Hi,

You can use Check Fm to restrict event only once after check any instance is there or not using fm SAP_WAPI_WORKITEMS_TO_OBJECT

former_member186746
Active Contributor
0 Kudos

Hi,

Activate the event trace to see how many events are triggerd when you execute Co02.

Also check the event-->WF binding, how many events are linked to your workflow template. Once you have this information you can check what the best way is to ensure that 1 user action only triggers 1 workflow, this can be achieved with conditions SWB_COND, or a check function module in SWE2 or SWEINST.

Kind regards, Rob Dielemans