SAP文件的上传下载 SMW0,二进制文件

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 @ 2017-07-04 11:19  明大叔  阅读(3263)  评论(0编辑  收藏  举报