CA
Function module
Used the same way in S/4HANA
F4_FILENAME F4 Help for Local File Name
Opens a file selection dialog on the user's PC and returns the chosen path. It is the classic value help for a file name parameter on the selection screen of upload programs (AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file). It works only in dialog with SAP GUI; for new code the methods of CL_GUI_FRONTEND_SERVICES (FILE_OPEN_DIALOG) offer more options.
- Function group
- IBIP
- Remote-enabled (RFC)
- No
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| PROGRAM_NAME | SY-REPID | Program name of the screen | — |
| DYNPRO_NUMBER | SY-DYNNR | Screen number | — |
| FIELD_NAME | DYNPREAD-FIELDNAME | Name of the screen field for the path | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| FILE_NAME | IBIPPARMS-PATH | Selected file path |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = lv_file_name.Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.