Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Application server file format issue on Notepad and Notepad++

former_member314998
Participant
0 Kudos

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.

0 REPLIES 0