‎2005 Jan 20 4:26 PM
I want to read 200 registers of a table into an internal table, but 50 are limited to 90 kwh, 50 >90 kwh and <100kmw,....
ex:
select * into ita_reg from z where cod < 90.
endselect.
select * into ita_reg from z where (cod < 100 and cod >90).
endselect.
...
how can i do it?
‎2005 Jan 20 4:37 PM
‎2005 Jan 20 4:37 PM
‎2005 Jan 20 4:40 PM
You can use Ranges
RANGES wa_z FOR marc-matnr.
CLEAR wa_z.
wa_z-sign = 'I'.
wa_z-option = 'BT'.
wa_z-low = 90.
wa_z-high = 100.
APPEND wa_z.
Then:
Select *
INTO TABLE ita_reg
FROM z
WHERE cod IN wa_z.
Hope this works for you.