It is possible in ABAP to make a select and include a hard code value and to put a value in any field.
In my exemple i have to fill a range with Company code BUKRS according to VKORG so i have to do a select on TVKO like that:
DATA : lt_rtvko TYPE RANGE OF bukrs.
SELECT 'I' as sign 'EQ' as option bukrs as low
INTO CORRESPONDING FIELDS OF TABLE lt_rtvko
FROM tvko
WHERE vkorg EQ p_vkorg.
But i have a dump.
I know a longer solution to do this, To fill manually a table of TVKO and make a LOOP to fill the range, BUT i am sure that we have a solution to do that in one operation like in my example.
Thanks, Experts.