Skip to Content
avatar image
Former Member

Workflow being called 4 times

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 03, 2017 at 02:04 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 07, 2017 at 06:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 13, 2017 at 02:00 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded