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
What are two different ways to add fields to sap tables?
How are the function code handles in flow logic?
What are the two methods for modifying sap standard tables?
If a table that is to be extended contains a long field, we cannot use append structures why? : abap data dictionary
How do you take care of performance issues in your ABAP programs?
What are the Control levels in internal tables?
What are the 3 types of function modules in sap?
What is the difference between a substructure and an append structure? : abap data dictionary
Can you print decimals in type n?
How to transfer data into line items using batch input session method? : abap bdc
I created a field and entered the field type, when I double clicked the field type to define the domain; it is asking for an ACCESS KEY, I am not changing any SAP defined tables, working on a user defined table.
How the transaction that are programmed by the user can be protected?
What is the difference between sy-tabix and sy-index? Where it is used?
What are the two levels in defining a match code ?
Can i have some Realtime Scenarios on Reports.