I have a Program that downloads a file using TRANSFER statement. When I use the method,
CL_ABAP_CHAR_UTILITIES=>cr_lf, it writes "CR LF" at the end of the file when viewed in notepad. Is there a way or any field in the method that I can use for having just "CR" at the end of each line of the file?
Here is part of the code...
DATA: BEGIN OF TREC,
STRING(299),
CARRIAGE_RETURN(1) TYPE c,
END OF TREC.
LOOP AT TEMPTEST INTO TEMPTEST.
MOVE TEMPTEST-FLD001 TO TREC-STRING+0(1).
MOVE TEMPTEST-FLD002 TO TREC-STRING+1(3).
MOVE TEMPTEST-FLD003 TO TREC-STRING+4(2).
MOVE TEMPTEST-FLD004 TO TREC-STRING+6(10).
MOVE TEMPTEST-FLD005 TO TREC-STRING+16(1).
MOVE TEMPTEST-FLD006 TO TREC-STRING+17(1).
MOVE TEMPTEST-FLD007 TO TREC-STRING+18(1).
MOVE TEMPTEST-FLD008 TO TREC-STRING+19(1).
MOVE TEMPTEST-FLD009 TO TREC-STRING+20(10).
MOVE TEMPTEST-FLD010 TO TREC-STRING+30(10).
MOVE TEMPTEST-FLD011 TO TREC-STRING+40(6).
MOVE TEMPTEST-FLD012 TO TREC-STRING+46(35).
MOVE TEMPTEST-FLD013 TO TREC-STRING+81(21).
MOVE TEMPTEST-FLD014 TO TREC-STRING+100(198).
MOVE CL_ABAP_CHAR_UTILITIES=>cr_lf TO TREC-CARRIAGE_RETURN.
TRANSFER TREC TO PI_A_FILENAME LENGTH 300 NO END OF LINE.
ENDLOOP.
Thanks!