SAP DATA RANGES ABAP Statements
Get Example source ABAP code based on a different SAP table
DATA - RANGE OF
• RANGE OF DATA
• RANGE OF CLASS-DATA
• RANGE OF STATICS
• RANGE OF CONSTANTS
ABAP_BASIC_FORM_6
What does it do? This statement defines a
The
Latest notes:Outside of classes, you can also use the addition
The declaration of a ranges table with the statement
Example ABAP Coding
In this example, a ranges table is declared, filled, and evaluated in the
r_carrid TYPE RANGE OF spfli-carrid,
r_carrid_line LIKE LINE OF r_carrid.
r_carrid_line-sign = 'I'.
r_carrid_line-option = 'BT'.
r_carrid_line-low = 'AA'.
r_carrid_line-high = 'LH'.
APPEND r_carrid_line TO r_carrid.
SELECT *
FROM spfli
INTO spfli_wa
WHERE carrid IN r_carrid.
...
ENDSELECT.
Return to menu