08-20-2007 11:58 AM
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
08-20-2007 12:04 PM
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.
08-20-2007 12:21 PM