Skip to Content
author's profile photo Former Member
Former Member

Unicode - Converting Hexa Value to Char Value

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 08:43 AM

    Use FM - STPU1_HEX_TO_CHAR

    to convert hex string to char

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 09:01 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.