SAP SVRS_DISPLAY_REMOTE_DIR Function Module for
SVRS_DISPLAY_REMOTE_DIR is a standard svrs display remote dir 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 svrs display remote dir FM, simply by entering the name SVRS_DISPLAY_REMOTE_DIR into the relevant SAP transaction such as SE37 or SE38.
Function Group: SVRL
Program Name: SAPLSVRL
Main Program: SAPLSVRL
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SVRS_DISPLAY_REMOTE_DIR 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 'SVRS_DISPLAY_REMOTE_DIR'".
EXPORTING
DESTINATION = "
OBJECT_NAME = "
OBJECT_TYPE = "Object type
IMPORTING
INFO_LINE_1 = "
INFO_LINE_1_A = "
INFO_LINE_1_B = "
VERSNO_1 = "
OBJNAME_1 = "
OBJTYPE_1 = "
REMOTE_SYSTEM = "
EXCEPTIONS
NO_DIRECTORY = 1 NO_SELECTION = 2
IMPORTING Parameters details for SVRS_DISPLAY_REMOTE_DIR
DESTINATION -
Data type: RFCDES-RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
OBJECT_NAME -
Data type: VRSD-OBJNAMEOptional: No
Call by Reference: No ( called with pass by value option)
OBJECT_TYPE - Object type
Data type: VRSD-OBJTYPEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SVRS_DISPLAY_REMOTE_DIR
INFO_LINE_1 -
Data type: ABAPTEXT-LINEOptional: No
Call by Reference: No ( called with pass by value option)
INFO_LINE_1_A -
Data type: VRSINFOLNAOptional: No
Call by Reference: No ( called with pass by value option)
INFO_LINE_1_B -
Data type: VRSINFOLNBOptional: No
Call by Reference: No ( called with pass by value option)
VERSNO_1 -
Data type: VRSD-VERSNOOptional: No
Call by Reference: No ( called with pass by value option)
OBJNAME_1 -
Data type: VRSD-OBJNAMEOptional: No
Call by Reference: No ( called with pass by value option)
OBJTYPE_1 -
Data type: VRSD-OBJTYPEOptional: No
Call by Reference: No ( called with pass by value option)
REMOTE_SYSTEM -
Data type: TADIR-SRCSYSTEMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DIRECTORY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SELECTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SVRS_DISPLAY_REMOTE_DIR 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_destination | TYPE RFCDES-RFCDEST, " | |||
| lv_info_line_1 | TYPE ABAPTEXT-LINE, " | |||
| lv_no_directory | TYPE ABAPTEXT, " | |||
| lv_object_name | TYPE VRSD-OBJNAME, " | |||
| lv_no_selection | TYPE VRSD, " | |||
| lv_info_line_1_a | TYPE VRSINFOLNA, " | |||
| lv_object_type | TYPE VRSD-OBJTYPE, " | |||
| lv_info_line_1_b | TYPE VRSINFOLNB, " | |||
| lv_versno_1 | TYPE VRSD-VERSNO, " | |||
| lv_objname_1 | TYPE VRSD-OBJNAME, " | |||
| lv_objtype_1 | TYPE VRSD-OBJTYPE, " | |||
| lv_remote_system | TYPE TADIR-SRCSYSTEM. " |
|   CALL FUNCTION 'SVRS_DISPLAY_REMOTE_DIR' " |
| EXPORTING | ||
| DESTINATION | = lv_destination | |
| OBJECT_NAME | = lv_object_name | |
| OBJECT_TYPE | = lv_object_type | |
| IMPORTING | ||
| INFO_LINE_1 | = lv_info_line_1 | |
| INFO_LINE_1_A | = lv_info_line_1_a | |
| INFO_LINE_1_B | = lv_info_line_1_b | |
| VERSNO_1 | = lv_versno_1 | |
| OBJNAME_1 | = lv_objname_1 | |
| OBJTYPE_1 | = lv_objtype_1 | |
| REMOTE_SYSTEM | = lv_remote_system | |
| EXCEPTIONS | ||
| NO_DIRECTORY = 1 | ||
| NO_SELECTION = 2 | ||
| . " SVRS_DISPLAY_REMOTE_DIR | ||
ABAP code using 7.40 inline data declarations to call FM SVRS_DISPLAY_REMOTE_DIR
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_destination). | ||||
| "SELECT single LINE FROM ABAPTEXT INTO @DATA(ld_info_line_1). | ||||
| "SELECT single OBJNAME FROM VRSD INTO @DATA(ld_object_name). | ||||
| "SELECT single OBJTYPE FROM VRSD INTO @DATA(ld_object_type). | ||||
| "SELECT single VERSNO FROM VRSD INTO @DATA(ld_versno_1). | ||||
| "SELECT single OBJNAME FROM VRSD INTO @DATA(ld_objname_1). | ||||
| "SELECT single OBJTYPE FROM VRSD INTO @DATA(ld_objtype_1). | ||||
| "SELECT single SRCSYSTEM FROM TADIR INTO @DATA(ld_remote_system). | ||||
Search for further information about these or an SAP related objects