cancel
Showing results for 
Search instead for 
Did you mean: 

Sender IDOC with HEX characters

Former Member
0 Kudos

Hi Chaps,

I have a situation i.e. my sender IDOC is sending some HEX characters in the text fields, XI should interpret them and convert it into text fields to the target system.

Could some one guide me on the best approach for this?

Your inputs are highly appreciable.

Regards,

Vijaya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You will need to loop at the string array and read it character by character. You can convert from HEX to unicode using the following line of code in your UDF -

char c = (char) Integer.parseInt("str", 16);

where str is the four digit HEX character at i'th position.

Hope this helps.

Regards,

Riyaz

PS: Calling community members as 'Chaps' does NOT sound professional.

Former Member
0 Kudos

Hi,

Since Outbound / Inbound Interface are using text format (String) to transfer HEX Data there would be no problem.

do u need any manipulation in btw ??

rgds

srini

Edited by: Venkateswarlu Srinivas on Jul 25, 2008 11:07 AM

Former Member
0 Kudos

Hi,

I think by using UDF, u can do that.

Regards,

Venu V

Former Member
0 Kudos

Hi,

You want to convert the HEX data to what kind of data (for example to decimal)?. Can u specify clearly, what the requirement is?

REgards,

Venu V

Former Member
0 Kudos

Thanks for your response,

1) HEX Code to Normal text field

2) No manipulations

Regards,

Vijaya

Former Member
0 Kudos

Hi,

Then our frd Riyaz`s replay will work.

Regards,

Venu V