Application Development 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: 

I have convert problem . Ascii To Char

Former Member
0 Kudos

Hi Abaper ;

I have convert problem . URL_ASCII_CODE_GET fucntion get ascii code that's ok .

But I have ascii code I must find ascii code's character .

You know function or anyway set character from ascii code .

(Can You say ascii character table example : ' character's Ascii code 21 )

Thank All Answer.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use this

cl_abap_conv_in_ce=>uccp( '<ur ascii code' ).

кu03B1ятu03B9к

3 REPLIES 3

Former Member
0 Kudos

Use this

cl_abap_conv_in_ce=>uccp( '<ur ascii code' ).

кu03B1ятu03B9к

I355602
Advisor
Advisor
0 Kudos

Hi,

Check this code for converting character to ASCII and back to character


PARAMETERS: a TYPE c.
DATA asc2 TYPE i.
 
FIELD-SYMBOLS: <fs> TYPE x, <fc> TYPE c.
ASSIGN a TO <fs> CASTING.
 
MOVE <fs> TO asc2.
asc2 = asc2 + 1.
 
DATA x(4) TYPE x.
MOVE asc2 TO x.
 
ASSIGN  asc2 TO <fc> CASTING type c.
 
DATA str(1) TYPE c.
MOVE <fc> TO str.
 
WRITE str.

Hope this helps you.

Regards,

Tarun

Former Member
0 Kudos

Firstly Thanks All Aswer .

Both is solved but I chooice first answer ( Because it is first answer )