title: ABAP OPEN DATASET and TRANSFER
body: <p>I am trying to create a new file with the information that i will extract from my BD.</p>
  
  <pre><code>CONCATENATE cdf ndf
  INTO cdf.
  
   OPEN DATASET cdf for APPENDING IN LEGACY TEXT MODE WITH SMART LINEFEED.
    IF sy-subrc = 0.
        TRANSFER wa_es_tabt TO ndf.
        CLOSE DATASET cdf.
     ENDIF.
  </code></pre>
  
  <p><code>CDF</code> = the path of my file with the name that the user will put </p>
  
  <p><code>NDF</code> = the name the user will put</p>
  
  <p><code>wa_es_tabt</code> = db information that I intend to save as txt.</p>
  
  <p>but the <code>sy-subrc</code> is always 8, file not open... why?</p>
  
  <p>thanks...</p>