Convert ASCII to Char in ECC 6.00

DATA: class_convert TYPE REF TO cl_abap_conv_in_ce,
      ascii        TYPE x,
      char(10)  TYPE c.

ascii = '41'. "hurfu A

class_convert = cl_abap_conv_in_ce=>create( encoding = 'UTF-8' ).

class_convert->convert( EXPORTING input = ascii
                        IMPORTING data  = char ).

WRITE: / char.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s