SAP Function TB_LIMIT_UPLOAD - File Transfer of File on Presentation Server to Internal Table with Dialog

Parameter Reference Type Length Default Optional Text
FILEMASK_MASK ANY A 0 SPACE X
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 Incorrect Front End, or Error in Front End
INVALID_TYPE Invalid Value for Parameter FILETYPE
NO_AUTHORITY No Upload Authorization
NO_BATCH Front-End Function Cannot Be Executed in Batch
UNKNOWN_ERROR Not Used


Data in a file on the presentation server is transferred to an internaltable.

Description
The user can change the file type in dialog. The changed value isreturned.
Length of uploaded file.
File name (with preceding path name if required).
'ASC' : Upload of ASCII data, with optional code page conversion
'BIN' : Upload of binary data
'DAT' : Upload of data the same as from 'DAT' download
'IBM' : Ascii format as for 'ASC' with IBM code page conversion (DOS)
'DAT' : Ascii format as for 'ASC', additional column division with TAB
'WK1' : Storage by row and column in table format WK1
'BIN' : Binary format (specification of BIN_FILESIZE required)
Provide text for the upload dialog for the title row .
The data from the file is stored in this table.
For 'BIN' upload, use a single-column table with type 'X'. All tablerows must always be filled with data, except for the last row. The lastrow might not be filled completely with valid data, therefore take intoaccount the current file length.
For 'ASC' upload, rows in the file that are too long are cut off if thetable is not wide enough. A one-column table with type 'C' is always tobe used. A new table row is created for each row in the output file.