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

Does every abap/4 have a modular structure? : abap modularization

918


Reports: Event functionality.

1123


Can we create a gui status in a program from the object browser?

856


What are the difference between tables and structures? : abap data dictionary

936


What are the different database integrities?

811


Can you show multiple alvs on a single screen?

851


Define spool request?

886


What actually happens in real-time recruitment? : sap abap hr

823


What is the difference between bdc_open_group and bdc_open_dataset. : abap bdc

879


How would you set the formatting options statically and dynamically within a report?

889


while implementing badi what are the tables u find??

3866


What is sap abap data classes?

830


what is sap scriptview ?

1982


send coding to write a program to create customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA2/BAPI_QUOTATION_CREATEFR OMDATA'

2643


Explain what is the purpose of sap script?

810