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: 

Data objects declared with type X.

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi ,

use FM HR_RU_CONVERT_HEX_TO_STRING.

pass the hex values and pick the string values .

Vijay

0 Kudos

Hi,

Thanks for ur reply. Its not returning value for 20.

Venkat.

0 Kudos

Hi,

To get the value for '20', Refer Following Thread.

[]

Regards,

Rohit

0 Kudos

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