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

ParameterTypeDescriptionRequired
PROGRAM_NAMESY-REPIDProgram name of the screen—
DYNPRO_NUMBERSY-DYNNRScreen number—
FIELD_NAMEDYNPREAD-FIELDNAMEName of the screen field for the path—

Exporting parameters

ParameterTypeDescription
FILE_NAMEIBIPPARMS-PATHSelected 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.

Request a custom report