摘要:
REPORT ZFTP_ERIC1114.*本文示例如何使用SAP FTP Function将文件从应用服务器传输到另外一个FTP服务器上。DATA: BEGIN OF IG_FTP_RESULT OCCURS 0, LINE(100), END OF IG_FTP_RESULT.DATA: L_PATH(128) TYPE C. "文件路径,必须以/结尾DATA: L_FILENAME(128) TYPE C VALUE 'eric.txt'. "文件名DATA: L_FTPCOMMAND(100) TYPE C. "FTP命令DATA: L_H 阅读全文
摘要:
在使用标准 functions前,确保已经安装SAPFTP.EXE。请先使用程序:RSFTP005 进行SAPFTP 检查。RSFTP001 - SAPFTP 版本检查RSFTP002 - 执行 FTP 命令RSFTP003 - 测试 RSFTP004 - FTP 复制RSFTP005 - SAPFTP 检查RSFTP006 - FTP 命令清单RSFTP007 - Test FB:FTP_SERVER_TO_R3 / FTP_R3_TO_SERVER 读取FTP数据到R3 / R3数据写入FTP。RSFTP008 - Test FB:FTP_CLIENT_TO_R3 / FTP_R3_TO_ 阅读全文
摘要:
REPORT Z_ALV_ERIC.data: ok_code type sy-ucomm, save_ok like ok_code.data wa_spfli type table of spfli.select * into table wa_spfli from spfli.data: wa_container type scrfname value 'ALV', alv_grid type ref to cl_gui_alv_grid, wa_custom_container TYPE ref to cl_gui_custom_container. call SCRE 阅读全文
摘要:
REPORT Z_ALV_ERIC.*定义使用图标,按钮使用INCLUDE <ICON>.*定义事件类型CLASS LCL_EVENT_RECEIVER DEFINITION DEFERRED.DATA: OK_CODE TYPE SY-UCOMM, SAVE_OK LIKE OK_CODE.*定义事件DATA EVENT_RECEIVER TYPE REF TO LCL_EVENT_RECEIVER.*内表DATA: WA_SPFLI TYPE TABLE OF SPFLI, A_SPFLI LIKE SPFLI.SELECT * INTO TABLE WA_SPFLI FROM 阅读全文
摘要:
REPORTZ_ALV_ERIC.DATA:OK_CODETYPESY-UCOMM,SAVE_OKLIKEOK_CODE.datawa_spflitypetableofspfli.SELECT*INTOTABLEWA_SPFLIFROMSPFLI.*定义窗口定制控制,定义ALV对象DATA:WA_CONTAINERTYPESCRFNAMEVALUE'ALVDATA',ALV_GRIDTYPEREFTOCL_GUI_ALV_GRID,WA_CUSTOM_CONTAINERTYPEREFTOCL_GUI_CUSTOM_CONTAINER.*定义事件类型classlcl_event_ 阅读全文