Question:
Hi all,
We are working on implementing UniCode in our R/3 4.7 HR system.
This system supplies other non-R/3 systems with employee data, and for this we need to convert UniCode characters to Latin-1 (West European), e.g. the russian letter "И" is converted to "I" (in the name Ivan), and "Ш" to "sh" (or something like that).
I have pictured something like a function module to do that with, but cannot find it. Anyone in here who knows of a way to convert characters back and forth?
Kind regards
Kim Petersen
Denmark
Answer:
Not all Unicode characters can be converted to a specifiv ISO-latin-something.
That's the reason why unicode exists.
Which is your SAP release?
What kind of unicode (utf-8, utf16, ...)?
Press F1 on TRANSLATE ... FROM CODE PAGE ... TO ...,
and have a look at the classes CL_ABAP_CONV_IN_CE and CL_ABAP_CONV_OUT_CE mentioned in the F1 help.
Answer:
Not all Unicode characters can be converted to a specifiv ISO-latin-something.
That's the reason why unicode exists.
Yes, I feared that.
Which is your SAP release?
What kind of unicode (utf-8, utf16, ...)?
Release 4.7 and UTF-16.
Press F1 on TRANSLATE ... FROM CODE PAGE ... TO ...,
and have a look at the classes CL_ABAP_CONV_IN_CE and CL_ABAP_CONV_OUT_CE mentioned in the F1 help.
That's a start, thanks. I have seen the TRANSLATE command being used like this, but had hoped there was an easier way. This means that I have to translate for each Code Page used by our HR administrators - that's a lot. I will also have to investigate the classes.