Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: Open dataset with Windows linefeed in 4.6C

$
0
0

Thanx Christian,

Thanx Gaurab,

 

Yours answers have been very valuable.

 

In fact I have inserted following code in my dev :

 

  constants: gc_tab     type x value '09',   " TABulation

             gc_lf(1)   type x value '0A',   " CR  Chariot Return

             gc_cr(1)   type x value '0D',   " LF  (not in TEXT MODE !)

             gc_crlf(2) type x value '0D0A'. " CRLF

 

 

  loop at itab .

 

<Some transformations any type -> Char var>

 

      clear : gs_output , ls_output .

      concatenate  '"'  lv_matnr '",'

                   '"' lv_kunnr  '",'

                       lv_datem   ','

                       lv_qty_hl

                       gc_cr        " Chariot return

              into ls_output-lines.

      if sy-subrc eq 0 .

        gs_output = ls_output .

      endif.

      append gs_output to gt_output .

    endloop .

 

<....>

  OPEN DATASET p_filout FOR OUTPUT IN TEXT MODE  MESSAGE lv_msg .

 

    LOOP AT gt_output INTO gs_output .

      TRANSFER gs_output TO p_filout .

    ENDLOOP .

 

 

    CLOSE DATASET p_filout .


Viewing all articles
Browse latest Browse all 10425


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