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: 

How to convert String to Hexadecimal 'X'.

Former Member
0 Kudos

Hi,

i got struck to convert String to Hexadecimal 'X'.

IT IS NOT xstring IT IS TO 'X' data type i have to convert.

Can any one help me out.

Reagrds,

Rajender

8 REPLIES 8

Former Member
0 Kudos

Did you try FM CHAR_HEX_CONVERSION?

Former Member
0 Kudos

Check these function modules

NLS_STRING_CONVERT_TO_SYS

NLS_STRING_CONVERT_FROM_SYS

Former Member
0 Kudos

Try in the same format.

MOVE F1+O(L) TO F2.

Former Member
0 Kudos

Hi, has anyone found a solution to this?

I would also like to convert string/char to x (not xstring).

0 Kudos

Hello Matei,

If you would like to convert char to X, you can use CHAR_HEX_CONVERSION.

Thanks,

Best regards,

Lucas Bozio

0 Kudos

I tried to run it in se37 with input 'A' and I got a nice short dump

0 Kudos

It dépends what you mean. Do you want a code page conversion, or a cast (getting the exact bytes of the STRING data object, i.e. same as in memory)?

0 Kudos

Hi Sandra,

In the meantime I don't need it anymore. I figured out another way.

Thank you anyway!