04-24-2006 12:29 PM
Hello,
I have a requirement in which I have to get the ASCII code for the input character.
How can I find the ASCII code for the character?
04-24-2006 12:31 PM
04-24-2006 12:31 PM
04-24-2006 12:33 PM
04-24-2006 12:38 PM
Hello,
I am writing a Function module for calculating CheckSum for printing BarCode.
For that purpose I have to get ASCII code for each character.
i.e. HI
for this i want the barcode of H as well as I which are 40 and 41. with this I have to do some calculation.
I tried the function module which you gave but its not giving the desired output.
04-24-2006 12:33 PM
04-24-2006 12:35 PM
04-24-2006 12:36 PM
Hi,
see the code below.
report asciicode.
Parameters : c1 type c.
field-symbols : <n> type x.
data : rn type i.
assign c1 to <n> casting.
move <n> to rn.
write rn.
This will give Ascii code of the input character.
regards
Rakesh
04-24-2006 12:58 PM
n = STRLEN( text ).
i = 0.
do n times
call function URL_ASCII_CODE_GET
trans_char = text+i(1).
i = i + 1.
Perform ur logic with Char_code.
enddo.