How to dynamically call FOR ALL ENTRIES
DATA: lt_table TYPE STANDARD TABLE OF fieldname.
CONCATENATE lv_key_field ‘= lt_table-table_line’
INTO lv_where SEPARATED BY space.
APPEND lv_where TO lt_where.
SELECT fieldname
FROM (lv_table)
INTO TABLE lt_output
FOR ALL ENTRIES IN lt_table
WHERE (lt_where).