Code: Alles auswählen.
DATA: it_files TYPE STANDARD TABLE OF file_info,
anz TYPE i,
wa_file LIKE LINE OF t_files.
CALL METHOD cl_gui_frontend_services=>directory_list_files
EXPORTING
directory = dir " Variable mit Directory
filter = fn " Variable mit Maske (hier konkreter Dateiname)
CHANGING
file_table = it_files
count = anz
EXCEPTIONS
cntl_error = 1
directory_list_files_failed = 2
wrong_parameter = 3
error_no_gui = 4
not_supported_by_gui = 5
OTHERS = 6.