I have the name of a table DATA lv_tablename TYPE tabname VALUE 'xxxxx'
, and a generic FIELD-SYMBOLS: <lt_table> TYPE ANY TABLE.
which contains entries selected from that corresponding table.
I've defined my line structure FIELD-SYMBOLS: <ls_line> TYPE ANY.
which i'd use for reading from the table.
Is there a way to create a READ statement on <lt_table>
fully specifying the key fields?
I am aware of the statement / addition READ TABLE xxxx WITH KEY (lv_field_name) = 'asdf'.
, but this however wouldn't work (afaik) for a dynamic number of key fields, and I wouldn't like to create a large number of READ TABLE
statements with an increasing number of key field specifications.
Can this be done?