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

Problem with hexadecimal value

JayantkumarS
Participant
0 Likes
527

hi Experts,

   FIELD-symbols : <fs_x> TYPE X.

   "convert char to ascii
    ASSIGN 'A' TO <fs_x> casting.

the above code is working differenlty in 2 systems.

in one   system - <fs_X> = 0041 - which is correct

in other system - <fs_X> = 4100 - which is wrong.

Please advice.

Rgs,

Jayant

1 REPLY 1
Read only

JerryWang
Product and Topic Expert
Product and Topic Expert
0 Likes
401

Hello Jayant,

You can find in your ABAP F1 help about "byte sequence". The byte sequence determines whether the highest-value byte or lowest-value byte is stored first. In the case of the highest-value byte, the binary display is referred to as big endian and with the lowest-value byte, the display is known as little endian. Different processor might have different byte order.

See example in ABAP help:

Best regards,

Jerry