v_dest_filepathTYPEstring.DATAlv_filesizeTYPEi.DATAwa_filetabLIKELINEOFit_filetab."create objectCREATEOBJECToref_zip."uploadcl_gui_frontend_services=>file_open_dialog(EXPORTINGwindow_title='Select files that you want to ZIP'multiselection='X'CHANGINGfile_table=it_filetab rc=lv_retcode user_act...
lv_pathTYPEstring, it_filetabTYPEfiletable, lv_retcodeTYPEi, v_usrTYPEi, v_zip_sizeTYPEi, it_zip_bin_dataTYPESTANDARD TABLE OFraw255, v_dest_filepathTYPEstring. DATAlv_filesizeTYPEi. DATAwa_filetabLIKELINEOFit_filetab. "create object CREATE OBJECToref_zip. "upload cl_gui_frontend_serv...
CREATE OBJECT IZIP. CALL METHOD IZIP->ADD EXPORTING NAME = 'ITAB.TXT' CONTENT = CONT. CALL METHOD IZIP->SAVE RECEIVING ZIP = XZIP_FILE. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING BUFFER = XZIP_FILE TABLES BINARY_TAB = BINARY_TAB. CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME =...
v_zip_size TYPE i, it_zip_bin_data TYPE STANDARD TABLE OF raw255, v_dest_filepath TYPE string. DATA lv_filesize TYPE i. DATA wa_filetab LIKE LINE OF it_filetab. "create object CREATE OBJECT oref_zip. "upload cl_gui_frontend_services=>file_open_dialog( ...
create object izip. call method izip-add exporting name = ITAB.TXT content = cont. call method izip-save receiving zip = xzip_file. call function SCMS_XST 17、RING_TO_BINARY exporting buffer = xzip_file tables binary_tab = binary_tab. call function GUI_DOWNLOAD exporting filename = C:...
bcs=>create_document(i_type='HTM'i_text=lt_htmltexti_subject=gw_element-filename&&'每日邮件').*addthespreadsheetasattachmenttodocumentobjectlv_filename=gw_element-filename.lr_email->add_attachment(i_attachment_type='ZIP'"lc_xls_typei_attachment_subject=lv_file...
create object izip. call method izip-add export ing n ame = ITAB.TXT content = cont. call method izip-save receivi ng zip = xzip_file. call fun ctio n SCMS_XSTRING_TO_BINARY export ing buffer = xzip_file tables bin ary_tab = bin ary_tab. call fun ctio n GUI_DOWNLOAD export ...
ABAP PI 开发 这个世界没有神,如果有那也是别人口中的神而已! « 上一篇 ABAP 动态内表实现方式 灵活运用 下一篇 » ABAP 怎么把A转换为B 的搬砖过程 引用和评论 注册登录 获取验证码 新手机号将自动注册 登录 微信登录免密码登录密码登录 继续即代表同意《服务协议》和《隐私政策》...
TRANSFER <lfs_outfile> TO prf_file LENGTH ldf_length. ENDLOOP. CLOSE DATASET gdf_filepath. 读取服务器文件 使用ABAP的OPEN DATASET带FOR INPUT语句打开文件; 使用READ DATASET语句读取文件; 使用CLOSE DATASET关闭文件。 PARAMETERS p_file TYPE dxfile-filename. ...
CLOSEDATASETgdf_filepath. 读取服务器文件 使用ABAP的OPENDATASET带FORINPUT语句打开文件; 使用READDATASET语句读取文件; 使用CLOSEDATASET关闭文件。 PARAMETERSp_fileTYPEdxfile-filename. START-OF-SELECTION. OPENDATASETp_fileINTEXTMODEENCODINGDEFAULTFORINPUT. DO. READDATASETp_fileINTOgds_data. IFsy-subrc<>0...