Conversion : STRING to XSTRING
Code
--------------------------------------------------------------------------------------------------------------
PARAMETERS : str TYPE string.
DATA : xstr TYPE xstring.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = str " pass the string
* MIMETYPE = ' '
* ENCODING =
IMPORTING
buffer = xstr " get the xstring
EXCEPTIONS
FAILED = 1
OTHERS = 2.
WRITE :/ 'string:', str.
WRITE :/ 'xstring', xstr.
------------------------------------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------------------------------------
PARAMETERS : str TYPE string.
DATA : xstr TYPE xstring.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = str " pass the string
* MIMETYPE = ' '
* ENCODING =
IMPORTING
buffer = xstr " get the xstring
EXCEPTIONS
FAILED = 1
OTHERS = 2.
WRITE :/ 'string:', str.
WRITE :/ 'xstring', xstr.
------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment