03-28-2007 11:05 AM
HI,
CAN ANYONE TELL ME WHATS THE FUNCTION MODULE TO CONVERT STRING TO AN XSTRING.
Thanks
03-28-2007 11:21 AM
Check out 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 .
03-28-2007 11:07 AM
hi,
use the following FM
SCMS_STRING_TO_XSTRING
SCMS_STRING_TO_XSTRING in release 640.
See this link for sample code and explanation by Thomas Jung:
/people/thomas.jung3/blog/2004/08/09/bsp-download-to-excel-in-unicode-format
***********Convert XSTRING TO STRING*********
CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
Regards,
Santosh
03-28-2007 11:11 AM
chk these 3,
ECATT_CONV_STRING_TO_XSTRING
HR_KR_STRING_TO_XSTRING
SCMS_STRING_TO_XSTRING
03-28-2007 11:15 AM
Hi Santosh,
we are working in 4.6c
could not find the FM here.
Any other way to do the conversion.
Thanks
03-28-2007 11:21 AM
Check out 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 .
03-28-2007 11:44 AM