title: MOVE-CORRESPONDING for internal tables?
body: <p>I want <code>MOVE</code> fields from <code>itab1</code> to <code>itab2</code> based on their <strong>field names</strong>. I have tried following:</p>
  <pre><code>CLEAR itab2.
  MOVE-CORRESPONDING itab1 TO itab2.
  </code></pre>
  <p>This is working out, but only as long as the <code>FIELDS</code> are named equal.</p>
  <p>Now I want to to something like that:</p>
  <pre><code>CLEAR itab2.
  MOVE-CORRESPONDING itab1-field1 TO itab2-field2.
  MOVE-CORRESPONDING itab1-field3 TO itab2-field4.
  </code></pre>
  <p>and so on.. But each time I try to do that I get following error <code>&quot;itab1-field1&quot; is not a structure or an internal table.</code></p>
  <p>I have also tried to write it like this <code>MOVE-CORRESPONDING &lt;itab1&gt;-field1</code> but this doesn't work either.</p>
  <p>How can I achieve what I want? Thanks for trying helping me out..</p>