‎2006 Sep 13 10:38 AM
Hello,
how can I create from a normal string a xstring?
Is there a function module for it...?
‎2006 Sep 13 10:40 AM
Check the FM:
<b>HR_KR_STRING_TO_XSTRING
SCMS_STRING_TO_XSTRING</b>
For Xtring to string check:
<b>HR_KR_XSTRING_TO_STRING</b>
Regards,
PRakash.
Message was edited by: Prakash Ramu
‎2006 Sep 13 10:40 AM
‎2006 Sep 13 10:40 AM
‎2006 Sep 13 10:40 AM
Check the FM:
<b>HR_KR_STRING_TO_XSTRING
SCMS_STRING_TO_XSTRING</b>
For Xtring to string check:
<b>HR_KR_XSTRING_TO_STRING</b>
Regards,
PRakash.
Message was edited by: Prakash Ramu
‎2006 Sep 13 10:43 AM
to convert unicode string into xstring
use HR_KR_STRING_TO_XSTRING..
sample code..
data : in_string type string value 'trial' , length type i,
out_xstring type xstring.
CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
EXPORTING
unicode_string = in_string
out_len = length
IMPORTING
xstring_stream = out_xstring
EXCEPTIONS
invalid_codepage = 1
.
write : out_xstring .
‎2006 Sep 13 10:44 AM
‎2006 Sep 13 11:08 AM
Now I use the function HR_KR_XSTRING_TO_STRING.
I have one string output (output=1bec41bb) and I will change output in a string RESULT, but there is a error.
Is the problem that output is not declare as a xstring?
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
FROM_CODEPAGE = OUTPUT
IN_XSTRING = 'KGK
OUT_LEN =
IMPORTING
OUT_STRING = RESULT.