o intenta usando este modulo de funcion
Data: c_direct LIKE epsf-epsdirnam VALUE '/usr/sap/FTSEND/'.
DATA: it_dirlist LIKE epsfili OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
EXPORTING
dir_name = c_direct
file_mask = ''
TABLES
dir_list = it_dirlist
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8.
en la tabla interna it_dirlist esta un campo SIZE.
Saludos!!
|