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: 

FM to convert char to hexadecimal.

Former Member
0 Kudos

Hi,

Please suggest me a FM to convert Char to hexadecimal value.

Reward points assured.

Thanks in advance.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Have you tried FM: CHAR_HEX_CONVERSION.

Hope it helps,

Chang

Former Member
0 Kudos

Hi Amardeep,

Try the below reference for your query:

Reward if helpful,

Regards,

Esha Raj

Former Member
0 Kudos

Please consider dependent on your release note 394935 for CHAR_HEX_CONVERSION.

You can do it directly using data type X.


FIELD-SYMBOLS <any>.
DATA lf_char(4) TYPE c VALUE 'TEST',
     lf_hex     TYPE x.

ASSIGN lf_char TO <any> TYPE 'X'.
lf_hex = <any>.

This is no longer supported in OO context.