I have a main internal table ITAB:
I have casted the field DATA_STRING (with a pre-defined structure):
I have a range with one of the rows from above that needs to be deleted:
Code snippet:
LOOP AT itab ASSIGNING FIELD-SYMBOL(<fs1>).
ASSIGN <fs1>-data_string TO <fs2> CASTING.
IF <fs2>-number IN range[].
DELETE ITAB from <fs1>.
ENDIF.
ENDLOOP.
This might be a dumb question but is there a way to access and delete the row from ITAB without going through the loop? Something like
DELETE itab where data_string-number IN range[].
Or is there a way to directly extract DATA_STRING field to ITAB2 (image 2) without a loop?



If the range is filled correctly, it should work like this:
Full working simple: