SAP ENHANCEMENT_SPOT_EDITOR Function Module for









ENHANCEMENT_SPOT_EDITOR is a standard enhancement spot editor 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 enhancement spot editor FM, simply by entering the name ENHANCEMENT_SPOT_EDITOR 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 ENHANCEMENT_SPOT_EDITOR 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 'ENHANCEMENT_SPOT_EDITOR'"
EXPORTING
I_OPERATION = "
I_EDITOR_STATE = "
* I_WB_MANAGER_REF = "
* I_VRSNO = '00000' "
I_OBJEKT = "
I_ENHHEADER = "
I_REF = "
I_REF_PLUGIN = "
I_REF_TOOL = "
I_STATE = "
I_DISPLAY_FLAG = "
I_TOGGLE_DISPLAY = "

IMPORTING
E_TOGGLE = "

CHANGING
C_SHORT_TEXT = "
C_ENH_LOCK = "
C_OPERATION = "
* C_EXP_MODE = ABAP_FALSE "

TABLES
P_IT_ENHOBJ = "
P_IT_ENHANCEMENTS = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for ENHANCEMENT_SPOT_EDITOR

I_OPERATION -

Data type:
Optional: No
Call by Reference: Yes

I_EDITOR_STATE -

Data type: CL_ENH_SPOT_EDITOR_STATE
Optional: No
Call by Reference: Yes

I_WB_MANAGER_REF -

Data type: IF_WB_MANAGER
Optional: Yes
Call by Reference: Yes

I_VRSNO -

Data type: VRSD-VERSNO
Default: '00000'
Optional: Yes
Call by Reference: Yes

I_OBJEKT -

Data type:
Optional: No
Call by Reference: Yes

I_ENHHEADER -

Data type:
Optional: No
Call by Reference: Yes

I_REF -

Data type: CL_ENH_SPOT_EDITOR
Optional: No
Call by Reference: Yes

I_REF_PLUGIN -

Data type: IF_ENH_SPOT_PLUGIN
Optional: No
Call by Reference: Yes

I_REF_TOOL -

Data type: IF_ENH_SPOT_TOOL
Optional: No
Call by Reference: Yes

I_STATE -

Data type: R3STATE
Optional: No
Call by Reference: Yes

I_DISPLAY_FLAG -

Data type: CHAR01
Optional: No
Call by Reference: Yes

I_TOGGLE_DISPLAY -

Data type: CHAR01
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for ENHANCEMENT_SPOT_EDITOR

E_TOGGLE -

Data type: CHAR01
Optional: No
Call by Reference: Yes

CHANGING Parameters details for ENHANCEMENT_SPOT_EDITOR

C_SHORT_TEXT -

Data type: STRING
Optional: No
Call by Reference: Yes

C_ENH_LOCK -

Data type: CHAR01
Optional: No
Call by Reference: Yes

C_OPERATION -

Data type: SEU_ACTION
Optional: No
Call by Reference: Yes

C_EXP_MODE -

Data type: ENHBOOLEAN
Default: ABAP_FALSE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for ENHANCEMENT_SPOT_EDITOR

P_IT_ENHOBJ -

Data type: ENHSPOTOBJ
Optional: No
Call by Reference: Yes

P_IT_ENHANCEMENTS -

Data type: ENHNAME_IT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ENHANCEMENT_SPOT_EDITOR 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_error  TYPE STRING, "   
lv_e_toggle  TYPE CHAR01, "   
lv_i_operation  TYPE CHAR01, "   
lt_p_it_enhobj  TYPE STANDARD TABLE OF ENHSPOTOBJ, "   
lv_c_short_text  TYPE STRING, "   
lv_i_editor_state  TYPE CL_ENH_SPOT_EDITOR_STATE, "   
lv_i_wb_manager_ref  TYPE IF_WB_MANAGER, "   
lv_i_vrsno  TYPE VRSD-VERSNO, "   '00000'
lv_i_objekt  TYPE VRSD, "   
lv_c_enh_lock  TYPE CHAR01, "   
lt_p_it_enhancements  TYPE STANDARD TABLE OF ENHNAME_IT, "   
lv_c_operation  TYPE SEU_ACTION, "   
lv_i_enhheader  TYPE SEU_ACTION, "   
lv_i_ref  TYPE CL_ENH_SPOT_EDITOR, "   
lv_c_exp_mode  TYPE ENHBOOLEAN, "   ABAP_FALSE
lv_i_ref_plugin  TYPE IF_ENH_SPOT_PLUGIN, "   
lv_i_ref_tool  TYPE IF_ENH_SPOT_TOOL, "   
lv_i_state  TYPE R3STATE, "   
lv_i_display_flag  TYPE CHAR01, "   
lv_i_toggle_display  TYPE CHAR01. "   

  CALL FUNCTION 'ENHANCEMENT_SPOT_EDITOR'  "
    EXPORTING
         I_OPERATION = lv_i_operation
         I_EDITOR_STATE = lv_i_editor_state
         I_WB_MANAGER_REF = lv_i_wb_manager_ref
         I_VRSNO = lv_i_vrsno
         I_OBJEKT = lv_i_objekt
         I_ENHHEADER = lv_i_enhheader
         I_REF = lv_i_ref
         I_REF_PLUGIN = lv_i_ref_plugin
         I_REF_TOOL = lv_i_ref_tool
         I_STATE = lv_i_state
         I_DISPLAY_FLAG = lv_i_display_flag
         I_TOGGLE_DISPLAY = lv_i_toggle_display
    IMPORTING
         E_TOGGLE = lv_e_toggle
    CHANGING
         C_SHORT_TEXT = lv_c_short_text
         C_ENH_LOCK = lv_c_enh_lock
         C_OPERATION = lv_c_operation
         C_EXP_MODE = lv_c_exp_mode
    TABLES
         P_IT_ENHOBJ = lt_p_it_enhobj
         P_IT_ENHANCEMENTS = lt_p_it_enhancements
    EXCEPTIONS
        ERROR = 1
. " ENHANCEMENT_SPOT_EDITOR




ABAP code using 7.40 inline data declarations to call FM ENHANCEMENT_SPOT_EDITOR

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 VERSNO FROM VRSD INTO @DATA(ld_i_vrsno).
DATA(ld_i_vrsno) = '00000'.
 
 
 
 
 
 
 
DATA(ld_c_exp_mode) = ABAP_FALSE.
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!