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

Hex to char

Former Member
0 Likes
2,006

Hi,

Does someone know about a funtion that converts a hexadecimal number in a character?

Thanks

Victoria

Hi,

Does someone know about a funtion that converts a hexadecimal number in a character?

Thanks

Victoria

9 REPLIES 9
Read only

sridhar_k1
Active Contributor
0 Likes
1,057

Try the following code:

dat: v_hex(4)type x value '41',

v_char type c.

field-symbols <fs>.

assign v_hex to <fs> casting type c.

v_char = <fs>.

write: v_char.

Regards

Sridhar

Message was edited by: Sridhar K

Read only

Laxmana_Appana_
Active Contributor
0 Likes
1,057

Hi,

Use the function module STPU1_HEX_TO_CHAR .

Regards

Appana

Read only

0 Likes
1,057

I am going to explain my issue.

In the interface with other system I transport To R/3 a Text field. In R/3 I have an error because the text have an invalid character, R/3 shows this character like a #, but the error shows the hexadecimal number for this stranger character (hex.

'3400200054004500430048004E004900430041004C00200041'). I need to know which character is this hexadecimal number for try to transformed in other.

Thanks

Victoria

Read only

0 Likes
1,057

That looks to me like unicode data, 00 missing at the begining of the string.

If u add 00 at the begining it's text wquivalent is: 4 TECHNICAL A

Regards

Sridhar

Read only

0 Likes
1,057

Hi,

What is unicode data ?

What does string 00 signifies.

Read only

0 Likes
1,057

uhmm I understand more that hexadecimal number.. mi text is

4 TECHNICAL ATTENDANCE AND##ASSISTANT

The invalid character are ##. in others presentation appears like squares.

Read only

0 Likes
1,057

The hex string in ur previous message is only upto '4 TECHNICAL A', please post the remaining hex value, If the message is not showing full hex string, select the text and convert to hex.

Regards

Sridhar

Message was edited by: Sridhar K

Read only

0 Likes
1,057

That looks to me like unicode data, 00 missing at the begining of the string.

If u add 00 at the begining it's text wquivalent is: 4 TECHNICAL A

Regards

Read only

Former Member
0 Likes
1,057

hi victoria,

check this link:

http://www.geocities.com/ikind_babel/babel/babel.html

Do reawrd if helpful.

regards,

keerthi.