cancel
Showing results for 
Search instead for 
Did you mean: 

Condition Editor - bug??

Former Member
0 Kudos

Hi guys!

In my interface determination I need to create following condition:

IF (/A/B=0 OR /A/C=0) AND (/X/Y=A OR /X/Y=B) ....

But the editor puts brackets with the AND statement! What is this good for? Since I know, AND has higher priority than OR so there is no need for using brackets with AND statement. But, there is necessary to use them with OR if we want to achieve some special condition (like my for example)...

Any ideas how to solve it?

Thanx, Olian

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Works..

Former Member
0 Kudos

Hi Olian

(/A/B=0 OR /A/C=0) AND (/X/Y=A OR /X/Y=B)

In the above case there must be two condition to be true one before AND, second after AND.And moreover it will check conditions of the both side in any case whether it is before AND is true or not

(/A/B=0 OR /A/C=0) OR (/X/Y=A OR /X/Y=B)

In this case any one of the condition should true. And also if first side of the condition is true the there is no necessity to check other side of the condition.

<b>*****rewrds points if it help u undersatnd</b>

Former Member
0 Kudos

Ajay, this is not solution to my problem..

Any suggestion please?

Thank you! Olian

Former Member
0 Kudos

Guys, check it please and let me know if it seems to be a bug for you..

Thank you! Olian

Former Member
0 Kudos

Hi Olian!

I have exactly the same problem! It is strange using brackets with AND statement, isn't it?

For me this is definetlely a bug!

Peter

Former Member
0 Kudos

Olian, I've solved it.

Check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/ab/13bf7191e73a4fb3560e767a2525fd/frameset.htm" target="n">this</a> out. The last section. It solved my problem, will also yours.

Peter

Former Member
0 Kudos

Hi Olian ,

best is to check the xpath expression with XMLSPY.

Thats the way we do it.

Regards Mario

Former Member
0 Kudos

Mario, I've made several tests... There is no more problem with testing, problem is how to write the condition..

Any suggestions?

Thanx! Olian

Former Member
0 Kudos

Hi Olian,

If I am not wrong...with brackets in the condition..

IF (/A/B=0 OR /A/C=0) AND (/X/Y=A OR /X/Y=B) ....

It will give priority to bracket condition before executing outside condition..I mean

In above case value of (/A/B=0 OR /A/C=0) and (/X/Y=A OR /X/Y=B) would be calculated first before checking for "AND" condition for true values.

Hope this will help.

Let me know if you need more details.

Nilesh

Former Member
0 Kudos

Nilesh, sorry, I didn't get it What did u mean?

Guys, problem still not solved.. Any suggestions?

Olian