Skip to Content

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

Remove line feed from Unicode program

Hi

I wish to remove the hex value '0D' from a string by using the replace command. However, in my LSMW program that is gernerated, the 'Unicode Checks Active' flag is set by default do my current code (below) fails.

form ur_REMOVE_LINEFEED

changing p_out.

data: lv_hex type x value '0D'.

replace lv_hex with space into p_out.

endform.

I have tried using the attributes NEWLINE and CR_LF of class CL_ABAP_CHAR_UTILITES but neither works.

This program ran perfectly in our 46C system but not since the upgrade to ECC6 and the defaulted prgram attribute.

Can anyone help?

Cheers

Ian

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