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

Quest

Former Member
0 Likes
705

Hi,

What is the main diff between Select options and ranges?

Thanks in advance

Rgds

venugopal

5 REPLIES 5
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
669

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..

Read only

Former Member
0 Likes
669

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

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
669

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

Read only

Former Member
0 Likes
669

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

Read only

Former Member
0 Likes
669

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