SAP EPS_FTP_MGET Function Module for
EPS_FTP_MGET is a standard eps ftp mget SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 eps ftp mget FM, simply by entering the name EPS_FTP_MGET into the relevant SAP transaction such as SE37 or SE38.
Function Group: EPSF
Program Name: SAPLEPSF
Main Program: SAPLEPSF
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EPS_FTP_MGET 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 'EPS_FTP_MGET'".
EXPORTING
RFC_DESTINATION = "
* MONITOR_TEXT1 = "
* MONITOR_TEXT2 = "
* PROGRESS_TEXT = "
* FILE_MASK = ' ' "
* REMOTE_DIRECTORY = ' ' "
* LOCAL_DIRECTORY = ' ' "
* OVERWRITE_MODE = ' ' "
* TEXT_MODE = ' ' "
* TRANSMISSION_MONITOR = 'X' "
* RECORDS_PER_TRANSFER = 10 "
* MONITOR_TITLE = "
IMPORTING
REMOTE_DIRECTORY = "
LOCAL_DIRECTORY = "
REMOTE_SYSTEM_INFO = "
LOCAL_SYSTEM_INFO = "
TABLES
* FILE_LIST = "
EXCEPTIONS
CONNECTION_FAILED = 1 INVALID_VERSION = 2 INVALID_ARGUMENTS = 3 GET_DIR_LIST_FAILED = 4 FILE_TRANSFER_FAILED = 5 STOPPED_BY_USER = 6
IMPORTING Parameters details for EPS_FTP_MGET
RFC_DESTINATION -
Data type: RFCDES-RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
MONITOR_TEXT1 -
Data type: EPSF-EPSTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
MONITOR_TEXT2 -
Data type: EPSF-EPSTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
PROGRESS_TEXT -
Data type: EPSF-EPSTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
FILE_MASK -
Data type: EPSF-EPSFILNAMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
REMOTE_DIRECTORY -
Data type: EPSF-EPSDIRNAMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOCAL_DIRECTORY -
Data type: EPSF-EPSDIRNAMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OVERWRITE_MODE -
Data type: EPSF-EPSOVRWRIDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_MODE -
Data type: EPSF-EPSTXTMODDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRANSMISSION_MONITOR -
Data type: EPSF-EPSTRAMONDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RECORDS_PER_TRANSFER -
Data type: EPSF-EPSRECTRADefault: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)
MONITOR_TITLE -
Data type: EPSF-EPSTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EPS_FTP_MGET
REMOTE_DIRECTORY -
Data type: EPSF-EPSDIRNAMOptional: No
Call by Reference: No ( called with pass by value option)
LOCAL_DIRECTORY -
Data type: EPSF-EPSDIRNAMOptional: No
Call by Reference: No ( called with pass by value option)
REMOTE_SYSTEM_INFO -
Data type: EPSFTPSIOptional: No
Call by Reference: No ( called with pass by value option)
LOCAL_SYSTEM_INFO -
Data type: EPSFTPSIOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EPS_FTP_MGET
FILE_LIST -
Data type: EPSFILIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CONNECTION_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_VERSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_ARGUMENTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GET_DIR_LIST_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FILE_TRANSFER_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STOPPED_BY_USER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EPS_FTP_MGET 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: | ||||
| lt_file_list | TYPE STANDARD TABLE OF EPSFILI, " | |||
| lv_rfc_destination | TYPE RFCDES-RFCDEST, " | |||
| lv_remote_directory | TYPE EPSF-EPSDIRNAM, " | |||
| lv_connection_failed | TYPE EPSF, " | |||
| lv_monitor_text1 | TYPE EPSF-EPSTEXT, " | |||
| lv_monitor_text2 | TYPE EPSF-EPSTEXT, " | |||
| lv_progress_text | TYPE EPSF-EPSTEXT, " | |||
| lv_file_mask | TYPE EPSF-EPSFILNAM, " SPACE | |||
| lv_invalid_version | TYPE EPSF, " | |||
| lv_local_directory | TYPE EPSF-EPSDIRNAM, " | |||
| lv_remote_directory | TYPE EPSF-EPSDIRNAM, " SPACE | |||
| lv_invalid_arguments | TYPE EPSF, " | |||
| lv_remote_system_info | TYPE EPSFTPSI, " | |||
| lv_local_directory | TYPE EPSF-EPSDIRNAM, " SPACE | |||
| lv_local_system_info | TYPE EPSFTPSI, " | |||
| lv_get_dir_list_failed | TYPE EPSFTPSI, " | |||
| lv_overwrite_mode | TYPE EPSF-EPSOVRWRI, " SPACE | |||
| lv_file_transfer_failed | TYPE EPSF, " | |||
| lv_text_mode | TYPE EPSF-EPSTXTMOD, " SPACE | |||
| lv_stopped_by_user | TYPE EPSF, " | |||
| lv_transmission_monitor | TYPE EPSF-EPSTRAMON, " 'X' | |||
| lv_records_per_transfer | TYPE EPSF-EPSRECTRA, " 10 | |||
| lv_monitor_title | TYPE EPSF-EPSTEXT. " |
|   CALL FUNCTION 'EPS_FTP_MGET' " |
| EXPORTING | ||
| RFC_DESTINATION | = lv_rfc_destination | |
| MONITOR_TEXT1 | = lv_monitor_text1 | |
| MONITOR_TEXT2 | = lv_monitor_text2 | |
| PROGRESS_TEXT | = lv_progress_text | |
| FILE_MASK | = lv_file_mask | |
| REMOTE_DIRECTORY | = lv_remote_directory | |
| LOCAL_DIRECTORY | = lv_local_directory | |
| OVERWRITE_MODE | = lv_overwrite_mode | |
| TEXT_MODE | = lv_text_mode | |
| TRANSMISSION_MONITOR | = lv_transmission_monitor | |
| RECORDS_PER_TRANSFER | = lv_records_per_transfer | |
| MONITOR_TITLE | = lv_monitor_title | |
| IMPORTING | ||
| REMOTE_DIRECTORY | = lv_remote_directory | |
| LOCAL_DIRECTORY | = lv_local_directory | |
| REMOTE_SYSTEM_INFO | = lv_remote_system_info | |
| LOCAL_SYSTEM_INFO | = lv_local_system_info | |
| TABLES | ||
| FILE_LIST | = lt_file_list | |
| EXCEPTIONS | ||
| CONNECTION_FAILED = 1 | ||
| INVALID_VERSION = 2 | ||
| INVALID_ARGUMENTS = 3 | ||
| GET_DIR_LIST_FAILED = 4 | ||
| FILE_TRANSFER_FAILED = 5 | ||
| STOPPED_BY_USER = 6 | ||
| . " EPS_FTP_MGET | ||
ABAP code using 7.40 inline data declarations to call FM EPS_FTP_MGET
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.| "SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_rfc_destination). | ||||
| "SELECT single EPSDIRNAM FROM EPSF INTO @DATA(ld_remote_directory). | ||||
| "SELECT single EPSTEXT FROM EPSF INTO @DATA(ld_monitor_text1). | ||||
| "SELECT single EPSTEXT FROM EPSF INTO @DATA(ld_monitor_text2). | ||||
| "SELECT single EPSTEXT FROM EPSF INTO @DATA(ld_progress_text). | ||||
| "SELECT single EPSFILNAM FROM EPSF INTO @DATA(ld_file_mask). | ||||
| DATA(ld_file_mask) | = ' '. | |||
| "SELECT single EPSDIRNAM FROM EPSF INTO @DATA(ld_local_directory). | ||||
| "SELECT single EPSDIRNAM FROM EPSF INTO @DATA(ld_remote_directory). | ||||
| DATA(ld_remote_directory) | = ' '. | |||
| "SELECT single EPSDIRNAM FROM EPSF INTO @DATA(ld_local_directory). | ||||
| DATA(ld_local_directory) | = ' '. | |||
| "SELECT single EPSOVRWRI FROM EPSF INTO @DATA(ld_overwrite_mode). | ||||
| DATA(ld_overwrite_mode) | = ' '. | |||
| "SELECT single EPSTXTMOD FROM EPSF INTO @DATA(ld_text_mode). | ||||
| DATA(ld_text_mode) | = ' '. | |||
| "SELECT single EPSTRAMON FROM EPSF INTO @DATA(ld_transmission_monitor). | ||||
| DATA(ld_transmission_monitor) | = 'X'. | |||
| "SELECT single EPSRECTRA FROM EPSF INTO @DATA(ld_records_per_transfer). | ||||
| DATA(ld_records_per_transfer) | = 10. | |||
| "SELECT single EPSTEXT FROM EPSF INTO @DATA(ld_monitor_title). | ||||
Search for further information about these or an SAP related objects