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: 

Remove line feed from Unicode program

IanStubbings
Active Participant
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Hi Ian,

Instead try using CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

This should provide you with space instead of line.

<i>Reward if helpful.</i>

Best Regards,

Ram.

0 Kudos

Thanks. I'll test it out and let you know.

Ian