Creazione di un range manuale in base a dati reperiti attraveros select con alias (AS) e loop su tabella range con condizioni
SELECT prctr_l AS low prctr_h AS high
FROM zco_utprofit
INTO TABLE lr_profit
WHERE bukrs EQ lv_bukrs
AND ernam EQ sy-uname.
LOOP AT lr_profit ASSIGNING FIELD-SYMBOL(<lfs_range>).
<lfs_range>-sign = 'I'.
IF <lfs_range>-low IS NOT INITIAL
AND <lfs_range>-high IS NOT INITIAL.
<lfs_range>-option = 'BT'.
CONTINUE.
ENDIF.
<lfs_range>-option = 'EQ'.
ENDLOOP.