Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Re: Select option condition not working

Former Member
0 Likes
550

Hi Expert,

Below condition is not working for berw1 field  in the selection screen i have given the range for berw1  i have check in

the debugging when break point reach to this statement it is fail

  if ( ( s_berw1 is not initial ) and ( ( wa_mdsu-berw1 > s_berw1-high ) or  ( wa_mdsu-berw1 < s_berw1-low ) ) ).

        delete it_mdsu.

        clear wa_mdsu.

        continue.

        endif.

Any one can throw some light on this.

Regards,

Am

Another Basic Question.

Message was edited by: kishan P

Hi Expert,

Below condition is not working for berw1 field  in the selection screen i have given the range for berw1  i have check in

the debugging when break point reach to this statement it is fail

  if ( ( s_berw1 is not initial ) and ( ( wa_mdsu-berw1 > s_berw1-high ) or  ( wa_mdsu-berw1 < s_berw1-low ) ) ).

        delete it_mdsu.

        clear wa_mdsu.

        continue.

        endif.

Any one can throw some light on this.

Regards,

Am

Another Basic Question.

Message was edited by: kishan P

2 REPLIES 2
Read only

Former Member
0 Likes
491

hi,

I think you would not select any value in range s_berw1. Instead of use the if statement above, I think we could change:

s_berw1-sign = 'E'. "Exclude this range

s_berw1-option = 'BT'.

s_berw1-low = value1.

s_berw1-high = value2.

when you write: if wa_mdsu-berw1 in s_berw1 then the program will return FALSE if any value wa_mdsu-berw1 fall in range [value1;value2].

please try.

Read only

Former Member
0 Likes
491

Hi,

I guess you need to delete the entry from table IT_MDSU which doesnt fall in the range of S_BERW1.

Please use:

DELETE IT_MDSU WHERE berw1 NOT IN S_BERW1.