Save info in TXT file

Hi.

I have this:

 

concatenate lv_ruta_down ” lv_filename into fname.
open dataset fname for output in text mode encoding default.

IF sy-subrc <> 0.
WRITE ‘ERROR’.
EXIT.
endif.

loop at t_bsik into gw_bsik.

*do some suff and concatenations
*and concatenate the final values

concatenate
‘C’
‘XPTO’
gw_bsik-WAERS
l_cur
gw_bsik-XBLNR
into lv_line SEPARATED BY ‘|’.
transfer lv_line to fname.

endloop.
close dataset fname.

 

 It goes to the end without any error, and the name is set to “c:tempfileresult.txt’, but no file is created.

any clue?

Scroll to Top