Application Development and Automation 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: 
Read only

unicode probelm

Former Member
0 Likes
634

Hi Experts ,

I Want to hexa decimal value 0A And 7F

4.7 Production:

c_hash TYPE x VALUE '0A',

c_spl_char TYPE x VALUE '7F',

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
598

Hi Kumar,

these are the values

HEX -->>CHAR

0A -->> LF(LINE FEED, NEW LINE)

7F-->> DEL

Regards,

Sivakalyan

5 REPLIES 5
Read only

Former Member
0 Likes
598

Hi Experts ,

I am working on ECC 6.0 version, I Want to use hexa decimal value of 0A And 7F in my program

when I try to declare in the below format

Constants : c_hash TYPE x VALUE '0A',

c_spl_char TYPE x VALUE '7F'.

it was giving an error ' C_HASH should be character object'. But if I declre it as type c I cannot use the internal hexa decimal value of '0A' and '7F'.

Could any one please let me know what is the replacement of data type X in ECC.

Read only

Former Member
0 Likes
598

hi,

If i understand u right...then u want to convert hexadecimal to char value.

then u can convert in the following way..

Data hex_value type x.

data char_value(10) type c.

char_value = hex_value.

I hope it hepls.

Regards,

Rohit

Read only

GauthamV
Active Contributor
0 Likes
598

hi,

check these.

[https://forums.sdn.sap.com/click.jspa?searchID=19684941&messageID=4168086]

[https://forums.sdn.sap.com/click.jspa?searchID=19684941&messageID=4872864]

Read only

Former Member
0 Likes
599

Hi Kumar,

these are the values

HEX -->>CHAR

0A -->> LF(LINE FEED, NEW LINE)

7F-->> DEL

Regards,

Sivakalyan

Read only

0 Likes
598

Hi ,

Thanks for your reply.

In 4.7 production code like this :

Data char1(10) type value '200FMM 300'.

constants :

c_hash TYPE x VALUE '0A',

c_spl_char TYPE x VALUE '7F.

CONCATENATE c_spl_char char1 c_spl_char INTO w_buffer.

TRANSFER w_buffer TO w_tmpopfil( This is file name )

When i check in AL11 , OUT PUT like : #200FMM 300#

In ECC production code like this :

Data char1(10) type value '200FMM 300'.

constants :

As it is not allowed to define c_spl_char type x so i changed to Char

c_hash TYPE char VALUE '0A',

c_spl_char TYPE char VALUE '7F.

CONCATENATE c_spl_char char1 c_spl_char INTO w_buffer.

TRANSFER w_buffer TO w_tmpopfil( This is file name ).

when i check in AL11 , OUT PUT like : 7F200FMM 3007F.

i need to declare same as 4.7 Like c_spl_char TYPE x in ecc.

Regards ,

Kiran.