Skip to content

Instantly share code, notes, and snippets.

@MikeSidorochkin
Created March 5, 2021 14:08
DATA: filetable TYPE STANDARD TABLE OF char255,
COUNT TYPE I.
CALL METHOD cl_gui_frontend_services=>directory_list_files
EXPORTING
directory = file_path
FILTER = '*.*'
files_only = 'X'
CHANGING
file_table = filetable
COUNT = COUNT
EXCEPTIONS
cntl_error = 1
directory_list_files_failed = 2
wrong_parameter = 3
error_no_gui = 4
not_supported_by_gui = 5
OTHERS = 6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment