TB_LIMIT_UPLOAD is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name TB_LIMIT_UPLOAD into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
TBLF
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'TB_LIMIT_UPLOAD' "File Transfer of File on Presentation Server to Internal Table with Dialog
* EXPORTING
* filename = SPACE " any Name of the File (Default Value)
* filetype = SPACE " rlgrap-filetype File Type (ASCII, Binary, ...)(Default Value)
* item = SPACE " any Header for File Dialog
* filemask_mask = SPACE " any
IMPORTING
filesize = " any Number of Bytes Transferred
cancel = " any Is Set on 'Cancel'
act_filename = " any Name of the File (Entered Value)
act_filetype = " rlgrap-filetype File Type (Entered Value)
TABLES
data_tab = " Transfer Table
EXCEPTIONS
INVALID_TYPE = 1 " Invalid Value for Parameter FILETYPE
NO_BATCH = 2 " Front-End Function Cannot Be Executed in Batch
UNKNOWN_ERROR = 3 " Not Used
GUI_REFUSE_FILETRANSFER = 4 " Incorrect Front End, or Error in Front End
NO_AUTHORITY = 5 " No Upload Authorization
. " TB_LIMIT_UPLOAD
The ABAP code below is a full code listing to execute function module TB_LIMIT_UPLOAD including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_filesize | TYPE ANY , |
| ld_cancel | TYPE ANY , |
| ld_act_filename | TYPE ANY , |
| ld_act_filetype | TYPE RLGRAP-FILETYPE , |
| it_data_tab | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_data_tab | LIKE LINE OF it_data_tab . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_filesize | TYPE ANY , |
| ld_filename | TYPE ANY , |
| it_data_tab | TYPE STANDARD TABLE OF STRING , |
| wa_data_tab | LIKE LINE OF it_data_tab, |
| ld_cancel | TYPE ANY , |
| ld_filetype | TYPE RLGRAP-FILETYPE , |
| ld_act_filename | TYPE ANY , |
| ld_item | TYPE ANY , |
| ld_act_filetype | TYPE RLGRAP-FILETYPE , |
| ld_filemask_mask | TYPE ANY . |
Data in a file on the presentation server is transferred to an internal
table.
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TB_LIMIT_UPLOAD or its description.
TB_LIMIT_UPLOAD - File Transfer of File on Presentation Server to Internal Table with Di TB_LIMIT_TRANSACTION_PROCESS - Limit Management: Single Transaction Check Including Update TB_LIMIT_TRANSACTION_POPUP_RFC - Output of a Check Result of a Single Transaction TB_LIMIT_TRANSACTION_POPUP_RES - Reset Global Variables TB_LIMIT_TRANSACTION_POPUP - Output of a Check Result of a Single Transaction TB_LIMIT_TRANSACTION_DEQUEUE - Unlock Single Transaction Check