Ansicht
Dokumentation
HR_BG_DOWNLOAD_WORD - Download na stacjê robocz±
ABAP Short Reference CPI1466 during BackupThis documentation is copyright by SAP AG.
Functionality
File transfer from an internal table on the backend to a file on the presentation server.
Storing SAP data in a file on the file system of the presentation server.
The functionality is similar to that of module WS_DOWNLOAD. The difference is that the DataProvider is used for downloading the data instead of GMUX.
Example
1.) Binary download (not converted)
begin of itab,
raw(255) type x,
end of itab occurs 0.
CALL FUNCTION 'GUI_DOWNLOAD'
exporting
bin_filesize = 500
filetype = 'BIN'
filename = 'C:\DOWNLOAD.BIN'
tables
data_tab = itab.
loads 500 bytes of internal table itab into the file 'C:\DOWNLOAD.BIN' on the frontend PC. The data transferred is not converted.
2.) Downloading ASCII data
begin of itab,
text(255) type c,
end of itab occurs 0.
CALL FUNCTION 'GUI_DOWNLOAD'
exporting
filetype = 'ASC'
filename = 'C:\DOWNLOAD.TXT'
tables
data_tab = itab.
loads the contents of the internal table itab row by row into the file 'C:\DOWNLOAD.BIN' on the frontend PC. Each row of itab corresponds to a row in the file created.
3.) Downloading mixed data + separating the data with TABs in Unicode
begin of itab,
text1(25) type c,
number type i,
datum type d,
end of itab occurs 0.
CALL FUNCTION 'GUI_DOWNLOAD'
exporting
filetype = 'ASC'
write_field_separator = 'X'
filename = 'C:\DOWNLOAD.TXT'
tables
data_tab = itab
Notes
Further information
Parameters
APPENDCRLF
DATA_TAB
EXT_CODE_PAGE
FILELENGTH
FILENAME
FMODE
FSIZE
Exceptions
ACCESS_DENIEDCONTROL_FLUSH_ERROR
CUSTOMER_ERROR
DATAPROVIDER_EXCEPTION
DISK_FULL
DP_ERROR_CREATE
DP_ERROR_SEND
DP_ERROR_WRITE
DP_OUT_OF_MEMORY
DP_TIMEOUT
FILESIZE_NOT_ALLOWED
FILE_NOT_FOUND
FILE_WRITE_ERROR
GUI_REFUSE_FILETRANSFER
HEADER_NOT_ALLOWED
HEADER_TOO_LONG
INVALID_FILESIZE
INVALID_TYPE
NO_AUTHORITY
NO_BATCH
SEPARATOR_NOT_ALLOWED
UNKNOWN_DP_ERROR
UNKNOWN_ERROR
Function Group
3BG2General Material Data SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 3475 Date: 20240523 Time: 095959 sap01-206 ( 46 ms )