SAP Function TB_LIMIT_DOWNLOAD - Store internal table as file on presentation server with dialog

Parameter Reference Type Length Default Optional Text
BIN_FILESIZE ANY A 0 SPACE X File length for binary files
FILENAME ANY A 0 SPACE X Name of the file (default value)
FILETYPE RLGRAP-FILETYPE C 3 SPACE X File type (ASCII, binary, ...)(default value)
ITEM ANY A 0 SPACE X Header for file dialog

Parameter Reference Type Length Text
ACT_FILENAME ANY A 0 Name of the file (entered value)
ACT_FILETYPE RLGRAP-FILETYPE C 3 File type (entered value)
CANCEL ANY A 0 Is set on 'cancel'
FILESIZE ANY A 0 Number of bytes transferred

Parameter Reference Length Optional Text
DATA_TAB 0 Transfer table

Exception Text
GUI_REFUSE_FILETRANSFER
INVALID_FILESIZE Invalid parameter BIN_FILESIZE
INVALID_TYPE Invalid value for parameter FILETYPE
NO_AUTHORITY No Download Authorization
NO_BATCH Front end function cannot be executed in batch
UNKNOWN_ERROR Not Used


Store SAP data in a file on the file system of the presentation server.
The user can change the file name in the dialog step. This changed nameis returned.
The user can change the file category in the dialog. The changed valueis returned.
The system returns the size of the generated file.
When you generate a binary file, you need to specify the file lengthsince the transfer table (one column, X category) in the last line isnot necessarily fully valid.
Name of file that is to be generated on the presentation server (ifrequired, the previous path name).
Various conversions can be made during the dowload. The target format isdetermined by the FILETYPE.
'ASC' : Ascii format: The table is stored according to the lines.
'IBM' : Ascii format such as 'ASC' with IBM codepage conversion (DOS)
'DAT' : Ascii format such as 'ASC', additional column separation withTAB
'WK1' : Storage according to line and column in table format WK1.
'BIN' : Binary format (specification of BIN_FILESIZE necessary).
When the DOWNLOAD is called, a file dialog is recorded. This is assignedthe title line .
Recommended table structures
'ASC' : 1 column, category C
'DAT' : n columns, mixed categories (C, P, F, I)
'BIN' : 1 column, category X
'WK1' : n columns, mixed categories (C, P, F, I)