使用SMW0进行SAP文件上传和下载

转载:https://www.cnblogs.com/datie/p/11495803.html

TCODE: SMW0

选择:二进制数据

输入包名和对象名

新建

 维护文件类型

 文件参数信息

 

复制代码
下载:

DATA:  LS_WWWDATA_ITEM LIKE WWWDATATAB,      "
           LV_FILE         TYPE RLGRAP-FILENAME ."

 LV_FILE = 'C:\test.doc'.

 SELECT SINGLE *
 INTO CORRESPONDING FIELDS OF LS_WWWDATA_ITEM
 FROM WWWDATA WHERE OBJID = 'ZXXXXXXXXX' .

 CALL FUNCTION 'DOWNLOAD_WEB_OBJECT' "
   EXPORTING
     KEY                = LS_WWWDATA_ITEM
     DESTINATION = LV_FILE.
复制代码

 

posted @ 2020-04-07 21:58  鲸与海  阅读(894)  评论(0编辑  收藏  举报