对FUNCTION: GUI_DOWNLOAD中某些参数的用法. call function 'GUI_DOWNLOAD' exporting * BIN_FILESIZE = * filename = p_file * FILETYPE = 'DAT' * APPEND = ' ' * write_field_separator = 'X' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * ...
本节探讨一下filetype 和codepage两个参数 filetype有3种ASC BIN和DAT,指定filetype意味着它再上传或者下载过程中每个colomn之间会以什么分割,用得最多的是DAT类型,这种类型指定了分割符为tab。BIN类型用得比较少,16进制文件会用到。ASC类型,要求定义文件字符紧密,并且要指定固定的放在table每列的长度,否则会出问题。
T_FIELDNAMES-NAME = '功能范围'. APPEND T_FIELDNAMES. CALL FUNCTION 'GUI_DOWNLOAD' 的时候在TABLE里面加上 FIELDNAMES = T_FIELDNAMES. 问题二:导出的EXCLE里面,如果把文本型的前导零显示出来? 解决: 参数FILETYPE的类型定义成DBF,同时CODEPAGE = ‘8400’,问题解决。 但是带来了新的问题:每列的长度不能大...
NAMETYPECHAR50,ENDOFLS_TEMPLATE.DATAGS_TEMPLATETYPELS_TEMPLATE.DATAGT_TEMPLATETYPETABLEOFLS_TEMPLATEWITHHEADERLINE.PARAMETERSP_FILETYPERLGRAP-FILENAME.INITIALIZATION.TYPE-POOLSICON."第一种方法:引入图标SSCRFIELDS-FUNCTXT_01 ='@3N@下载模板'.WRITEICON_ICON_LIST AS ICONTOSSCRFIELDS-FUNCTXT_02+0(4). S...
[IMPORTING] filetype TYPE CHAR10 Format in which the data should be transferred. Possible values: ASC data should be transferred as ASCII text. Data is converted as necessary. BIN data should be transferred unconverted in binary format DAT data should be transported unconverted as ASCII text ...
call function 'GUI_DOWNLOAD' exporting * BIN_FILESIZE = filename = 'D:/123123.xls' filetype = 'DBF' * APPEND = ' ' write_field_separator = 'X' HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * DAT_MODE = '...
CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = 'C:\123.TXT' FILETYPE = 'DAT' CODEPAGE = '8400' TABLES DATA_TAB = ITAB Former Member 2010 Apr 22 0 Kudos Hugo,你好,我尝试编辑你的帖子,好像是有点问题。但是R.Radiance的是好的,他用的和你一样。。。查看中 发现问题,是字数太多,换...
FILETYPE = 'BIN' APPEND = '' IMPORTING FILELENGTH = '' TABLES DATA_TAB = ''. CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING BIN_FILESIZE = 255 FILENAME = C_FULLPATH FILETYPE = 'DAT' APPEND = ' ' WRITE_FIELD_SEPARATOR = 'X' HEADER = '00' ...
对FUNCTION: GUI_DOWNLOAD中某些参数的用法. call function 'GUI_DOWNLOAD' exporting * BIN_FILESIZE = * filename = p_file * FILETYPE ... rootbin 0 2167 相关推荐 [SAP ABAP开发技术总结]ABAP读写、解析XML文件 2015-02-01 15:31 − 20.6. XML. 236 20.6.1. 生成... 237 20.6.2. 解析...
请教函数Download出现的问题用函数下载内表数据 CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = P_DOWN FILETYPE = 'DAT' TABLES DATA_TAB = DOWNLOAD_TXT EXCEPTIONS INVALID_FILESIZE = 1 INVALID_TABLE_WIDTH = 2 INVALID_TYPE = 3 NO_BATCH = 4 UNKNOWN_ERROR = 5 GUI_REFUSE_FILETRANSFER = 6 OTH...