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

type x value '2C'

Former Member
0 Likes
733

hi experts,

type x value '2C' abap unicode

how we can convert into char.

regards,

praveen

5 REPLIES 5
Read only

Former Member
0 Likes
675

Find function XSTRING_TO_STRING

Read only

former_member203501
Active Contributor
0 Likes
675

use this..

HR_KR_XSTRING_TO_STRING

Read only

former_member194669
Active Contributor
0 Likes
675

Check this


report  zaRs no standard page heading
        line-size 170
        line-count 65(4).

data: content    type string ,
      xcontent   type xstring.

xcontent = '2C'.
data: conv   type ref to cl_abap_conv_in_ce.
conv = cl_abap_conv_in_ce=>create( input = xcontent ).
conv->read( importing data = content ).
write : content.

a®

Read only

BH2408
Active Contributor
0 Likes
675

Hi,

i think XSTRING_TO_STRING is not exists try for this ....

HR_KR_XSTRING_TO_STRING.

Regards,

bharani

Read only

Former Member
0 Likes
675

Hi Praveen,

Try with the following FM:

STPU1_HEX_TO_CHAR

Hope this will help.

Regards,

Nitin.