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

Function ENQUEUE_EKCOFIES 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 'ENQUEUE_EKCOFIES'".
EXPORTING
* MODE_COFIE = 'S' "
* WRTTP = "
* X_RVERS = ' ' "
* X_RRCTY = ' ' "
* X_RYEAR = ' ' "
* X_POPER = ' ' "
* X_RBUKRS = ' ' "
* X_RBUSA = ' ' "
* X_VRGNG = ' ' "
* X_WRTTP = ' ' "
* _SCOPE = '2' "
* RCLNT = SY-MANDT "
* _WAIT = ' ' "
* _COLLECT = ' ' "
* RVERS = "
* RRCTY = "
* RYEAR = "
* POPER = "
* RBUKRS = "
* RBUSA = "
* VRGNG = "
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_EKCOFIES
MODE_COFIE -
Data type: DD26E-ENQMODEDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WRTTP -
Data type: COFIE-WRTTPOptional: Yes
Call by Reference: No ( called with pass by value option)
X_RVERS -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RRCTY -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RYEAR -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_POPER -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RBUKRS -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RBUSA -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_VRGNG -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_WRTTP -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_SCOPE -
Data type:Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RCLNT -
Data type: COFIE-RCLNTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
_WAIT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_COLLECT -
Data type: DDENQ_LIKE-COLLECTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
RVERS -
Data type: COFIE-RVERSOptional: Yes
Call by Reference: No ( called with pass by value option)
RRCTY -
Data type: COFIE-RRCTYOptional: Yes
Call by Reference: No ( called with pass by value option)
RYEAR -
Data type: COFIE-RYEAROptional: Yes
Call by Reference: No ( called with pass by value option)
POPER -
Data type: COFIE-POPEROptional: Yes
Call by Reference: No ( called with pass by value option)
RBUKRS -
Data type: COFIE-RBUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
RBUSA -
Data type: COFIE-RBUSAOptional: Yes
Call by Reference: No ( called with pass by value option)
VRGNG -
Data type: COFIE-VRGNGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ENQUEUE_EKCOFIES 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_cofie | TYPE DD26E-ENQMODE, " 'S' | |||
| lv_foreign_lock | TYPE DD26E, " | |||
| lv_wrttp | TYPE COFIE-WRTTP, " | |||
| lv_x_rvers | TYPE COFIE, " SPACE | |||
| lv_x_rrcty | TYPE COFIE, " SPACE | |||
| lv_x_ryear | TYPE COFIE, " SPACE | |||
| lv_x_poper | TYPE COFIE, " SPACE | |||
| lv_x_rbukrs | TYPE COFIE, " SPACE | |||
| lv_x_rbusa | TYPE COFIE, " SPACE | |||
| lv_x_vrgng | TYPE COFIE, " SPACE | |||
| lv_x_wrttp | TYPE COFIE, " SPACE | |||
| lv__scope | TYPE COFIE, " '2' | |||
| lv_rclnt | TYPE COFIE-RCLNT, " SY-MANDT | |||
| lv_system_failure | TYPE COFIE, " | |||
| lv__wait | TYPE COFIE, " SPACE | |||
| lv__collect | TYPE DDENQ_LIKE-COLLECT, " ' ' | |||
| lv_rvers | TYPE COFIE-RVERS, " | |||
| lv_rrcty | TYPE COFIE-RRCTY, " | |||
| lv_ryear | TYPE COFIE-RYEAR, " | |||
| lv_poper | TYPE COFIE-POPER, " | |||
| lv_rbukrs | TYPE COFIE-RBUKRS, " | |||
| lv_rbusa | TYPE COFIE-RBUSA, " | |||
| lv_vrgng | TYPE COFIE-VRGNG. " |
|   CALL FUNCTION 'ENQUEUE_EKCOFIES' " |
| EXPORTING | ||
| MODE_COFIE | = lv_mode_cofie | |
| WRTTP | = lv_wrttp | |
| X_RVERS | = lv_x_rvers | |
| X_RRCTY | = lv_x_rrcty | |
| X_RYEAR | = lv_x_ryear | |
| X_POPER | = lv_x_poper | |
| X_RBUKRS | = lv_x_rbukrs | |
| X_RBUSA | = lv_x_rbusa | |
| X_VRGNG | = lv_x_vrgng | |
| X_WRTTP | = lv_x_wrttp | |
| _SCOPE | = lv__scope | |
| RCLNT | = lv_rclnt | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| RVERS | = lv_rvers | |
| RRCTY | = lv_rrcty | |
| RYEAR | = lv_ryear | |
| POPER | = lv_poper | |
| RBUKRS | = lv_rbukrs | |
| RBUSA | = lv_rbusa | |
| VRGNG | = lv_vrgng | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_EKCOFIES | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EKCOFIES
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 ENQMODE FROM DD26E INTO @DATA(ld_mode_cofie). | ||||
| DATA(ld_mode_cofie) | = 'S'. | |||
| "SELECT single WRTTP FROM COFIE INTO @DATA(ld_wrttp). | ||||
| DATA(ld_x_rvers) | = ' '. | |||
| DATA(ld_x_rrcty) | = ' '. | |||
| DATA(ld_x_ryear) | = ' '. | |||
| DATA(ld_x_poper) | = ' '. | |||
| DATA(ld_x_rbukrs) | = ' '. | |||
| DATA(ld_x_rbusa) | = ' '. | |||
| DATA(ld_x_vrgng) | = ' '. | |||
| DATA(ld_x_wrttp) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| "SELECT single RCLNT FROM COFIE INTO @DATA(ld_rclnt). | ||||
| DATA(ld_rclnt) | = SY-MANDT. | |||
| DATA(ld__wait) | = ' '. | |||
| "SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect). | ||||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single RVERS FROM COFIE INTO @DATA(ld_rvers). | ||||
| "SELECT single RRCTY FROM COFIE INTO @DATA(ld_rrcty). | ||||
| "SELECT single RYEAR FROM COFIE INTO @DATA(ld_ryear). | ||||
| "SELECT single POPER FROM COFIE INTO @DATA(ld_poper). | ||||
| "SELECT single RBUKRS FROM COFIE INTO @DATA(ld_rbukrs). | ||||
| "SELECT single RBUSA FROM COFIE INTO @DATA(ld_rbusa). | ||||
| "SELECT single VRGNG FROM COFIE INTO @DATA(ld_vrgng). | ||||
Search for further information about these or an SAP related objects