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
366

Hi,

The following statements are present which gives a unicode errors.

I tried to change the code for unicode enablement , but it gives error.

i checked the cl_abap_utilities, for 09 , the value is value cl_abap_char_utilities=>HORIZONTAL_TAB

and i used function module to check value of 3B, =the o/p gives the value ' ;' .

so can i concatenate p(horizontal_tab) and q(value ';') into s and use the variable s as replacement of trhex? the value s will contain '#;; which is desired i guess.

Please check.

Data Trhex(4) TYPE x VALUE '093B'.

Translate Lt_Buffer-Line Using Trhex.

Regards

Sachin

1 REPLY 1
Read only

former_member435013
Active Participant
0 Likes
323

Hi,

is this useful for you:

DATA:

BEGIN OF lt_buffer OCCURS 0,

line(255),

END OF lt_buffer,

trhex(2) TYPE c,

tab.

trhex+0(1) = cl_abap_char_utilities=>horizontal_tab.

trhex+1(1) = ';'.

tab = cl_abap_char_utilities=>horizontal_tab.

CONCATENATE 'Duffy' tab 'Duck' INTO lt_buffer-line.

WRITE: / lt_buffer-line.

TRANSLATE lt_buffer-line USING trhex.

WRITE: / lt_buffer-line.

regards

Walter Habich