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 error

Former Member
0 Likes
428

Hi All,

I got the following error in upgradation.

"C_DEL" must be a character-type data object (data type C, N, D, T or STRING) .

The code is like this.

data: v_string(1022), " String to read the data from

" the file

constants: C_DEL TYPE X VALUE '09', " Delimiter

split v_string at c_del into v_temp "Temporary subitem

v_cuname "component unit name

v_etcdata. " Extra data like #...

Please help me to fix this issue.

Thanks,

Naveen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
410

Hi,

To avoid this problem dont declare any variable of type x, you can use CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB instead.

which means

split v_string at CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB into v_temp "Temporary subitem

v_cuname "component unit name

v_etcdata. " Extra data like #...

Hope this will solve your problem

Rgds,

Bujji

2 REPLIES 2
Read only

Former Member
0 Likes
411

Hi,

To avoid this problem dont declare any variable of type x, you can use CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB instead.

which means

split v_string at CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB into v_temp "Temporary subitem

v_cuname "component unit name

v_etcdata. " Extra data like #...

Hope this will solve your problem

Rgds,

Bujji

Read only

0 Likes
410

Hi Bujji,

Thanks for reply. It is working.

Naveen.