*另外,也可以将行结构为 X 类型的内表中所有HEX内容拼接成一个Xstring并存储在l_xstr变量中,也不要被函*数名给迷糊了:并不是将二进制什么的转换为Xstring类型了,而只不过是将将内表结构转换为单一的字符串了*data: l_xstr type xstring.* clear l_xstr.* call function 'SCMS_BINARY_TO_XSTRING'*...
*另外,也可以将行结构为 X 类型的内表中所有HEX内容拼接成一个Xstring并存储在l_xstr变量中,也不要被函*数名给迷糊了:并不是将二进制什么的转换为Xstring类型了,而只不过是将将内表结构转换为单一的字符串了*data: l_xstr type xstring.* clear l_xstr.* call function 'SCMS_BINARY_TO_XSTRING'*...
* 将XML转换为binary,再转换为string,实现UTF-16转为UTF-8,最终将UTF-8替换为GB2312 CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING BUFFER = l_bindata IMPORTING OUTPUT_LENGTH = w_len TABLES BINARY_TAB = l_cntbin . IF sy-subrc = 0. CLEAR w_xml. CALL FUNCTION 'SCMS_BINARY_TO_STRING' ...
CONCATENATE cl_abap_char_utilities=>byte_order_mark_little v_xattach INTO v_xattach IN BYTE MODE. ENDIF. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = v_xattach TABLES binary_tab = i_contents_hex. ***set attachment name, count size*** DESCRIBE TABLE i_spfli LINES tab_lines....
SAP Managed Tags: ABAP Development Hi Everyone, I have a word 2003 xml template. I use function SCMS_XSTRING_TO_BINARY to convert xml template to binary and then I change it. The function SCMS_BINARY_TO_XSTRING is used to back convertion. But I have a one problem. I lose some ...
Sample code of SCMS_XSTRING_TO_BINARY and SCMS_BINARY_TO_STRING. Former Member 2008 Jul 18 11:13 AM 0 Kudos 18,268 SAP Managed Tags: ABAP Development Could any guru give sample code for the following function module: SCMS_XSTRING_TO_BINARY SCMS_BINARY_TO_STRING. Thanks a ...
* ABAP to JSON lo_writer = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ). CALL TRANSFORMATION id SOURCE text = lt_spfli[] RESULT XML lo_writer. lv_jsonx = lo_writer->get_output( ). CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = lv_jsonx IMPORTING outp...
g_buffer_new TYPE xstring. DATA: go_container1 TYPE REF TO cl_gui_custom_container, go_container2 TYPE REF TO cl_gui_custom_container, go_pic_old TYPE REF TO cl_gui_picture, go_pic_new TYPE REF TO cl_gui_picture. SELECTION-SCREEN BEGIN OF BLOCK 001 WITH FRAME. ...
CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING input_length = lv_output_length IMPORTING text_buffer = lv_json output_length = lv_output_length TABLES binary_tab = lt_binary_tab. * JSON to ABAP CALL TRANSFORMATION id SOURCE XML lv_jsonx ...
APPEND ls_prop TO lt_prop. lv_file_xstring = iv_data. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = lv_file_xstring IMPORTING output_length = lv_length TABLES binary_tab = lt_file_content. ls_file_info-binary_flg = 'X'. ...