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

Converting a Unicode code point to an ABAP character?

Former Member
0 Likes
2,065

Is there a SAP-supplied mechanism for converting a Unicode code point (i.e. an integer in the range 0 - 1,114,111 (= 0x10FFFF)) to the corresponding ABAP character? I would expect this to work in both Unicode and non-Unicode systems. The conversion should always be successful in a Unicode system. It might fail in a non-Unicode system if the specified character were not in the current code page.

Thanks.

?David Rosenberg <[email protected]>

Is there a SAP-supplied mechanism for converting a Unicode code point (i.e. an integer in the range 0 - 1,114,111 (= 0x10FFFF)) to the corresponding ABAP character? I would expect this to work in both Unicode and non-Unicode systems. The conversion should always be successful in a Unicode system. It might fail in a non-Unicode system if the specified character were not in the current code page.

Thanks.

?David Rosenberg <[email protected]>

3 REPLIES 3
Read only

Former Member
0 Likes
1,092

Hi,

I`m not sure about the unicode conversion, but you can obtain the ascii values of a character..

Reward if helpful.

Rgds

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,092

Hello David

Have a look at the static methods of class <b>CL_ABAP_CONV_IN_CE</b>:

- UCCP: Returns a Character for a Unicode Code Point

- UCCPI: Returns a Character for a Unicode Code Point

Other classes that may be useful too at the interface unicode - non-unicode are:

- CL_ABAP_CONV_OUT_CE

- CL_ABAP_CONV_X2X_CE

Regards

Uwe

Read only

Laxmana_Appana_
Active Contributor
0 Likes
1,092

Hi,

Check this link :

Regards

Appana