SAP SVRS_GET_VERSION_WDYV_40 Function Module for
SVRS_GET_VERSION_WDYV_40 is a standard svrs get version wdyv 40 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 get version wdyv 40 FM, simply by entering the name SVRS_GET_VERSION_WDYV_40 into the relevant SAP transaction such as SE37 or SE38.
Function Group: SVRW
Program Name: SAPLSVRW
Main Program: SAPLSVRW
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function SVRS_GET_VERSION_WDYV_40 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_GET_VERSION_WDYV_40'".
EXPORTING
* DESTINATION = "
OBJECT_NAME = "
VERSNO = "
* IV_NO_RELEASE_TRANSFORMATION = "
IMPORTING
INFO_LINE = "
TABLES
* VSMODISRC = "
* PLPRT_TAB = "
* UICON_TAB = "
* UIDDC_TAB = "
* UIELE_TAB = "
* UIEVT_TAB = "
* UIPRP_TAB = "
* UITXT_TAB = "
* VCNTT_TAB = "
* VCONT_TAB = "
* VIEWS_TAB = "
* DEFIN_TAB = "
* VSHNO_TAB = "
* VSHPL_TAB = "
* DESCR_TAB = "
* IBPLG_TAB = "
* IBPLT_TAB = "
* MDLOG_TAB = "
* NAVIL_TAB = "
* NAVIT_TAB = "
* PLPAR_TAB = "
EXCEPTIONS
NO_VERSION = 1 SYSTEM_FAILURE = 2 COMMUNICATION_FAILURE = 3
IMPORTING Parameters details for SVRS_GET_VERSION_WDYV_40
DESTINATION -
Data type: RFCDES-RFCDESTOptional: Yes
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)
VERSNO -
Data type: VRSD-VERSNOOptional: No
Call by Reference: No ( called with pass by value option)
IV_NO_RELEASE_TRANSFORMATION -
Data type: SVRS_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SVRS_GET_VERSION_WDYV_40
INFO_LINE -
Data type: ABAPTEXT-LINEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SVRS_GET_VERSION_WDYV_40
VSMODISRC -
Data type: SMODISRCOptional: Yes
Call by Reference: No ( called with pass by value option)
PLPRT_TAB -
Data type: WDY_PLUG_PARAMT_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
UICON_TAB -
Data type: WDY_UI_CTX_BIND_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
UIDDC_TAB -
Data type: WDY_UI_DDIC_BIND_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
UIELE_TAB -
Data type: WDY_UI_ELEMENT_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
UIEVT_TAB -
Data type: WDY_UI_EVT_BIND_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
UIPRP_TAB -
Data type: WDY_UI_PROPERTY_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
UITXT_TAB -
Data type: WDY_UI_TEXT_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
VCNTT_TAB -
Data type: WDY_VIEW_CNTRT_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
VCONT_TAB -
Data type: WDY_VIEW_CNTR_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
VIEWS_TAB -
Data type: WDY_VS_PROPERTY_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
DEFIN_TAB -
Data type: WDY_VIEW_VRSOptional: Yes
Call by Reference: No ( called with pass by value option)
VSHNO_TAB -
Data type: WDY_VSH_NODE_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
VSHPL_TAB -
Data type: WDY_VSH_PHOLDER_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
DESCR_TAB -
Data type: WDY_VIEWT_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
IBPLG_TAB -
Data type: WDY_IOBOUND_PLUG_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
IBPLT_TAB -
Data type: WDY_IOBOUND_PLGT_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
MDLOG_TAB -
Data type: SMODILOGOptional: Yes
Call by Reference: No ( called with pass by value option)
NAVIL_TAB -
Data type: WDY_NAV_LINK_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
NAVIT_TAB -
Data type: WDY_NAV_TARGREF_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
PLPAR_TAB -
Data type: WDY_PLUG_PARAM_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_VERSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COMMUNICATION_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SVRS_GET_VERSION_WDYV_40 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_info_line | TYPE ABAPTEXT-LINE, " | |||
lt_vsmodisrc | TYPE STANDARD TABLE OF SMODISRC, " | |||
lv_no_version | TYPE SMODISRC, " | |||
lv_destination | TYPE RFCDES-RFCDEST, " | |||
lt_plprt_tab | TYPE STANDARD TABLE OF WDY_PLUG_PARAMT_TABLE, " | |||
lt_uicon_tab | TYPE STANDARD TABLE OF WDY_UI_CTX_BIND_TABLE, " | |||
lt_uiddc_tab | TYPE STANDARD TABLE OF WDY_UI_DDIC_BIND_TABLE, " | |||
lt_uiele_tab | TYPE STANDARD TABLE OF WDY_UI_ELEMENT_TABLE, " | |||
lt_uievt_tab | TYPE STANDARD TABLE OF WDY_UI_EVT_BIND_TABLE, " | |||
lt_uiprp_tab | TYPE STANDARD TABLE OF WDY_UI_PROPERTY_TABLE, " | |||
lt_uitxt_tab | TYPE STANDARD TABLE OF WDY_UI_TEXT_TABLE, " | |||
lt_vcntt_tab | TYPE STANDARD TABLE OF WDY_VIEW_CNTRT_TABLE, " | |||
lt_vcont_tab | TYPE STANDARD TABLE OF WDY_VIEW_CNTR_TABLE, " | |||
lt_views_tab | TYPE STANDARD TABLE OF WDY_VS_PROPERTY_TABLE, " | |||
lt_defin_tab | TYPE STANDARD TABLE OF WDY_VIEW_VRS, " | |||
lv_object_name | TYPE VRSD-OBJNAME, " | |||
lv_system_failure | TYPE VRSD, " | |||
lt_vshno_tab | TYPE STANDARD TABLE OF WDY_VSH_NODE_TABLE, " | |||
lt_vshpl_tab | TYPE STANDARD TABLE OF WDY_VSH_PHOLDER_TABLE, " | |||
lv_versno | TYPE VRSD-VERSNO, " | |||
lt_descr_tab | TYPE STANDARD TABLE OF WDY_VIEWT_TABLE, " | |||
lv_communication_failure | TYPE WDY_VIEWT_TABLE, " | |||
lt_ibplg_tab | TYPE STANDARD TABLE OF WDY_IOBOUND_PLUG_TABLE, " | |||
lv_iv_no_release_transformation | TYPE SVRS_BOOL, " | |||
lt_ibplt_tab | TYPE STANDARD TABLE OF WDY_IOBOUND_PLGT_TABLE, " | |||
lt_mdlog_tab | TYPE STANDARD TABLE OF SMODILOG, " | |||
lt_navil_tab | TYPE STANDARD TABLE OF WDY_NAV_LINK_TABLE, " | |||
lt_navit_tab | TYPE STANDARD TABLE OF WDY_NAV_TARGREF_TABLE, " | |||
lt_plpar_tab | TYPE STANDARD TABLE OF WDY_PLUG_PARAM_TABLE. " |
  CALL FUNCTION 'SVRS_GET_VERSION_WDYV_40' " |
EXPORTING | ||
DESTINATION | = lv_destination | |
OBJECT_NAME | = lv_object_name | |
VERSNO | = lv_versno | |
IV_NO_RELEASE_TRANSFORMATION | = lv_iv_no_release_transformation | |
IMPORTING | ||
INFO_LINE | = lv_info_line | |
TABLES | ||
VSMODISRC | = lt_vsmodisrc | |
PLPRT_TAB | = lt_plprt_tab | |
UICON_TAB | = lt_uicon_tab | |
UIDDC_TAB | = lt_uiddc_tab | |
UIELE_TAB | = lt_uiele_tab | |
UIEVT_TAB | = lt_uievt_tab | |
UIPRP_TAB | = lt_uiprp_tab | |
UITXT_TAB | = lt_uitxt_tab | |
VCNTT_TAB | = lt_vcntt_tab | |
VCONT_TAB | = lt_vcont_tab | |
VIEWS_TAB | = lt_views_tab | |
DEFIN_TAB | = lt_defin_tab | |
VSHNO_TAB | = lt_vshno_tab | |
VSHPL_TAB | = lt_vshpl_tab | |
DESCR_TAB | = lt_descr_tab | |
IBPLG_TAB | = lt_ibplg_tab | |
IBPLT_TAB | = lt_ibplt_tab | |
MDLOG_TAB | = lt_mdlog_tab | |
NAVIL_TAB | = lt_navil_tab | |
NAVIT_TAB | = lt_navit_tab | |
PLPAR_TAB | = lt_plpar_tab | |
EXCEPTIONS | ||
NO_VERSION = 1 | ||
SYSTEM_FAILURE = 2 | ||
COMMUNICATION_FAILURE = 3 | ||
. " SVRS_GET_VERSION_WDYV_40 |
ABAP code using 7.40 inline data declarations to call FM SVRS_GET_VERSION_WDYV_40
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 LINE FROM ABAPTEXT INTO @DATA(ld_info_line). | ||||
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_destination). | ||||
"SELECT single OBJNAME FROM VRSD INTO @DATA(ld_object_name). | ||||
"SELECT single VERSNO FROM VRSD INTO @DATA(ld_versno). | ||||
Search for further information about these or an SAP related objects