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

Function FUNCTION_EXECUTE 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 'FUNCTION_EXECUTE'".
EXPORTING
FUNKTION = "Entered function code
* FUNKTIONSTYP = '1' "
KOPFGRUPPE = "Grouping parameters for processing
POSITIONSGRUPPE = "Grouping parameters for processing locations
PROGRAMM = "Calling program
IMPORTING
AKTYP = "Transaction type of the the follow
LEAVE = "Set after returning from function
LEAVE_SCREEN = "
CUA_PARA1 = "Transfer parameter 1 for the CUA h
CUA_PARA2 = "Transfer parameter 2 for the CUA h
CUA_PARA3 = "Transfer parameter 3 for the CUA h
CUA_PARA4 = "Transfer parameter 4 for the CUA h
CUA_STATUS = "CUA status for specifying the acti
CUA_TITEL = "Name of the CUA header line
DUNKEL = "Next processing step runs in the b
FOLGEFUNKTION = "Default for the function code
IMPORTING Parameters details for FUNCTION_EXECUTE
FUNKTION - Entered function code
Data type: T185F-FCODEOptional: No
Call by Reference: No ( called with pass by value option)
FUNKTIONSTYP -
Data type: T185F-FCINTDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KOPFGRUPPE - Grouping parameters for processing
Data type: T185-KOPGROptional: No
Call by Reference: No ( called with pass by value option)
POSITIONSGRUPPE - Grouping parameters for processing locations
Data type: T185-POSGROptional: No
Call by Reference: No ( called with pass by value option)
PROGRAMM - Calling program
Data type: T185F-AGIDVOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FUNCTION_EXECUTE
AKTYP - Transaction type of the the follow
Data type: T185F-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
LEAVE - Set after returning from function
Data type: T185-RUFENOptional: No
Call by Reference: No ( called with pass by value option)
LEAVE_SCREEN -
Data type: T185-RUFENOptional: No
Call by Reference: No ( called with pass by value option)
CUA_PARA1 - Transfer parameter 1 for the CUA h
Data type: T185V-PARA1Optional: No
Call by Reference: No ( called with pass by value option)
CUA_PARA2 - Transfer parameter 2 for the CUA h
Data type: T185V-PARA2Optional: No
Call by Reference: No ( called with pass by value option)
CUA_PARA3 - Transfer parameter 3 for the CUA h
Data type: T185V-PARA3Optional: No
Call by Reference: No ( called with pass by value option)
CUA_PARA4 - Transfer parameter 4 for the CUA h
Data type: T185V-PARA4Optional: No
Call by Reference: No ( called with pass by value option)
CUA_STATUS - CUA status for specifying the acti
Data type: T185V-STATUSOptional: No
Call by Reference: No ( called with pass by value option)
CUA_TITEL - Name of the CUA header line
Data type: T185V-CTITELOptional: No
Call by Reference: No ( called with pass by value option)
DUNKEL - Next processing step runs in the b
Data type: T185-DUNKELOptional: No
Call by Reference: No ( called with pass by value option)
FOLGEFUNKTION - Default for the function code
Data type: T185F-FCODEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FUNCTION_EXECUTE 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_aktyp | TYPE T185F-AKTYP, " | |||
| lv_funktion | TYPE T185F-FCODE, " | |||
| lv_leave | TYPE T185-RUFEN, " | |||
| lv_leave_screen | TYPE T185-RUFEN, " | |||
| lv_cua_para1 | TYPE T185V-PARA1, " | |||
| lv_funktionstyp | TYPE T185F-FCINT, " '1' | |||
| lv_cua_para2 | TYPE T185V-PARA2, " | |||
| lv_kopfgruppe | TYPE T185-KOPGR, " | |||
| lv_cua_para3 | TYPE T185V-PARA3, " | |||
| lv_positionsgruppe | TYPE T185-POSGR, " | |||
| lv_programm | TYPE T185F-AGIDV, " | |||
| lv_cua_para4 | TYPE T185V-PARA4, " | |||
| lv_cua_status | TYPE T185V-STATUS, " | |||
| lv_cua_titel | TYPE T185V-CTITEL, " | |||
| lv_dunkel | TYPE T185-DUNKEL, " | |||
| lv_folgefunktion | TYPE T185F-FCODE. " |
|   CALL FUNCTION 'FUNCTION_EXECUTE' " |
| EXPORTING | ||
| FUNKTION | = lv_funktion | |
| FUNKTIONSTYP | = lv_funktionstyp | |
| KOPFGRUPPE | = lv_kopfgruppe | |
| POSITIONSGRUPPE | = lv_positionsgruppe | |
| PROGRAMM | = lv_programm | |
| IMPORTING | ||
| AKTYP | = lv_aktyp | |
| LEAVE | = lv_leave | |
| LEAVE_SCREEN | = lv_leave_screen | |
| CUA_PARA1 | = lv_cua_para1 | |
| CUA_PARA2 | = lv_cua_para2 | |
| CUA_PARA3 | = lv_cua_para3 | |
| CUA_PARA4 | = lv_cua_para4 | |
| CUA_STATUS | = lv_cua_status | |
| CUA_TITEL | = lv_cua_titel | |
| DUNKEL | = lv_dunkel | |
| FOLGEFUNKTION | = lv_folgefunktion | |
| . " FUNCTION_EXECUTE | ||
ABAP code using 7.40 inline data declarations to call FM FUNCTION_EXECUTE
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 AKTYP FROM T185F INTO @DATA(ld_aktyp). | ||||
| "SELECT single FCODE FROM T185F INTO @DATA(ld_funktion). | ||||
| "SELECT single RUFEN FROM T185 INTO @DATA(ld_leave). | ||||
| "SELECT single RUFEN FROM T185 INTO @DATA(ld_leave_screen). | ||||
| "SELECT single PARA1 FROM T185V INTO @DATA(ld_cua_para1). | ||||
| "SELECT single FCINT FROM T185F INTO @DATA(ld_funktionstyp). | ||||
| DATA(ld_funktionstyp) | = '1'. | |||
| "SELECT single PARA2 FROM T185V INTO @DATA(ld_cua_para2). | ||||
| "SELECT single KOPGR FROM T185 INTO @DATA(ld_kopfgruppe). | ||||
| "SELECT single PARA3 FROM T185V INTO @DATA(ld_cua_para3). | ||||
| "SELECT single POSGR FROM T185 INTO @DATA(ld_positionsgruppe). | ||||
| "SELECT single AGIDV FROM T185F INTO @DATA(ld_programm). | ||||
| "SELECT single PARA4 FROM T185V INTO @DATA(ld_cua_para4). | ||||
| "SELECT single STATUS FROM T185V INTO @DATA(ld_cua_status). | ||||
| "SELECT single CTITEL FROM T185V INTO @DATA(ld_cua_titel). | ||||
| "SELECT single DUNKEL FROM T185 INTO @DATA(ld_dunkel). | ||||
| "SELECT single FCODE FROM T185F INTO @DATA(ld_folgefunktion). | ||||
Search for further information about these or an SAP related objects