SAP GET_SMIM_VERSION Function Module for
GET_SMIM_VERSION is a standard get smim version 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 get smim version FM, simply by entering the name GET_SMIM_VERSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: SMIME_VERSION
Program Name: SAPLSMIME_VERSION
Main Program: SAPLSMIME_VERSION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GET_SMIM_VERSION 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 'GET_SMIM_VERSION'".
EXPORTING
I_OBJECT_NAME = "Object Name
I_VERSNO = "Version Number
* I_DESTINATION = "
IMPORTING
E_INFO_LINE = "Text editor text line
E_MIME_VERSION = "
TABLES
* VSMODILOG = "Log of Customer Modifications to Dev. Env. Objects
EXCEPTIONS
NO_VERSION = 1 SYSTEM_FAILURE = 2 COMMUNICATION_FAILURE = 3 PARAMETER_MISSING = 4
IMPORTING Parameters details for GET_SMIM_VERSION
I_OBJECT_NAME - Object Name
Data type: VRSD-OBJNAMEOptional: No
Call by Reference: Yes
I_VERSNO - Version Number
Data type: VRSD-VERSNOOptional: No
Call by Reference: Yes
I_DESTINATION -
Data type: RFCDES-RFCDESTOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for GET_SMIM_VERSION
E_INFO_LINE - Text editor text line
Data type: ABAPTEXT-LINEOptional: No
Call by Reference: Yes
E_MIME_VERSION -
Data type: SVRS2_SMIMOptional: No
Call by Reference: Yes
TABLES Parameters details for GET_SMIM_VERSION
VSMODILOG - Log of Customer Modifications to Dev. Env. Objects
Data type: SMODILOGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_VERSION -
Data type:Optional: No
Call by Reference: Yes
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: Yes
COMMUNICATION_FAILURE -
Data type:Optional: No
Call by Reference: Yes
PARAMETER_MISSING - Parameter Missing
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GET_SMIM_VERSION 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_vsmodilog | TYPE STANDARD TABLE OF SMODILOG, " | |||
| lv_no_version | TYPE SMODILOG, " | |||
| lv_e_info_line | TYPE ABAPTEXT-LINE, " | |||
| lv_i_object_name | TYPE VRSD-OBJNAME, " | |||
| lv_i_versno | TYPE VRSD-VERSNO, " | |||
| lv_e_mime_version | TYPE SVRS2_SMIM, " | |||
| lv_system_failure | TYPE SVRS2_SMIM, " | |||
| lv_i_destination | TYPE RFCDES-RFCDEST, " | |||
| lv_communication_failure | TYPE RFCDES, " | |||
| lv_parameter_missing | TYPE RFCDES. " |
|   CALL FUNCTION 'GET_SMIM_VERSION' " |
| EXPORTING | ||
| I_OBJECT_NAME | = lv_i_object_name | |
| I_VERSNO | = lv_i_versno | |
| I_DESTINATION | = lv_i_destination | |
| IMPORTING | ||
| E_INFO_LINE | = lv_e_info_line | |
| E_MIME_VERSION | = lv_e_mime_version | |
| TABLES | ||
| VSMODILOG | = lt_vsmodilog | |
| EXCEPTIONS | ||
| NO_VERSION = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| COMMUNICATION_FAILURE = 3 | ||
| PARAMETER_MISSING = 4 | ||
| . " GET_SMIM_VERSION | ||
ABAP code using 7.40 inline data declarations to call FM GET_SMIM_VERSION
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_e_info_line). | ||||
| "SELECT single OBJNAME FROM VRSD INTO @DATA(ld_i_object_name). | ||||
| "SELECT single VERSNO FROM VRSD INTO @DATA(ld_i_versno). | ||||
| "SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_i_destination). | ||||
Search for further information about these or an SAP related objects