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: 

Unicode - Converting Hexa Value to Char Value

Former Member
0 Kudos

Hi,

I am working with unicode upgrade ECC5.0. I got a problem with a statement called OVERLAY where it accepts only character data types in ECC while it accepts Hexa decimals in 4.6 Version.

Here is the structure i got

DATA: BEGIN OF REPLSET,

LINE0(16) TYPE X VALUE '000102030405060708090A0B0C0D0E0F',

LINE1(16) TYPE X VALUE '101112131415161718191A1B1C1D1E1F',

LINE2(02) TYPE X VALUE '2227',

LINE7(01) TYPE X VALUE '7F',

LINE8(13) TYPE X VALUE '8182838485868788898B8D8E8F',

LINE9(14) TYPE X VALUE '909192939495969798999B9D9E9F',

LINEA(11) TYPE X VALUE 'A0A4A6A8A9AAABACADAEAF',

LINEB(15) TYPE X VALUE 'B0B1B2B3B4B5B6B7B8B9BABBBCBDBE',

LINED(01) TYPE X VALUE 'DF',

END OF REPLSET.

I want to convert the above structure into Character data type with converted value from hexa.

Kindly suggest me a solution and their help is highly appritiated with rewards.

2 REPLIES 2

Former Member
0 Kudos

Use FM - STPU1_HEX_TO_CHAR

to convert hex string to char

Former Member
0 Kudos

Hi Gopinath,

First transfer this hex values into fieldsymbol (Casting Type X) than transfer the value from that fieldsymbol to another fieldsymbol( Casting type Char.). than transfer this fieldsymbol to a character type.