title: Add line to dynamic internal table
body: <p>I want to add a dynamic table line to a dynamic internal table.</p>
  
  <pre><code>DATA: lo_structdescr    TYPE REF TO cl_abap_structdescr,
        lo_tabledescr     TYPE REF TO cl_abap_tabledescr,
        lt_components     TYPE abap_component_tab,
        ls_component      TYPE LINE OF abap_component_tab,
        lt_keys           TYPE abap_keydescr_tab,
        lt_table          TYPE REF TO data,
        ls_table          TYPE REF TO data.
  
  FIELD-SYMBOLS: &lt;ls_table&gt;  TYPE any,
                 &lt;lt_table&gt;  TYPE ANY TABLE,
                 &lt;lv_value&gt; TYPE any.
  
  
  MOVE 'COMP1' TO ls_component-name.
  ls_component-type ?= cl_abap_elemdescr=&gt;get_string( ).
  INSERT ls_component INTO TABLE lt_components.
  
  MOVE 'COMP2' TO ls_component-name.
  ls_component-type ?= cl_abap_elemdescr=&gt;get_i( ).
  INSERT ls_component INTO TABLE lt_components.
  
  lo_structdescr ?= cl_abap_structdescr=&gt;create( lt_components ).
  
  CREATE DATA ls_table TYPE HANDLE lo_structdescr.
  ASSIGN ls_table-&gt;* TO &lt;ls_table&gt;.
  
  lo_tabledescr ?= cl_abap_tabledescr=&gt;create( p_line_type  = lo_structdescr
                                               p_table_kind = cl_abap_tabledescr=&gt;tablekind_hashed
                                               p_unique     = abap_true
                                               p_key        = lt_keys
                                               p_key_kind   = cl_abap_tabledescr=&gt;keydefkind_default ).
  
  CREATE DATA lt_table TYPE HANDLE lo_tabledescr.
  ASSIGN lt_table-&gt;* TO &lt;lt_table&gt;.
  
  
  ASSIGN COMPONENT 'COMP1' OF STRUCTURE &lt;ls_table&gt; TO &lt;lv_value&gt;.
  &lt;lv_value&gt; = 'test'.
  
  APPEND &lt;ls_table&gt; TO &lt;lt_table&gt;.
  </code></pre>
  
  <p>The last line is the problem. I get this syntax error:</p>
  
  <blockquote>
    <p>You cannot use explicit or implicit index operations on tables with
    types "HASHED TABLE" or "ANY TABLE". "&lt;LT_TABLE>" has the type "ANY
    TABLE". It is possible that the "TABLE" addition was not specified
    before "&lt;LT_TABLE>".</p>
  </blockquote>
  
  <p>How am I supposed to add a line to the table?</p>