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.