Application Development 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: 

RANGES USE

Former Member
0 Kudos

Hi Friends,

why we are sing ranges in org..

what is diffreence between RANGES AND SELECT-OPTIONS..

REGARDS,

5 REPLIES 5

Former Member
0 Kudos

PLease check

former_member156446
Active Contributor
0 Kudos

some times during codeing u might get a req where u need to select some set, in such cases u can just build a range there and say XXX in Range R1.

Former Member
0 Kudos

SELECT-OPTIONS can be used with the CHECK field IN ... statement. RANGES cannot.

Rob

Former Member
0 Kudos

RANGES have to be declared when you want to put IF condition against a group of records.

suppose you wanna say IF a = 3 or a = 5 or a = 7 or a =11

you can do

ranges xxx for XXX

xxx-sign = 'I'

xxx-option = 'EQ'

xxx-low = 3

append xxx

xxx-sign = 'I'

xxx-option = 'EQ'

xxx-low = 5

append xxx

xxx-sign = 'I'

xxx-option = 'EQ'

xxx-low = 7

append xxx

xxx-sign = 'I'

xxx-option = 'EQ'

xxx-low = 11

append xxx

IF a IN xxx.

logic

ENDIF.

Former Member
0 Kudos

you would not like to create select options for the above requirement cuz then it will come on the selection screen.