on 04-12-2019 11:57 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.