SAP IUUC_READ_DIRECTORY Function Module for read file directory
IUUC_READ_DIRECTORY is a standard iuuc read directory SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for read file directory processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for iuuc read directory FM, simply by entering the name IUUC_READ_DIRECTORY into the relevant SAP transaction such as SE37 or SE38.
Function Group: IUUC_TABLE_ANALYSIS
Program Name: SAPLIUUC_TABLE_ANALYSIS
Main Program: SAPLIUUC_TABLE_ANALYSIS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function IUUC_READ_DIRECTORY pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'IUUC_READ_DIRECTORY'"read file directory.
EXPORTING
* IV_DIRECTORY = "
* IV_DIR_PARAMETER = "
* IV_DIR_PARAMETER_SUB = "
* IV_GET_FILE_LIST = "Single-Character Flag
* IV_NAME_FILTER = "
IMPORTING
EV_DIR_PARAMETER_VAL = "
ET_FILES = "MWB: Table With Strings
EXCEPTIONS
NO_AUTHORIZATION = 1 DIR_READ_FAILED = 2 READ_PARAMETER_FAILED = 3 GET_SEPARATOR_FAILED = 4 REGEX_FAILED = 5
IMPORTING Parameters details for IUUC_READ_DIRECTORY
IV_DIRECTORY -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DIR_PARAMETER -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DIR_PARAMETER_SUB -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_GET_FILE_LIST - Single-Character Flag
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NAME_FILTER -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IUUC_READ_DIRECTORY
EV_DIR_PARAMETER_VAL -
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
ET_FILES - MWB: Table With Strings
Data type: DMC_STRING_TABOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORIZATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DIR_READ_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
READ_PARAMETER_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GET_SEPARATOR_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REGEX_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IUUC_READ_DIRECTORY Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_iv_directory | TYPE STRING, " | |||
| lv_no_authorization | TYPE STRING, " | |||
| lv_ev_dir_parameter_val | TYPE STRING, " | |||
| lv_et_files | TYPE DMC_STRING_TAB, " | |||
| lv_dir_read_failed | TYPE DMC_STRING_TAB, " | |||
| lv_iv_dir_parameter | TYPE STRING, " | |||
| lv_iv_dir_parameter_sub | TYPE STRING, " | |||
| lv_read_parameter_failed | TYPE STRING, " | |||
| lv_iv_get_file_list | TYPE CHAR1, " | |||
| lv_get_separator_failed | TYPE CHAR1, " | |||
| lv_regex_failed | TYPE CHAR1, " | |||
| lv_iv_name_filter | TYPE STRING. " |
|   CALL FUNCTION 'IUUC_READ_DIRECTORY' "read file directory |
| EXPORTING | ||
| IV_DIRECTORY | = lv_iv_directory | |
| IV_DIR_PARAMETER | = lv_iv_dir_parameter | |
| IV_DIR_PARAMETER_SUB | = lv_iv_dir_parameter_sub | |
| IV_GET_FILE_LIST | = lv_iv_get_file_list | |
| IV_NAME_FILTER | = lv_iv_name_filter | |
| IMPORTING | ||
| EV_DIR_PARAMETER_VAL | = lv_ev_dir_parameter_val | |
| ET_FILES | = lv_et_files | |
| EXCEPTIONS | ||
| NO_AUTHORIZATION = 1 | ||
| DIR_READ_FAILED = 2 | ||
| READ_PARAMETER_FAILED = 3 | ||
| GET_SEPARATOR_FAILED = 4 | ||
| REGEX_FAILED = 5 | ||
| . " IUUC_READ_DIRECTORY | ||
ABAP code using 7.40 inline data declarations to call FM IUUC_READ_DIRECTORY
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects