Skip to Content
0

Workflow being called 4 times

Feb 03, 2017 at 01:23 PM

60

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Rob Dielemans Feb 03, 2017 at 02:04 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Anjan Paul Feb 07, 2017 at 06:42 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 13, 2017 at 02:00 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded