01-11-2007 4:03 AM
Hi,
What is the main diff between Select options and ranges?
Thanks in advance
Rgds
venugopal
01-11-2007 4:07 AM
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..
01-11-2007 4:09 AM
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
01-11-2007 4:11 AM
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
01-11-2007 4:22 AM
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
01-11-2007 5:02 AM
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