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

Function ENQUEUE_EPT5DB4 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_EPT5DB4'"Request lock for object EPT5DB4.
EXPORTING
* MODE_T5DB4 = 'E' "Lock mode for table T5DB4
* KDAUF = "09th enqueue argument
* KDPOS = "10th enqueue argument
* KSTRG = "11th enqueue argument
* ENDDA = "12th enqueue argument
* X_BAUID = ' ' "Fill argument 02 with initial value?
* X_POSNR = ' ' "Fill argument 03 with initial value?
* X_AUFNR = ' ' "Fill argument 04 with initial value?
* X_KOKRS = ' ' "Fill argument 05 with initial value?
* X_KOSTL = ' ' "Fill argument 06 with initial value?
* X_NPLNR = ' ' "Fill argument 07 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_VORNR = ' ' "Fill argument 08 with initial value?
* X_KDAUF = ' ' "Fill argument 09 with initial value?
* X_KDPOS = ' ' "Fill argument 10 with initial value?
* X_KSTRG = ' ' "Fill argument 11 with initial value?
* X_ENDDA = ' ' "Fill argument 12 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* BAUID = "02th enqueue argument
* POSNR = "03th enqueue argument
* AUFNR = "04th enqueue argument
* KOKRS = "05th enqueue argument
* KOSTL = "06th enqueue argument
* NPLNR = "07th enqueue argument
* VORNR = "08th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_EPT5DB4
MODE_T5DB4 - Lock mode for table T5DB4
Data type: DD26E-ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KDAUF - 09th enqueue argument
Data type: T5DB4-KDAUFOptional: Yes
Call by Reference: No ( called with pass by value option)
KDPOS - 10th enqueue argument
Data type: T5DB4-KDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
KSTRG - 11th enqueue argument
Data type: T5DB4-KSTRGOptional: Yes
Call by Reference: No ( called with pass by value option)
ENDDA - 12th enqueue argument
Data type: T5DB4-ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
X_BAUID - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_POSNR - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_AUFNR - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KOKRS - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KOSTL - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NPLNR - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MANDT - 01th enqueue argument
Data type: T5DB4-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_VORNR - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KDAUF - Fill argument 09 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KDPOS - Fill argument 10 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KSTRG - Fill argument 11 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ENDDA - Fill argument 12 with initial value?
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)
_WAIT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_COLLECT - Initially only collect lock
Data type: DDENQ_LIKE-COLLECTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
BAUID - 02th enqueue argument
Data type: T5DB4-BAUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
POSNR - 03th enqueue argument
Data type: T5DB4-POSNROptional: Yes
Call by Reference: No ( called with pass by value option)
AUFNR - 04th enqueue argument
Data type: T5DB4-AUFNROptional: Yes
Call by Reference: No ( called with pass by value option)
KOKRS - 05th enqueue argument
Data type: T5DB4-KOKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
KOSTL - 06th enqueue argument
Data type: T5DB4-KOSTLOptional: Yes
Call by Reference: No ( called with pass by value option)
NPLNR - 07th enqueue argument
Data type: T5DB4-NPLNROptional: Yes
Call by Reference: No ( called with pass by value option)
VORNR - 08th enqueue argument
Data type: T5DB4-VORNROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_LOCK - Object already locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE - Internal error from enqueue server
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ENQUEUE_EPT5DB4 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_t5db4 | TYPE DD26E-ENQMODE, " 'E' | |||
| lv_foreign_lock | TYPE DD26E, " | |||
| lv_kdauf | TYPE T5DB4-KDAUF, " | |||
| lv_kdpos | TYPE T5DB4-KDPOS, " | |||
| lv_kstrg | TYPE T5DB4-KSTRG, " | |||
| lv_endda | TYPE T5DB4-ENDDA, " | |||
| lv_x_bauid | TYPE T5DB4, " SPACE | |||
| lv_x_posnr | TYPE T5DB4, " SPACE | |||
| lv_x_aufnr | TYPE T5DB4, " SPACE | |||
| lv_x_kokrs | TYPE T5DB4, " SPACE | |||
| lv_x_kostl | TYPE T5DB4, " SPACE | |||
| lv_x_nplnr | TYPE T5DB4, " SPACE | |||
| lv_mandt | TYPE T5DB4-MANDT, " SY-MANDT | |||
| lv_system_failure | TYPE T5DB4, " | |||
| lv_x_vornr | TYPE T5DB4, " SPACE | |||
| lv_x_kdauf | TYPE T5DB4, " SPACE | |||
| lv_x_kdpos | TYPE T5DB4, " SPACE | |||
| lv_x_kstrg | TYPE T5DB4, " SPACE | |||
| lv_x_endda | TYPE T5DB4, " SPACE | |||
| lv__scope | TYPE T5DB4, " '2' | |||
| lv__wait | TYPE T5DB4, " SPACE | |||
| lv__collect | TYPE DDENQ_LIKE-COLLECT, " ' ' | |||
| lv_bauid | TYPE T5DB4-BAUID, " | |||
| lv_posnr | TYPE T5DB4-POSNR, " | |||
| lv_aufnr | TYPE T5DB4-AUFNR, " | |||
| lv_kokrs | TYPE T5DB4-KOKRS, " | |||
| lv_kostl | TYPE T5DB4-KOSTL, " | |||
| lv_nplnr | TYPE T5DB4-NPLNR, " | |||
| lv_vornr | TYPE T5DB4-VORNR. " |
|   CALL FUNCTION 'ENQUEUE_EPT5DB4' "Request lock for object EPT5DB4 |
| EXPORTING | ||
| MODE_T5DB4 | = lv_mode_t5db4 | |
| KDAUF | = lv_kdauf | |
| KDPOS | = lv_kdpos | |
| KSTRG | = lv_kstrg | |
| ENDDA | = lv_endda | |
| X_BAUID | = lv_x_bauid | |
| X_POSNR | = lv_x_posnr | |
| X_AUFNR | = lv_x_aufnr | |
| X_KOKRS | = lv_x_kokrs | |
| X_KOSTL | = lv_x_kostl | |
| X_NPLNR | = lv_x_nplnr | |
| MANDT | = lv_mandt | |
| X_VORNR | = lv_x_vornr | |
| X_KDAUF | = lv_x_kdauf | |
| X_KDPOS | = lv_x_kdpos | |
| X_KSTRG | = lv_x_kstrg | |
| X_ENDDA | = lv_x_endda | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| BAUID | = lv_bauid | |
| POSNR | = lv_posnr | |
| AUFNR | = lv_aufnr | |
| KOKRS | = lv_kokrs | |
| KOSTL | = lv_kostl | |
| NPLNR | = lv_nplnr | |
| VORNR | = lv_vornr | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_EPT5DB4 | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EPT5DB4
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_t5db4). | ||||
| DATA(ld_mode_t5db4) | = 'E'. | |||
| "SELECT single KDAUF FROM T5DB4 INTO @DATA(ld_kdauf). | ||||
| "SELECT single KDPOS FROM T5DB4 INTO @DATA(ld_kdpos). | ||||
| "SELECT single KSTRG FROM T5DB4 INTO @DATA(ld_kstrg). | ||||
| "SELECT single ENDDA FROM T5DB4 INTO @DATA(ld_endda). | ||||
| DATA(ld_x_bauid) | = ' '. | |||
| DATA(ld_x_posnr) | = ' '. | |||
| DATA(ld_x_aufnr) | = ' '. | |||
| DATA(ld_x_kokrs) | = ' '. | |||
| DATA(ld_x_kostl) | = ' '. | |||
| DATA(ld_x_nplnr) | = ' '. | |||
| "SELECT single MANDT FROM T5DB4 INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| DATA(ld_x_vornr) | = ' '. | |||
| DATA(ld_x_kdauf) | = ' '. | |||
| DATA(ld_x_kdpos) | = ' '. | |||
| DATA(ld_x_kstrg) | = ' '. | |||
| DATA(ld_x_endda) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| "SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect). | ||||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single BAUID FROM T5DB4 INTO @DATA(ld_bauid). | ||||
| "SELECT single POSNR FROM T5DB4 INTO @DATA(ld_posnr). | ||||
| "SELECT single AUFNR FROM T5DB4 INTO @DATA(ld_aufnr). | ||||
| "SELECT single KOKRS FROM T5DB4 INTO @DATA(ld_kokrs). | ||||
| "SELECT single KOSTL FROM T5DB4 INTO @DATA(ld_kostl). | ||||
| "SELECT single NPLNR FROM T5DB4 INTO @DATA(ld_nplnr). | ||||
| "SELECT single VORNR FROM T5DB4 INTO @DATA(ld_vornr). | ||||
Search for further information about these or an SAP related objects