2, SCMS_BINARY_TO_XSTRING:将图片文件转换成xstring 3, SCMS_XSTRING_TO_BINARY:将图片xstring转换成binary格式保存到内表中 4, DP_CREATE_URL:创建得到图片的URL 5, go_pic->load_picture_from_url:根据图片URL导入 6, go_pic->set_display_mode:显示图片 2, 完整代码 1 2 3 4 5 6 7 8 9 10...
I have a RAWSTRING xxx (get from DB) and want download it using GUI_DOWNLOAD. According to some posts, I call 'SCMS_XSTRING_TO_BINARY' data: data_tab type table of x255. call function 'SCMS_XSTRING_TO_BINARY' exporting buffer = xxx tables binary_tab = data_tab. But I find tha...
Could any guru give sample code for the following function module: SCMS_XSTRING_TO_BINARY SCMS_BINARY_TO_STRING. Thanks a lot
*将Xstring转换成二进制 * call function 'SCMS_XSTRING_TO_BINARY' * exporting * BUFFER = W_STRING * importing * OUTPUT_LENGTH = L_XML_SIZE * tables * BINARY_TAB = L_XML_TABLE. callfunction'SCMS_BINARY_TO_STRING' exporting INPUT_LENGTH = L_XML_SIZE importing TEXT_BUFFER = LS_XML tabl...
在Linux和Windows平台上,路径符号和大小写都是需要注意的。此外,如果需要获取文件类型,可以使用SDOK_MIMETYPE_GET函数。需要注意的是,文件读取可能需要二进制转换,这时可以使用SCMS_BINARY_TO_XSTRING函数进行处理。另外,还可以通过FTP方式读取文件,使用FTP_SERVER_TO_R3函数,并指定相应的参数如文件名和处理模式等...
Here, I am going to explain "How it can be done?" Step 1: Upgrade the Kernel if Required Log in to the SAP >> SAP Easy Access Screen >> System Menu >> Status Now, Click on the component to check the SAP_BASIS release 731 ...
* ABAP to JSON lo_writer = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ). CALL TRANSFORMATION id SOURCE text = lt_zxlth[] RESULT XML lo_writer. lv_jsonx = lo_writer->get_output( ). CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' ...
xco_cp_call_stack Conversion(XSTRING, Binary, BASE64) Function module: SCMS_BINARY_TO_XSTRING SCMS_BINARY_TO_STRING SCMS_XSTRING_TO_BINARY SCMS_STRING_TO_XSTRING SCMS_BASE64_ENCODE_STR SCMS_BASE64_DECODE_STR Class: xco_cp=>xstring xco_cp_binary Count itab row...
TEXT = lv_string IMPORTING BUFFER = buffer EXCEPTIONS FAILED = 1 OTHERS = 2. IF SY-SUBRC 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. *- Convert the string into binary table CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPOR...
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'. ls_file_info-file_name = iv_file_name. ls_file_info-file_size = lv_length. ls_file_info-mimetype =...