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

How many types of data classes are there in sap abap? : abap data dictionary

828


What is the use of start-of-selection.,if not use in report what will happen,?

1440


What is the disadvantage of using exec sql statement in abap?

775


Cds views

8071


What are the requirements a dialog program must fulfill?

857


How many types of tables exist and what are they in data dictionary?

845


How do you save data in bdc tables? : abap bdc

827


The max number of calling modes stacked at one time is?

843


How can a lock object be called in the transaction?

786


What takes most time in SAP script programming?

910


How can an internal table with header line and one without header line be distinguished when passed to a subroutine? : abap modularization

821


How to analysis Background Job for performance Issue?

974


Program for Prime numbers and Matrix plz explain me the procedural method with steps

2491


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

828


How to transfer the objects? Have to transferred any objects?

821