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

select-options and Ranges

Former Member
0 Likes
1,265

Hi,

Can you send me the differences between select-options and Ranges

Thanks in advance

Hi,

Can you send me the differences between select-options and Ranges

Thanks in advance

8 REPLIES 8
Read only

Former Member
0 Likes
1,053

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

The difference is, because ranges doesn't show on the selection screen, you will have to fill it yourself, meaning you will have to fill fields sign, option, low & high all manually.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

Former Member
0 Likes
1,053

Hi Raja ,

Select option is same as ranges .

The only diff i can say is select-options is used in selection screen where as ranges can be created in your program and then used for further processing.

You can define a range in your program in this was

data : r_matnr type range of matnr.

Regards

Arun

Read only

Read only

Former Member
0 Likes
1,053

chk this wiki FAQ from SDN

How are RANGES different from SELECT-OPTIONS?

They are the same, except SELECT-OPTIONS will provide an interface

on the selection screen for the user to input data.

also chk this link for more of them

https://www.sdn.sap.com/irj/sdn/wiki

Message was edited by:

chandrasekhar jagarlamudi

Read only

Former Member
0 Likes
1,053

Hi,

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.

FOR FURTHER DOCUMENTATION PLEASE GO THROUGH THE LINK

Difference Between Select-Options & Ranges

Statical Declaration

Selection tables

Regards,

pankaj singh.

reward if helpful

Read only

Former Member
Read only

Former Member
0 Likes
1,053
Read only

Former Member
0 Likes
1,053

Hi Raja Reddy,

There is no difference between SELECT-OPTIONS and RANGES in functionality wise.

Generally SELECT-OPTIONS keyword related with SELECTION-SCREEN and RANGES Keyword related with Program and Function modules.

Regards

Bhupal Reddy