Skip to Content
0

Application server file format issue on Notepad and Notepad++

May 17 at 11:58 AM

31

avatar image

Hi Experts ,

Recently I have been facing an issue on transferring data from internal table to application server file.

That file format is looks good in notepad but in notepad++ it adds blank row after each record.

Please find the code details below and share your thoughts on that.

Internal table :

TYPES : BEGIN OF lty_mara,
material_no TYPE mara-zznamatnr,
partnumber_new(30) TYPE c,
partnumber_old(30) TYPE c,
manufacturer(35) TYPE c,
END OF lty_mara.

OPEN DATASET p_otfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
CLEAR lv_string.
IF lwa_mara_header IS NOT INITIAL.
CONCATENATE lwa_mara_header lv_cr_lf INTO lv_string.
TRANSFER lv_string TO p_otfile.
ENDIF.
LOOP AT ltt_mara_new INTO lwa_mara_new.
CLEAR lv_string.
CONCATENATE lwa_mara_new lv_cr_lf INTO lv_string.
TRANSFER lv_string TO p_otfile.
ENDLOOP.
CLOSE DATASET p_otfile.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers