# 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.

- Modules: CA
- Type: Function module
- Function group: IBIP
- Remote-enabled (RFC): No
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/f4-filename/

## 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)

```abap
CALL FUNCTION 'F4_FILENAME'
  IMPORTING
    file_name = lv_file_name.
```


