enddo. *convert to Xstring CALL FUNCTION 'ECATT_CONV_STRING_TO_XSTRING' EXPORTING im_string = str IM_ENCODING = 'UTF-8' IMPORTING EX_XSTRING = xstr. *convert to string CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING
get_bdoc_ext_via_id USING-bdoc_id CHANGING lv_xml.CALL FUNCTION'ECATT_CONV_XSTRING_TO_STRING'EXPORTINGim_xstring=lv_xmlIMPORTINGex_string=lv_string.FIND keywordINlv_string.IF sy-subrc=0.WRITE:/'found search keyword in BDOC: ',-bdoc_id.ENDIF.CLEAR:lv_xml,lv_string.ENDLOOP.ENDFORM.FORM...
CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING' EXPORTING im_xstring = lv_xml IMPORTING ex_string = lv_string. FIND keyword IN lv_string. IF sy-subrc = 0. WRITE: / 'found search keyword in BDOC: ' , -bdoc_id. ENDIF. CLEAR: lv_xml, lv_string. ENDLOOP. ENDFORM. FORM get_bdoc_...
string 和 xstring 互转: SCMS_STRING_TO_XSTRING ECATT_CONV_XSTRING_TO_STRING
RESULT XML lv_xml1."2进制转换XML字符串不乱码CALLFUNCTION'ECATT_CONV_XSTRING_TO_STRING'EXPORTINGim_xstring= lv_xml1"二进制字符串im_encoding ='UTF-8'IMPORTINGex_string= lv_xml2."返回的xml字符串CATCHcx_st_errorINTOlv_oref."传输XML转换错误lv_message = lv_oref->get_text( ) ."报错日志保...
lv_str TYPE string. TRY. lif_doc = io_sreq->get_document( ). IF lif_doc IS NOT BOUND. RETURN. ENDIF. io_sreq->as_mime_message( EXPORTING do_not_create = 'X' IMPORTING mime_message = lv_xstr ). CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING' EXPORTING ...
If you read any XML into your program, transform that to ABAP data and then those back to JSON, then ... (that would be the second way listed in the blog above). PS: CL_ABAP_CODE_PAGE would be the better choice compared to function module 'ECATT_CONV_XSTRING_TO_STRING'. Former ...
call method conv->convert_i( ). v_buffer = conv->get_out_buffer( ). split string CLEAR lv_ascii_data. CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING' EXPORTING im_xstring = lv_binary_data IM_ENCODING = 'UTF-8' IMPORTING ex_string = lv_ascii_data . CONDENSE lv_ascii_data. REFRESH ...
i think you can use ECATT_CONV_XSTRING_TO_STRING. in this the importing parameter is of data type rawstring and in HR_KR_XSTRING_TO_STRING the importing parameter is of data type xstring. just give it a try . Regards, anand Former Member 2009 Sep 24 0 Kudos Hi, I used the...
Solved: Hi Experts - I've installed BPC 10 and successfully created the ENVIRONMENTSHELL. Now I'm trying to use Trans UJBR to restore another environment. I get a