title: Create a structure from a dynamically assigned <itab>
body: <p>In a method I have a reference to a table that was declared like this:</p>
  
  <pre><code>DATA: tabname TYPE tabname,
        dref    TYPE REF TO data,
  FIELD-SYMBOLS: &lt;itab&gt; TYPE ANY TABLE.
  
  CREATE DATA dref TYPE TABLE OF (tabname).
  ASSIGN dref-&gt;* TO &lt;itab&gt;.
  
  SELECT * FROM (tabname)
      UP TO 5 ROWS
    INTO TABLE &lt;itab&gt;.
  </code></pre>
  
  <p>How do I create a structure based on ?</p>