1, GUI_UPLOAD:上载图片文件 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...
* 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 tables BINARY_TAB = L_XML...
在Linux和Windows平台上,路径符号和大小写都是需要注意的。此外,如果需要获取文件类型,可以使用SDOK_MIMETYPE_GET函数。需要注意的是,文件读取可能需要二进制转换,这时可以使用SCMS_BINARY_TO_XSTRING函数进行处理。另外,还可以通过FTP方式读取文件,使用FTP_SERVER_TO_R3函数,并指定相应的参数如文件名和处理模式等...
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' EXPORTING buffer = lv_jsonx IMPORTING output_length = lv_...
1, 简介 整理了一段代码,实现上载本地图片到SAP的数据库表中,并且显示在屏幕上。 其中用到了一下函数: 1, GUI_UPLOAD:上载图片文件 2, SCMS_BINARY_TO_XSTRING:将图片文件转换成xstring 3, ... 阅读全文 SAP资讯 Sonova携手德世普安China GC & SSC SAP项目启动大会顺利召开 ...
For the detailed solution , scroll down below to "Calendar(Public holidays)" Call stack Function module: SYSTEM_CALLSTACK SYSTEM_CALLSTACK_OF_PROCESS Class: xco_cp_call_stack Conversion(XSTRING, Binary, BASE64) Function module: SCMS_BINARY_TO_XSTRING SCMS_BINARY_TO_ST...
Could any guru give sample code for the following function module: SCMS_XSTRING_TO_BINARY SCMS_BINARY_TO_STRING. Thanks a lot
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...
lv_jsonx = lo_writer->get_output( ). CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = lv_jsonx IMPORTING output_length = lv_output_length TABLES binary_tab = lt_binary_tab. CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING ...
IF sy-subrc = 0. lv_length = ls_doc_data-doc_size. IF lt_att IS NOT INITIAL. CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = lv_length IMPORTING buffer = ev_xstring_content TABLES binary_tab = lt_file EXCEPTIONS failed = 1 OTHERS = 2. ENDIF. ENDIF.abap...