SAP SVRS_DISPLAY_DIRECTORY_NEW Function Module for
SVRS_DISPLAY_DIRECTORY_NEW is a standard svrs display directory new 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 directory new FM, simply by entering the name SVRS_DISPLAY_DIRECTORY_NEW 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_DIRECTORY_NEW 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_DIRECTORY_NEW'".
EXPORTING
OBJECT_TYPE = "
* REMOTE = ' ' "
* IV_USER_COMMAND = ' ' "Screens, Function Code Triggered by PAI
OBJECT_NAME = "Object Name
* DESTINATION = ' ' "RFC destination
* DISPLAY = 'X' "
* COMPARE = 'X' "
* COMPARE_REMOTE = 'X' "
* RECALL = 'X' "
* KORRNUM = ' ' "
* SKIP_SCREEN = 'X' "
IMPORTING
FUNCTION_CODE = "
TABLES
* IT_MARKED_VERSIONS = "Version management: Directory table
EXCEPTIONS
NO_DIRECTORY = 1
IMPORTING Parameters details for SVRS_DISPLAY_DIRECTORY_NEW
OBJECT_TYPE -
Data type: VRSD-OBJTYPEOptional: No
Call by Reference: No ( called with pass by value option)
REMOTE -
Data type: VRSD-VERSMODEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_USER_COMMAND - Screens, Function Code Triggered by PAI
Data type: SY-UCOMMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT_NAME - Object Name
Data type: VRSD-OBJNAMEOptional: No
Call by Reference: No ( called with pass by value option)
DESTINATION - RFC destination
Data type: RFCDES-RFCDESTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY -
Data type: VRSD-VERSMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPARE -
Data type: VRSD-VERSMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPARE_REMOTE -
Data type: VRSD-VERSMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RECALL -
Data type: VRSD-VERSMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KORRNUM -
Data type: VRSD-KORRNUMDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SKIP_SCREEN -
Data type: VRSD-VERSMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SVRS_DISPLAY_DIRECTORY_NEW
FUNCTION_CODE -
Data type: VRSDYNPRO-FCODEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SVRS_DISPLAY_DIRECTORY_NEW
IT_MARKED_VERSIONS - Version management: Directory table
Data type: VRSDOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_DIRECTORY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SVRS_DISPLAY_DIRECTORY_NEW 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_object_type | TYPE VRSD-OBJTYPE, " | |||
| lv_no_directory | TYPE VRSD, " | |||
| lv_function_code | TYPE VRSDYNPRO-FCODE, " | |||
| lt_it_marked_versions | TYPE STANDARD TABLE OF VRSD, " | |||
| lv_remote | TYPE VRSD-VERSMODE, " ' ' | |||
| lv_iv_user_command | TYPE SY-UCOMM, " SPACE | |||
| lv_object_name | TYPE VRSD-OBJNAME, " | |||
| lv_destination | TYPE RFCDES-RFCDEST, " ' ' | |||
| lv_display | TYPE VRSD-VERSMODE, " 'X' | |||
| lv_compare | TYPE VRSD-VERSMODE, " 'X' | |||
| lv_compare_remote | TYPE VRSD-VERSMODE, " 'X' | |||
| lv_recall | TYPE VRSD-VERSMODE, " 'X' | |||
| lv_korrnum | TYPE VRSD-KORRNUM, " ' ' | |||
| lv_skip_screen | TYPE VRSD-VERSMODE. " 'X' |
|   CALL FUNCTION 'SVRS_DISPLAY_DIRECTORY_NEW' " |
| EXPORTING | ||
| OBJECT_TYPE | = lv_object_type | |
| REMOTE | = lv_remote | |
| IV_USER_COMMAND | = lv_iv_user_command | |
| OBJECT_NAME | = lv_object_name | |
| DESTINATION | = lv_destination | |
| DISPLAY | = lv_display | |
| COMPARE | = lv_compare | |
| COMPARE_REMOTE | = lv_compare_remote | |
| RECALL | = lv_recall | |
| KORRNUM | = lv_korrnum | |
| SKIP_SCREEN | = lv_skip_screen | |
| IMPORTING | ||
| FUNCTION_CODE | = lv_function_code | |
| TABLES | ||
| IT_MARKED_VERSIONS | = lt_it_marked_versions | |
| EXCEPTIONS | ||
| NO_DIRECTORY = 1 | ||
| . " SVRS_DISPLAY_DIRECTORY_NEW | ||
ABAP code using 7.40 inline data declarations to call FM SVRS_DISPLAY_DIRECTORY_NEW
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 OBJTYPE FROM VRSD INTO @DATA(ld_object_type). | ||||
| "SELECT single FCODE FROM VRSDYNPRO INTO @DATA(ld_function_code). | ||||
| "SELECT single VERSMODE FROM VRSD INTO @DATA(ld_remote). | ||||
| DATA(ld_remote) | = ' '. | |||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_iv_user_command). | ||||
| DATA(ld_iv_user_command) | = ' '. | |||
| "SELECT single OBJNAME FROM VRSD INTO @DATA(ld_object_name). | ||||
| "SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_destination). | ||||
| DATA(ld_destination) | = ' '. | |||
| "SELECT single VERSMODE FROM VRSD INTO @DATA(ld_display). | ||||
| DATA(ld_display) | = 'X'. | |||
| "SELECT single VERSMODE FROM VRSD INTO @DATA(ld_compare). | ||||
| DATA(ld_compare) | = 'X'. | |||
| "SELECT single VERSMODE FROM VRSD INTO @DATA(ld_compare_remote). | ||||
| DATA(ld_compare_remote) | = 'X'. | |||
| "SELECT single VERSMODE FROM VRSD INTO @DATA(ld_recall). | ||||
| DATA(ld_recall) | = 'X'. | |||
| "SELECT single KORRNUM FROM VRSD INTO @DATA(ld_korrnum). | ||||
| DATA(ld_korrnum) | = ' '. | |||
| "SELECT single VERSMODE FROM VRSD INTO @DATA(ld_skip_screen). | ||||
| DATA(ld_skip_screen) | = 'X'. | |||
Search for further information about these or an SAP related objects