cancel
Showing results for 
Search instead for 
Did you mean: 

Example of using OR condition in KUT rule editor

floatingit
Explorer
0 Kudos

Example of using OR condition in KUT rule editor

Can anyone provide a specific example of using a logical OR condition in the KUT rule editor.

Something along the lines of below but can’t seem to get the sysntax

OR(Root.ContractLifeCycleStatusCode != '1', Root.ContractLifeCycleStatusCode != '4')

I have searched extensively for this but found nothing. Like the below example which has no response to the same question.

https://blogs.sap.com/2016/07/26/introduction-to-c4c-rule-editor/

Any advice would be much appreciated

Thanks

Iain

Accepted Solutions (1)

Accepted Solutions (1)

arun02_12
Contributor

Hello Lain,

The Syntax that you have used is correct for OR function.

But the rule that you have defined doesn't make sense.

Root.ContractLifeCycleStatusCode != '1' => Means except 1 all other status are allowed

Root.ContractLifeCycleStatusCode != '4' => Means except 4 all other status are allowed


When you introduce an OR inbetween, First condition allows 4 and second condition allows 1, so this rule is same as not having a rule.


You will have to use AND function if you want the rule to work for all other status except 1 and 4.


Best Regards,

Arun

Answers (1)

Answers (1)

dhruv_mehta
Active Contributor
0 Kudos

https://blogs.sap.com/2018/12/17/use-simple-and-very-powerfull-data-model-in-debug-mode-for-sap-c4c/

this blog also might help u a bit more, above anser is correct 🙂