ABAP中怎样使用上传到服务器上的excle模板处理打印程序.docVIP

  • 6
  • 0
  • 约1.3千字
  • 约 4页
  • 2018-11-18 发布于天津
  • 举报

ABAP中怎样使用上传到服务器上的excle模板处理打印程序.doc

ABAP中怎样使用上传到服务器上的excle模板处理打印程序

Upload excle model to Server 运行代码: smw0 选择: WebRFC 应用程序的二进制数据 Next: Next: creat Next: Next: Next: Next: 3. 在程序中加入如下代码:************************************************** form sub_chek_directory . data: l_formkey1 like wwwdatatab. data: l_filename1 like rlgrap-filename. data: l_file type string. data: l_rc like sy-subrc. data: l_temp(70). data:l_result type c. l_filename1 = c:\sap_resume.xls . 此路径为模版下载到本地的地址,可根据自己的情况修改 l_formkey1 = MIZHRRP033.XLS. 在此文件名zhrrp033.xls 前必须加’MI’两个字母! clear l_file. clear l_result. l_file = l_filename1. * 检查模板是否存在,不存在就创建 call method cl_gui_frontend_services=file_exist exporting file = l_file receiving result = l_result exceptions cntl_error = 1 error_no_gui = 2 wrong_parameter = 3 others = 5. if l_result = space. * *******下载模板*********** call function DOWNLOAD_WEB_OBJECT exporting key = l_formkey1 destination = l_filename1 importing rc = l_rc changing temp = l_temp. if l_temp ne l_filename1. message e398(00) with text-001. endif. endif. endform. 4、然后在程序中调用上面代码即可! start-of-selection. perform sub_chek_directory.

文档评论(0)

1亿VIP精品文档

相关文档