12-18-2008 8:24 AM
Hi,
I have requirement in upgrade. I have three objects declared refering to type x. But in ECC 7.0 the system throwing a syntax error.
Here are the variables.
YULOCK TYPE X VALUE '80',
YUSLOC TYPE X VALUE '40',
YUGLOC TYPE X VALUE '20',
How can I replace the above variables. I did not find any thing from CLASS abap character utilities.
Venkat.
12-18-2008 8:32 AM
Hi ,
use FM HR_RU_CONVERT_HEX_TO_STRING.
pass the hex values and pick the string values .
Vijay
12-18-2008 8:41 AM
12-18-2008 9:03 AM
12-18-2008 9:06 AM
is hex value '20' eq space..
yes ..
http://www.laynetworks.com/ASCII%20to%20hex%20value%20chart.htm
ASCII to hex value chart
Dec Hx Oct Char Dec Hx Oct Char Dec Hx Oct Char Dec Hx Oct Char
0 0 000 NUL (null) 32 20 040 SPACE 64 40 100 @ 96 60 140 ` 1 1 001 SOH(start of heading) 33 21 041 ! 65 41 101 A 97 61 141 a
2 2 002 STX (start of text) 34 22 042 " 66 42 102 B 98 62 142 b
3 3 003 ETX (end of text) 35 23 043 # 67 43 103 C 99 63 143 c
vijay