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

Converting Char type structure to Hex type structure

Former Member
0 Likes
447

Hello ,

In unicode system how to convert char type structure to hex type structure . I am having structures as follows :

DATA: BEGIN OF HEXBYTE,

X TYPE X,

END OF HEXBYTE.

DATA: BEGIN OF CHARBYTE,

C TYPE C,

END OF CHARBYTE.

HEXBYTE-X = CHARFIELD.

CHARBYTE = HEXBYTE.

But error coming is Charbyte and HexByte are not compatible . Plz suggest!!

Thanks ,

Keith

2 REPLIES 2
Read only

nikhil_chitre
Active Participant
0 Likes
395

Hi,

These function modules are:

NLS_STRING_CONVERT_TO_SYS (hex to char)

NLS_SRING_CONVERT_FROM_SYS (char to hex)

Regards,

Nikhil

Read only

Former Member
0 Likes
395

Hi,

Use FM CONVERT_FROM_CHAR_SORT_RFW.It is used to Convert from character to any datatype