Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to upload .csv file with tab as delimiter.

$
0
0

HI,

I want to upload a .csv file with tab as delimiter to unix path in background.                                                                                                             

 

I know there is function module 'GUI_UPLOAD', but in my case data is available in an internal table .

 

upload the *.CSV :

 

OPEN DATASET lv_filename

         FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

 

    IF sy-subrc = 0.

 

  *     Write  file records into file on application server

      LOOP AT gt_datatab INTO gs_datatab.

        TRANSFER gs_datatab TO lv_filename.

      ENDLOOP.

 

CLOSE DATASET lv_filename.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>