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

Function CLSD_EXECUTE_FUNCTION 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 'CLSD_EXECUTE_FUNCTION'".
EXPORTING
* I_TCODE = "Transaction Code
* I_REPORT = "Report
* I_KEY_DATE = SY-DATUM "Key Date
* I_MODE = '1' "
* I_TYPE = "
TABLES
I_OBJECTS_TAB = "
EXCEPTIONS
FUNCTION_DOES_NOT_EXIST = 1 OBJECTTABLE_DOES_NOT_EXIST = 2
IMPORTING Parameters details for CLSD_EXECUTE_FUNCTION
I_TCODE - Transaction Code
Data type: TCODEOptional: Yes
Call by Reference: Yes
I_REPORT - Report
Data type: PROGRAMMOptional: Yes
Call by Reference: Yes
I_KEY_DATE - Key Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
I_MODE -
Data type: TR_RE_TYPDefault: '1'
Optional: Yes
Call by Reference: Yes
I_TYPE -
Data type: FUNCTIONTYPEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for CLSD_EXECUTE_FUNCTION
I_OBJECTS_TAB -
Data type: CLSEL_SEARCH_OBJECTSOptional: No
Call by Reference: Yes
EXCEPTIONS details
FUNCTION_DOES_NOT_EXIST - Function Does Not Exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECTTABLE_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLSD_EXECUTE_FUNCTION 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_i_tcode | TYPE TCODE, " | |||
| lt_i_objects_tab | TYPE STANDARD TABLE OF CLSEL_SEARCH_OBJECTS, " | |||
| lv_function_does_not_exist | TYPE CLSEL_SEARCH_OBJECTS, " | |||
| lv_i_report | TYPE PROGRAMM, " | |||
| lv_objecttable_does_not_exist | TYPE PROGRAMM, " | |||
| lv_i_key_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_i_mode | TYPE TR_RE_TYP, " '1' | |||
| lv_i_type | TYPE FUNCTIONTYPE. " |
|   CALL FUNCTION 'CLSD_EXECUTE_FUNCTION' " |
| EXPORTING | ||
| I_TCODE | = lv_i_tcode | |
| I_REPORT | = lv_i_report | |
| I_KEY_DATE | = lv_i_key_date | |
| I_MODE | = lv_i_mode | |
| I_TYPE | = lv_i_type | |
| TABLES | ||
| I_OBJECTS_TAB | = lt_i_objects_tab | |
| EXCEPTIONS | ||
| FUNCTION_DOES_NOT_EXIST = 1 | ||
| OBJECTTABLE_DOES_NOT_EXIST = 2 | ||
| . " CLSD_EXECUTE_FUNCTION | ||
ABAP code using 7.40 inline data declarations to call FM CLSD_EXECUTE_FUNCTION
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 DATUM FROM SY INTO @DATA(ld_i_key_date). | ||||
| DATA(ld_i_key_date) | = SY-DATUM. | |||
| DATA(ld_i_mode) | = '1'. | |||
Search for further information about these or an SAP related objects