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: 

Quest

Former Member
0 Kudos

Hi,

What is the main diff between Select options and ranges?

Thanks in advance

Rgds

venugopal

5 REPLIES 5

Simha_
Employee
Employee
0 Kudos

Hi,

Basically select-options are used to refer the table fields and are diretcly linked to the table references...

If we want to define our own variables for the select options, then we use the Ranges options and define an internal table with all the fields we want and also the comparisions like inclusion, exclusion and all...

Cheers,

SImha.

Reward if helpful..

Former Member
0 Kudos

Select option and ranges are same technically. The only difference is that if you declare a variable as select option you will see it in the selection screen where as if you declare it as a range you wont.

Typically range is used when you want the features of a select option but do not want it to be displayed on the screen.

- Guru

Reward points for helpful points

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Select option is used in selection screen so that user can decide the input.

Ranges are also similar to select option.It cannot be used in selection screen.The input to ranges is mostly decided by developers.

Check this link.

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/ranges.htm

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_o.htm

Former Member
0 Kudos

Both SELECT-OPTIONS & RANGES works for the same purpose. They both are used for the range selection from selection screen. The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the select options internal table which contains the fields of SIGN,OPTION,LOW & HIGH. But in case of RANGES, this internal table should be defined explicitly.

Have a look at below link.

<a href="http://www.sap-img.com/abap/difference-between-select-options-ranges.htm">Difference between select-options and ranges</a>

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

Former Member
0 Kudos

Hi,

As everyone said, both does the same functionality.

In SELECT-OPTIONS, you can have additional features as whether to have INTERVALS, EXTENSION. You can also have MODIF-ID implemented for the SELECT-OPTIONS as it is displayed on the screen.

These options are not available with RANGES.

Regards

Subramanian