SAP Function HR_KR_STRING_TO_XSTRING - Convert unicode string into xstring

Parameter Reference Type Length Default Optional Text
CODEPAGE_TO ABAP_ENCODING 0 '8500' Target code page
OUT_LEN I I 4 X Length of xstream string in target code page
UNICODE_STRING STRING g 0 Unicode string to be converted

Parameter Reference Type Length Text
XSTRING_STREAM XSTRING y 0 Encoded byte stream in target code page

Exception Text
INVALID_CODEPAGE The target codepage is invalid
INVALID_STRING The string doesn't match the target codepage