abap string 类型 转rawstring (Xstring)
1. SCMS_STRING_TO_XSTRING /*--> */ /*--> */ CALL FUNCTION 'SCMS_STRING_TO_XSTRING' EXPORTING text = lv_string * MIMETYPE = ' ' * ENCODING = IMPORTING buffer = lv_xstring EXCEPTIONS failed = 1 OTHERS = 2 . IF sy -subrc <> 0 . * Implement suitable error handling here ENDIF . 2 .cl_abap_codepage =>convert_to() /*--> */ /*--> */ lv_xstring = cl_abap_codepage =>convert_to ( lv_string ) . 3.SE24 : CL_BCS_CONVERT. 来源: https://www.cnblogs.com/WACBZWY/p/11880811.html