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

range validation

Former Member
0 Likes
425

Hi all,

What would be better way if I need to do a range validation.

Lets say, I have a lv_range with value 'X01','X02','X03'.........until 'X50'.

Now I want to do a checking like this: -

IF lv_range is 'X01' to 'X10'.
DO ABC.
ELSEIF  lv_range is 'X11' to 'X20'.
DO ABC1.
ELSEIF  lv_range is 'X21' to 'X30'.
DO ABC2.
ELSE.
DO ABC3.
ENDIF.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
373

Other than using

IF lv_range GE  'X01' AND lv_range LE 'X10'.

it looks fine to me.

matt

1 REPLY 1
Read only

matt
Active Contributor
374

Other than using

IF lv_range GE  'X01' AND lv_range LE 'X10'.

it looks fine to me.

matt