Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 20, 2007 at 11:04 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded