Skip to Content
avatar image
Former Member

Business Object Field Restriction Not Working

Hi,

I created a new workflow that triggers whenever a Sales Order is changed (BO BUS2032, Event 'CHANGED'), and added some start conditions in SWB_COND to restrict triggering the workflow per certain company codes, now I want to add a restriction to trigger the workflow only if the field Quantity is changed, I go to SWEC and add a field restriction to BO BUS2032 as follows:

&VBEP_WMENG_NEW& =/= &VBEP_WMENG_OLD&

But the workflow still gets triggering when I change fields like the P.O. Number, or some texts, although I made sure to refresh the buffer after adding the restrictions.

Any idea what could be wrong?

Edit: I was looking through some SAP Notes and found that Note # 2160493 mentions that a workflow can get triggered twice because it's linked in both SWEC and SWE2, the problem here is that if I remove the workflow from SWE2 it won't trigger at all, and if I remove it from SWEC I can't use field restriction and the workflow will always trigger, and if I keep both it will trigger twice.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 15, 2017 at 08:43 AM

    Hi,

    Please check the share the screenshot of how you maintain Field Restrictions.

    SWEC for change documents. So please check first is there any change document trigger or not?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Here's the screenshot

      capture.png (46.0 kB)