Code: Alles auswählen.
DATA:
lr_kostl TYPE RANGE OF kostl,
lw_kostl LIKE LINE OF lr_kostl.
*alt
*RANGES: lr_kostl FOR csks-kostl.
lw_kostl-sign = 'I'.
lw_kostl-option = 'BT'.
lw_kostl-low = <bsp-kostl-low>.
lw_kostl-high = <bsp-kostl-high>.
INSERT lw_kostl INTO TABLE lr_kostl.
SELECT * FROM csks
WHERE kostl IN lr_kostl.
ENDSELECT. "wird nur aus didatischen Gründen hier verwendet!