I'm trying to use this SELECT statement in ABAP:
SELECT DISTINCT * FROM dbtab
INTO CORRESPONDING FIELDS OF TABLE itab
WHERE field1+7(16) IN s_field1
AND field2 IN s_field2.
but I can't use offset for a dbtab column. How can I solve this problem?
I'm trying to avoid loop like
SELECT DISTINCT * FROM dbtab
WHERE field2 IN s_field2.
IF field1+7(16) IN s_field1
...
endif.
endselect.
s_field1+7(16)
? A list of values or is it a complex selection (greater then, patterns...)? The solution in my comment would be (more or less) easy for ranges and single values. patterns etc. may become more difficult. – Skyscraper