Code: Alles auswählen.
cl_gui_frontend_services=>directory_list_files(
EXPORTING
directory = lv_directory
filter = '*.CSV'
files_only = abap_true
CHANGING
file_table = lt_files
count = lv_count ).
LOOP AT lt_files INTO ls_files.
SPLIT ls_files-filename AT con_dot INTO lv_filename lv_endung.
.....
.......
ENDLOOP.