whats the difference between range & select-option??

Answer Posted / parthan_feb25

mainly Select-options is used for selection screen..
where as ranges is used inside the program..

Ranges cannot visible in selection screen

Functionality wise there is no difference except SELECT-
OPTIONS are visible in the selection screen while Ranges
are not visible.

Both have same structure.

One restriction in Ranges is u can't use Range in Select
query if it has more than 2000 entries.

Ranges are used just like we use temporary internal tables.
eg: If u want to check for say 10 ranges in select query
for some field which is not there in ur selection screen
then u will populate the ranges and use it in the select
query. Syntax will remain same as select option.

RANGES: r_vbeln FOR vbak-vbeln.

r_range-sign = 'I'.
r_range-option = 'BT'.
r_range-low = 123.
r_range-high = 321.
APPEND r_range.

like this append all the ranges u want.

SELECT field list FROm vbak INTO TABLE i_vbak
WHERE vbeln IN r_vbeln.

Is This Answer Correct ?    23 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the components of selection table?

648


How many types of views are there ?

655


What are the functional areas? User groups? and how does ABAP query work in relation to these?

717


A field containing quantity amounts (data type quan) must be assigned to a reference table and a reference field. Explain? : abap data dictionary

683


What is the difference between field-group header and other field groups? : abap modularization

576






What are the internal tables and work area?

558


What is the advantage of structures?

593


How we format the data before before write statement in report ?

558


What is the significance of hide?

586


What is asynchronous update?

588


What is the function of the transport system and workbench organizer?

673


Can a filed occur in several field groups?

593


What is the function of the transport system and workbench organiser? : abap data dictionary

620


How do you process errors in session method ? : abap bdc

592


What are two methods of modifying sap standard tables? : abap data dictionary

686