I'm creating an output file and I need it to have a LF, but not CR at the end of file. Each file line has 500 characters and I need to assign LF to the position +499(1).
I have tried to assign x_file+499(1) = CL_ABAP_CHAR_UTILITIES=>NEWLINE, but it doesn't work. The LF appears next to the last written character.Example: COMPANY20161010WERKSLF (not what I want).
Here is my statment to write the file to a UNIX system:
OPEN DATASET v_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT WITH NATIVE LINEFEED.
What would you guys suggest?