2016 Mar 10 11:02 AM
Hello Every one,
I want to achieve the below condition in smartform condition element
IF ( WHNO = '122' OR WHNO = '123' OR WHNO = '112' ) and ( v_flag = 'x')
do some processing .
endif.
I had used a condition element and in the genneral attributes tab I placed condition as whno = 122 or whno = 123 or whno = 112 and when I write v_flg = 'X' it is evaluating as
IF WHNO = '122' OR WHNO = '123' OR ( WHNO = '112' and v_flag = 'x' ).
Please suggest how can I acheive my logic.
Thanks,
Balu
2016 Mar 10 11:13 AM
By heart I think you'll have to repeat every check, so:
W=112
F=X
OR
W=123
F=X
OR
W=112
F=X
2016 Mar 10 11:11 AM
Mixing AND / OR condition in SF is a bit tricky.
A more easy and "readable" solution is:
In this way, you enter the OR conditions only if V_flag = 'X'.
it will become something like
IF v_flag = 'X'.
IF WHNO = 122 OR whno = 123 OR whno = 112.
ENDIF
ENDIF.
2016 Mar 10 11:13 AM
By heart I think you'll have to repeat every check, so:
W=112
F=X
OR
W=123
F=X
OR
W=112
F=X
2016 Mar 10 12:38 PM
Hi,
Thanks for your replies.
I had solved it myself. In the condition element there is a tab called as conditions.
Placing a condition in the conditions tab of the condition element solved my problem .
Thnks,
Bala
2016 Mar 10 7:35 PM
Still marked "not answered". Kindly close the discussion - see this blog.