title: How to download data with conversion exit?
body: <p>I try to download an internal table to my PC and the download should use the conversion exits.</p>
  
  <p>An example:
  Table <code>T002</code> contains a language key with one character (T0002-SPRAS).</p>
  
  <p>When I <code>WRITE T0002-SPRAS.</code> the conversion routine <code>ISOLA</code> is used and I get a two character language key (<em>E</em> becomes <em>EN</em>...)
  This conversion routine should be used for my export.</p>
  
  <p>My test report:</p>
  
  <pre><code>REPORT  Y_MY_DOWNLOAD_TEST.
  
  CONSTANTS: c_filename type string VALUE 'C:\temp\test.txt'.
  data: it_table type table of t002.
  
  start-of-selection.
  
    SELECT * from t002 into table it_table.
  
  * Start file download
    CALL METHOD cl_gui_frontend_services=&gt;gui_download
      EXPORTING
        filename                  = c_filename
        filetype                  = 'ASC' "or DAT
        WRITE_FIELD_SEPARATOR     = 'X'
        WRITE_LF                  = 'X'
  *      DAT_MODE                  = SPACE
        codepage                  = '4110'        "UNICODE
        SHOW_TRANSFER_STATUS      = 'X'
        WRITE_LF_AFTER_LAST_LINE  = 'X'
      CHANGING
        data_tab                  = it_table
      EXCEPTIONS
        OTHERS                    = 99.
  
    write: 'end'.
  </code></pre>
  
  <p>The result is a file without the usage of the conversion exit (English keeps <em>E</em>).</p>
  
  <p>The <a href="http://help.sap.com/saphelp_tm80/helpdata/en/c7/5ab8ec178c44a8aacd1dcac3460db8/frameset.htm" rel="nofollow">SAP documentation</a> mention the parameter <code>dat_mode</code>:</p>
  
  <blockquote>
    <p>If this flag is set, .... Conversion exits are not executed.</p>
  </blockquote>
  
  <p>I don't set the flag,so I would expect, the conversions are done.
  I tried different combinations (<code>dat_mode</code> on/off, <code>filetype</code> ASC and DAT), but I found never a conversion.</p>
  
  <p>Remarks:</p>
  
  <ul>
  <li>I use SAP Release 7.01, Support Package SAPKB70107. It is a unicode system.   </li>
  <li>T002 is only an example, my real data are other data, containing language key.</li>
  </ul>
  
  <p>I'm looking for a solution with <code>gui_download</code> (or another standard method/function module).</p>
  
  <p>I don't want to build my own export file like this:</p>
  
  <pre><code>data: 
    tmp type string,
    targetline type string,
    targettable type table of string.
  loop at it_table into sourceline.
    "This could be done dynamic with field symbols and ASSIGN COMPONENT
    write sourceline-field1 to tmp. 
    CONCATENATE targetline ';' tmp into targetline.
    "...
    APPEND targetline to targettable.
  endloop.
  </code></pre>
  
  <p>This will be a possible solution, but in this case it would be easier for me to adapt the consumer of the export file.</p>