‎2007 Nov 02 8:39 AM
Hi friends,
How to see the ASCII Values.
or
i want to convert ASCII to ordinary char.
Thanks & regards,
vallamuthu
‎2007 Nov 02 8:48 AM
Hi,
try,
data : c value 'A'.
field-symbols : <n> type x.
data : rn type i.
assign c to <n> casting.
move <n> to rn.
write rn.
This will convert 'A' to 65.
check this link:
http://www.sap-img.com/abap/how-can-i-get-ascii-value-of-any-letter.htm
Reward if usefull.
Thanks,
Swati
‎2007 Nov 02 8:48 AM
Hi,
try,
data : c value 'A'.
field-symbols : <n> type x.
data : rn type i.
assign c to <n> casting.
move <n> to rn.
write rn.
This will convert 'A' to 65.
check this link:
http://www.sap-img.com/abap/how-can-i-get-ascii-value-of-any-letter.htm
Reward if usefull.
Thanks,
Swati
‎2007 Nov 02 8:50 AM
Hi,
*going from 66 to B
data : i type i value 66.
data : x type x.
field-symbols : <fc> type c.
move i to x.
assign x to <fc> casting type c.
move <fc> to c.
write c.
Thanks,
Swati
‎2007 Dec 18 8:09 AM
Hi, Swati.
I tried your method, but the compiler give me an error : The length of 'X' in bytes must be a multiple of the Unicode character(regardless of the size of the Unicode charecter).
Now I don't know how to solve this problem, can you help me?
Thanks in advance.