Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Need to insert line feed for a text file

Hi all,

I am sending a text file as an attachment.

There is one particular line which is more than 255 characters.

So, I have taken the strlen of this line. If it is more than 255, I have put it into the next line and have inserted a '- into the 255th character'. Now I have used c_cret TYPE x VALUE '0D' as the line feed. This has caused an extra carriage return (0D) on the same line in character 256 to appear. This caused some problem because it will cause the remaining data to be ‘carriage return’ to a line and the record position will reset from 1 instead of continuing with char 257,258,259.

Please let me know if I can remove the carriage return (0D) character.

I suppose 0D and 09 are used for excel attachment. However, in my case it is a text file.

Please help.

Thanks and regards,

Anishur

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question