2. 使用CONVERT_XSTRING_TO_STRING函数模块 这种方法更为直接,用于将XSTRING转换为STRING。 abap DATA: lv_xstring TYPE xstring VALUE '48656C6C6F', " 示例XSTRING,表示十六进制字符串 lv_string TYPE string. CALL FUNCTION 'CONVERT_XSTRING_TO_STRING' EXPORTING encoding = 'UTF-8' iv_xstring = lv...
ABAP--关于字符串String到XStringXStringtoString转换代码也欢迎⼤家转载本篇⽂章。分享知识,造福⼈民,实现我们中华民族伟⼤复兴!最近有⽹友问及String到XString XString to String转换,下⾯代码供⼤家参考 代码如下 report zrich_0001.data: s type string,h(1) type x,c(1) type c,byte(2)...
* 2. Convert XSTRING to STRING clear length. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING: buffer = l_bindata IMPORTING: output_length = length TABLES: binary_tab = l_cntbin. if sy-subrc = 0. CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING INPUT_LENGTH = length IMPORTING TEXT_BUF...
* 2. Convert XSTRING to STRING clear length. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING: buffer = l_bindata IMPORTING: output_length = length TABLES: binary_tab = l_cntbin. if sy-subrc = 0. CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING INPUT_LENGTH = length IMPORTING TEXT_BUF...
* 2. Convert XSTRING to STRING clear length. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING: buffer = l_bindata IMPORTING: output_length = length TABLES: binary_tab = l_cntbin. if sy-subrc = 0. CALL FUNCTION 'SCMS_BINARY_TO_STRING' ...
最近有网友问及String到XStringXStringtoString转换,下面代码供大家参考 代码如下 reportzrich_0001. data:stypestring, h(1)typex, c(1)typec, byte(2)typec, lengthtypei, l_bindatatypexstring, l_cntbinTYPEsdokcntbins. FIELD-SYMBOLS:DUMMY. ...
最近有网友问及String到XStringXStringtoString转换,下面代码供大家参考代码如下reportzrich_0001.data:stypestring,h(1)typex,c(1)typec,byte(2)typec,lengthtypei,l_bindatatypexstring,l_cntbinTYPEsdokcntbins.FIELD-SYMBOLS:DUMMY.s='ThisIsAString!'.length=strlen(s).*UseWritetoConvertStringtoXSTRINGw...
Hi All, I need to convert the XSTRING to STRING and i need a FM which converts all the special characters as it is. Im getting the xstring value from excel sheet using
Solved: Hi all, I'm trying to convert a XString to a String; the content of the string is a png-image. In the past the conversion works, but a few days ago we did an
用F1查看的时候,这里是这样说的:The types RAWSTRING and STRING have a variable length. A maximum length for these types can be specified, but has no upper limit.The