‎2006 Jul 27 7:45 PM
Hi,
We are migrating to a Unicode system.
In non Unicode system we have the following code.
var1 type x value '0D'.
replace var1 with ' ' into string1.
When i am doing uccheck it is giving error 'var1 must be charecter type'.
how to solve this problem.
Thanks,
Koshal
‎2006 Jul 27 7:56 PM
data: con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
replace con_cret with ' ' into string1.
‎2006 Jul 27 7:50 PM
Hi Koshal,
1) Use Function module <b>STPU1_HEX_TO_CHAR</b> to convert hex decimal data to character data.
2) And then use <b>REPLACE</b> statement.
Thanks,
Vinay
‎2006 Jul 27 7:56 PM
data: con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
replace con_cret with ' ' into string1.