SAP DEQUEUE_EKCOTPLENV Function Module for Release lock on object EKCOTPLENV
DEQUEUE_EKCOTPLENV is a standard dequeue ekcotplenv SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Release lock on object EKCOTPLENV processing and below is the pattern details for this FM, 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 dequeue ekcotplenv FM, simply by entering the name DEQUEUE_EKCOTPLENV into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/KEN0002
Program Name: /1BCDWBEN/SAPLKEN0002
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DEQUEUE_EKCOTPLENV 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 'DEQUEUE_EKCOTPLENV'"Release lock on object EKCOTPLENV.
EXPORTING
* MODE_COFUNC2 = 'E' "Lock mode for table COFUNC2
* PARMNAME = "06th enqueue argument
* LINE_TYPE = "07th enqueue argument
* EDITORTYPE = "08th enqueue argument
* TPLCOL = "09th enqueue argument
* X_NAME' ' = ' ' "Fill argument 02 with initial value?
* X_ENVIRONMNT = ' ' "Fill argument 03 with initial value?
* X_LOG_FUNC = ' ' "Fill argument 04 with initial value?
* X_LANGU = ' ' "Fill argument 05 with initial value?
* X_PARMNAME = ' ' "Fill argument 06 with initial value?
* X_LINE_TYPE = ' ' "Fill argument 07 with initial value?
* MODE_COFUNCL = 'E' "Lock mode for table COFUNCL
* X_EDITORTYPE = ' ' "Fill argument 08 with initial value?
* X_TPLCOL = ' ' "Fill argument 09 with initial value?
* _SCOPE = '3' "
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* MODE_COPARAM = 'E' "Lock mode for table COPARAM
* MODE_COFUNC1 = 'E' "Lock mode for table COFUNC1
* MANDT = SY-MANDT "01th enqueue argument
* NAME' ' = "02th enqueue argument
* ENVIRONMNT = "03th enqueue argument
* LOG_FUNC = "04th enqueue argument
* LANGU = "05th enqueue argument
IMPORTING Parameters details for DEQUEUE_EKCOTPLENV
MODE_COFUNC2 - Lock mode for table COFUNC2
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PARMNAME - 06th enqueue argument
Data type: COPARAM-PARMNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
LINE_TYPE - 07th enqueue argument
Data type: COFUNC1-LINE_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EDITORTYPE - 08th enqueue argument
Data type: COFUNC1-EDITORTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
TPLCOL - 09th enqueue argument
Data type: COFUNC1-TPLCOLOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NAMESPACE - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ENVIRONMNT - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LOG_FUNC - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LANGU - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PARMNAME - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LINE_TYPE - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_COFUNCL - Lock mode for table COFUNCL
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_EDITORTYPE - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_TPLCOL - Fill argument 09 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_SCOPE -
Data type:Default: '3'
Optional: Yes
Call by Reference: No ( called with pass by value option)
_SYNCHRON - Synchonous unlock
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_COLLECT - Initially only collect lock
Data type: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_COPARAM - Lock mode for table COPARAM
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_COFUNC1 - Lock mode for table COFUNC1
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MANDT - 01th enqueue argument
Data type: COFUNC2-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
NAMESPACE - 02th enqueue argument
Data type: COFUNC2-NAMESPACEOptional: Yes
Call by Reference: No ( called with pass by value option)
ENVIRONMNT - 03th enqueue argument
Data type: COFUNC2-ENVIRONMNTOptional: Yes
Call by Reference: No ( called with pass by value option)
LOG_FUNC - 04th enqueue argument
Data type: COFUNC2-LOG_FUNCOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGU - 05th enqueue argument
Data type: COFUNCL-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DEQUEUE_EKCOTPLENV 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_mode_cofunc2 | TYPE ENQMODE, " 'E' | |||
| lv_parmname | TYPE COPARAM-PARMNAME, " | |||
| lv_line_type | TYPE COFUNC1-LINE_TYPE, " | |||
| lv_editortype | TYPE COFUNC1-EDITORTYPE, " | |||
| lv_tplcol | TYPE COFUNC1-TPLCOL, " | |||
| lv_x_namespace | TYPE COFUNC1, " SPACE | |||
| lv_x_environmnt | TYPE COFUNC1, " SPACE | |||
| lv_x_log_func | TYPE COFUNC1, " SPACE | |||
| lv_x_langu | TYPE COFUNC1, " SPACE | |||
| lv_x_parmname | TYPE COFUNC1, " SPACE | |||
| lv_x_line_type | TYPE COFUNC1, " SPACE | |||
| lv_mode_cofuncl | TYPE ENQMODE, " 'E' | |||
| lv_x_editortype | TYPE ENQMODE, " SPACE | |||
| lv_x_tplcol | TYPE ENQMODE, " SPACE | |||
| lv__scope | TYPE ENQMODE, " '3' | |||
| lv__synchron | TYPE ENQMODE, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_mode_coparam | TYPE ENQMODE, " 'E' | |||
| lv_mode_cofunc1 | TYPE ENQMODE, " 'E' | |||
| lv_mandt | TYPE COFUNC2-MANDT, " SY-MANDT | |||
| lv_namespace | TYPE COFUNC2-NAMESPACE, " | |||
| lv_environmnt | TYPE COFUNC2-ENVIRONMNT, " | |||
| lv_log_func | TYPE COFUNC2-LOG_FUNC, " | |||
| lv_langu | TYPE COFUNCL-LANGU. " |
|   CALL FUNCTION 'DEQUEUE_EKCOTPLENV' "Release lock on object EKCOTPLENV |
| EXPORTING | ||
| MODE_COFUNC2 | = lv_mode_cofunc2 | |
| PARMNAME | = lv_parmname | |
| LINE_TYPE | = lv_line_type | |
| EDITORTYPE | = lv_editortype | |
| TPLCOL | = lv_tplcol | |
| X_NAMESPACE | = lv_x_namespace | |
| X_ENVIRONMNT | = lv_x_environmnt | |
| X_LOG_FUNC | = lv_x_log_func | |
| X_LANGU | = lv_x_langu | |
| X_PARMNAME | = lv_x_parmname | |
| X_LINE_TYPE | = lv_x_line_type | |
| MODE_COFUNCL | = lv_mode_cofuncl | |
| X_EDITORTYPE | = lv_x_editortype | |
| X_TPLCOL | = lv_x_tplcol | |
| _SCOPE | = lv__scope | |
| _SYNCHRON | = lv__synchron | |
| _COLLECT | = lv__collect | |
| MODE_COPARAM | = lv_mode_coparam | |
| MODE_COFUNC1 | = lv_mode_cofunc1 | |
| MANDT | = lv_mandt | |
| NAMESPACE | = lv_namespace | |
| ENVIRONMNT | = lv_environmnt | |
| LOG_FUNC | = lv_log_func | |
| LANGU | = lv_langu | |
| . " DEQUEUE_EKCOTPLENV | ||
ABAP code using 7.40 inline data declarations to call FM DEQUEUE_EKCOTPLENV
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_mode_cofunc2) | = 'E'. | |||
| "SELECT single PARMNAME FROM COPARAM INTO @DATA(ld_parmname). | ||||
| "SELECT single LINE_TYPE FROM COFUNC1 INTO @DATA(ld_line_type). | ||||
| "SELECT single EDITORTYPE FROM COFUNC1 INTO @DATA(ld_editortype). | ||||
| "SELECT single TPLCOL FROM COFUNC1 INTO @DATA(ld_tplcol). | ||||
| DATA(ld_x_namespace) | = ' '. | |||
| DATA(ld_x_environmnt) | = ' '. | |||
| DATA(ld_x_log_func) | = ' '. | |||
| DATA(ld_x_langu) | = ' '. | |||
| DATA(ld_x_parmname) | = ' '. | |||
| DATA(ld_x_line_type) | = ' '. | |||
| DATA(ld_mode_cofuncl) | = 'E'. | |||
| DATA(ld_x_editortype) | = ' '. | |||
| DATA(ld_x_tplcol) | = ' '. | |||
| DATA(ld__scope) | = '3'. | |||
| DATA(ld__synchron) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| DATA(ld_mode_coparam) | = 'E'. | |||
| DATA(ld_mode_cofunc1) | = 'E'. | |||
| "SELECT single MANDT FROM COFUNC2 INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| "SELECT single NAMESPACE FROM COFUNC2 INTO @DATA(ld_namespace). | ||||
| "SELECT single ENVIRONMNT FROM COFUNC2 INTO @DATA(ld_environmnt). | ||||
| "SELECT single LOG_FUNC FROM COFUNC2 INTO @DATA(ld_log_func). | ||||
| "SELECT single LANGU FROM COFUNCL INTO @DATA(ld_langu). | ||||
Search for further information about these or an SAP related objects