Skip to Content
0

Business Object Field Restriction Not Working

May 15, 2017 at 07:42 AM

84

avatar image
Former Member

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.

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

1 Answer

Anjan Paul May 15, 2017 at 08:43 AM
0

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?

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

The change document trigger is there, this is why I am getting the e-mails from the workflow, and I can see the link in SWIA, also the conditions in SWEC are as simple as mentioned.

0

Hi,

Please share the screesnshots.

0
Former Member

Here's the screenshot

capture.png (46.0 kB)
0