Application Development and Automation 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: 
Read only

Unicode X type variable problem

Former Member
0 Likes
482

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
436

data: con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.

replace con_cret with ' ' into string1.

2 REPLIES 2
Read only

Former Member
0 Likes
436

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

Read only

Former Member
0 Likes
437

data: con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.

replace con_cret with ' ' into string1.