title: How to use EXPORT / IMPORT to Memory
body: <p>I'm trying to export a value for an enhancement inside a BAPI call, that is executed in a background update task. But the value is not being read inside the enhancement, however if I do a local test the value is read correctly from memory.</p>
  
  <p>Any ideas as to why this doesn't work?</p>
  
  <p>This is my code:</p>
  
  <p>Export program:</p>
  
  <pre><code>DATA: lv_id TYPE char30.
  
  CONCATENATE 'ZTCODE' sy-uname
    INTO lv_id.
  
  EXPORT ztcode FROM iv_tcode TO MEMORY ID lv_id.
  </code></pre>
  
  <p>Import program(inside enhancement):  </p>
  
  <pre><code>DATA: lv_tcode  TYPE sy-tcode,
        lv_id     TYPE char30.
  
  CONCATENATE 'ZTCODE' sy-uname
    INTO lv_id.
  
  IMPORT ztcode TO lv_tcode FROM MEMORY ID lv_id.
  </code></pre>