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

Function ENH_SPOT_RETRIEVE_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 'ENH_SPOT_RETRIEVE_VERSION'".
EXPORTING
IM_ENH_SPOT = "
IM_VERSION = "
* I_STORE_TEMP_VERS = ABAP_TRUE "
* I_SCWB_CALL = ABAP_FALSE "
* I_TRKORR = "
* I_DEVCLASS = "
IMPORTING
EX_SPOT_OBJ = "
EXCEPTIONS
CX_ENH_MOD_NOT_ALLOWED = 1 CX_ENH_IO_ERROR = 2 CX_ENH_PERMISSION_DENIED = 3 CX_ENH_IS_LOCKED = 4 CX_ENH_CREATE_ERROR = 5 CX_ENH_CANCELED = 6 CX_ENH_INTERNAL_ERROR = 7
IMPORTING Parameters details for ENH_SPOT_RETRIEVE_VERSION
IM_ENH_SPOT -
Data type: ENHSPOTNAMEOptional: No
Call by Reference: Yes
IM_VERSION -
Data type: VERSNOOptional: No
Call by Reference: Yes
I_STORE_TEMP_VERS -
Data type: ENHBOOLEANDefault: ABAP_TRUE
Optional: Yes
Call by Reference: Yes
I_SCWB_CALL -
Data type: ENHBOOLEANDefault: ABAP_FALSE
Optional: Yes
Call by Reference: Yes
I_TRKORR -
Data type: TRKORROptional: Yes
Call by Reference: Yes
I_DEVCLASS -
Data type: DEVCLASSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ENH_SPOT_RETRIEVE_VERSION
EX_SPOT_OBJ -
Data type: IF_ENH_SPOT_TOOLOptional: No
Call by Reference: Yes
EXCEPTIONS details
CX_ENH_MOD_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: Yes
CX_ENH_IO_ERROR -
Data type:Optional: No
Call by Reference: Yes
CX_ENH_PERMISSION_DENIED -
Data type:Optional: No
Call by Reference: Yes
CX_ENH_IS_LOCKED -
Data type:Optional: No
Call by Reference: Yes
CX_ENH_CREATE_ERROR -
Data type:Optional: No
Call by Reference: Yes
CX_ENH_CANCELED -
Data type:Optional: No
Call by Reference: Yes
CX_ENH_INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ENH_SPOT_RETRIEVE_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: | ||||
| lv_ex_spot_obj | TYPE IF_ENH_SPOT_TOOL, " | |||
| lv_im_enh_spot | TYPE ENHSPOTNAME, " | |||
| lv_cx_enh_mod_not_allowed | TYPE ENHSPOTNAME, " | |||
| lv_im_version | TYPE VERSNO, " | |||
| lv_cx_enh_io_error | TYPE VERSNO, " | |||
| lv_i_store_temp_vers | TYPE ENHBOOLEAN, " ABAP_TRUE | |||
| lv_cx_enh_permission_denied | TYPE ENHBOOLEAN, " | |||
| lv_i_scwb_call | TYPE ENHBOOLEAN, " ABAP_FALSE | |||
| lv_cx_enh_is_locked | TYPE ENHBOOLEAN, " | |||
| lv_i_trkorr | TYPE TRKORR, " | |||
| lv_cx_enh_create_error | TYPE TRKORR, " | |||
| lv_i_devclass | TYPE DEVCLASS, " | |||
| lv_cx_enh_canceled | TYPE DEVCLASS, " | |||
| lv_cx_enh_internal_error | TYPE DEVCLASS. " |
|   CALL FUNCTION 'ENH_SPOT_RETRIEVE_VERSION' " |
| EXPORTING | ||
| IM_ENH_SPOT | = lv_im_enh_spot | |
| IM_VERSION | = lv_im_version | |
| I_STORE_TEMP_VERS | = lv_i_store_temp_vers | |
| I_SCWB_CALL | = lv_i_scwb_call | |
| I_TRKORR | = lv_i_trkorr | |
| I_DEVCLASS | = lv_i_devclass | |
| IMPORTING | ||
| EX_SPOT_OBJ | = lv_ex_spot_obj | |
| EXCEPTIONS | ||
| CX_ENH_MOD_NOT_ALLOWED = 1 | ||
| CX_ENH_IO_ERROR = 2 | ||
| CX_ENH_PERMISSION_DENIED = 3 | ||
| CX_ENH_IS_LOCKED = 4 | ||
| CX_ENH_CREATE_ERROR = 5 | ||
| CX_ENH_CANCELED = 6 | ||
| CX_ENH_INTERNAL_ERROR = 7 | ||
| . " ENH_SPOT_RETRIEVE_VERSION | ||
ABAP code using 7.40 inline data declarations to call FM ENH_SPOT_RETRIEVE_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.| DATA(ld_i_store_temp_vers) | = ABAP_TRUE. | |||
| DATA(ld_i_scwb_call) | = ABAP_FALSE. | |||
Search for further information about these or an SAP related objects