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 - How to pass character variable to hex variable?

Former Member
0 Likes
379

Hi,

DATA : XTAB(2) TYPE x,

XSEPARATOR(1) TYPE c.

How do I transfer contents of XSEPARATOR into XTAB without causing a Unicode error? I have read that a Class CL_ABAP_CHAR_UTILITIES can be used, but I dont know how ...

1 REPLY 1
Read only

Former Member
0 Likes
283

You are correct. For hex values in the unicode system we have to use CL_ABAP_CHAR_UTILITIES. This class has ATTRIBUTES for horizontal tab, vertical tab, etc.. Use TCODE SE24 to see these in detail.

Horizontal tab: CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB, etc..