09-12-2008 12:54 PM
Hi experts,
Can u explain me wat is the difference b/w select options & Ranges.
Thanks.
09-12-2008 12:56 PM
Farook
Select-options will have data from Selection Screen... whereas in Ranges, developer has to fill the data through coding.... Rest is same..
Thanks
Amol Lohade
09-12-2008 12:56 PM
Farook
Select-options will have data from Selection Screen... whereas in Ranges, developer has to fill the data through coding.... Rest is same..
Thanks
Amol Lohade
09-12-2008 12:57 PM
Hi,
Functionally both are same. Select options appears on screen but range won't. Range just acts as normal variable with select option structure.
One limitation is when u use range in select query if u have more than 2000 entries in the range u will get a dump where as this restriction is not there with select option.
Hope it is clear.
thanks,
Vinod.
09-12-2008 12:59 PM
09-12-2008 12:59 PM
Hi Farook,
Both are same for ranges, select-options is for your selection criteria in selection screen to be entered by the user and ranges ( obsolete now) is used in the program itself , its used as a variable in your program .
also refer to the link:
http://www.sap-img.com/abap/difference-between-select-options-ranges.htm
With luck,
Pritam.
09-12-2008 1:00 PM
09-12-2008 1:04 PM
Hi,
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.
hope its helps
09-12-2008 1:05 PM
Hi Farook,
SELECT-OPTIONS - On the selection screen, you can declare
RANGES on the selection screen.
RANGES - Inside the program, if you want to have variable with RANGES option, use the RANGES variable. You cannot declare and use SELECT-OPTIONS inside the program.
SELECT-OPTIONS: Declare an internal table that is also linked to input fields on a selection screen
RANGES: Declare an internal table with the same structure as in select-options, but without linking it to a selection screen.
Refer the following link:
http://72.14.203.104/search?q=cache:btyoj86smhEJ:www.sap-img.com/abap/difference-between-select-opti...Select-optionsandrangesIN+ABAP&hl=en&gl=in&ct=clnk&cd=1
http://www.sap-img.com/abap/difference-between-select-options-ranges.htm
Hope this will help.
Regards,
Nitin.
Edited by: Nitin Karamchandani on Sep 12, 2008 2:05 PM
09-15-2008 11:46 AM
They are similar but select-options is a more easy way when you create parameters because you don't need to define range parameters.
Using range you need to fill the structure