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

Function ENQUEUE_EHRECM00PROVIDER 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_EHRECM00PROVIDER'"Request lock for object EHRECM00PROVIDER.
EXPORTING
* MODE_T71JPR01 = 'X' "Lock mode for table T71JPR01
* MODE_T71JPR16 = 'X' "Lock mode for table T71JPR16
* MODE_T71JPR16T = 'X' "Lock mode for table T71JPR16T
* MODE_T71JPR17 = 'X' "Lock mode for table T71JPR17
* MODE_T71JPR18 = 'X' "Lock mode for table T71JPR18
* MODE_T71JPR18T = 'X' "Lock mode for table T71JPR18T
* MODE_T71JPR19 = 'X' "Lock mode for table T71JPR19
* MODE_T71JPR20 = 'X' "Lock mode for table T71JPR20
* MODE_T71JPR20T = 'X' "Lock mode for table T71JPR20T
* MODE_T71JPR21 = 'X' "Lock mode for table T71JPR21
* MODE_T71JPR22 = 'X' "Lock mode for table T71JPR22
* MODE_T71JPR10 = 'X' "Lock mode for table T71JPR10
* MODE_T71JPR22T = 'X' "Lock mode for table T71JPR22T
* MANDT = SY-MANDT "01th enqueue argument
* PROVIDER = "02th enqueue argument
* X_PROVIDER = ' ' "Fill argument 02 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODE_T71JPR11 = 'X' "Lock mode for table T71JPR11
* MODE_T71JPR12 = 'X' "Lock mode for table T71JPR12
* MODE_T71JPR12T = 'X' "Lock mode for table T71JPR12T
* MODE_T71JPR13 = 'X' "Lock mode for table T71JPR13
* MODE_T71JPR14 = 'X' "Lock mode for table T71JPR14
* MODE_T71JPR14T = 'X' "Lock mode for table T71JPR14T
* MODE_T71JPR15 = 'X' "Lock mode for table T71JPR15
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_EHRECM00PROVIDER
MODE_T71JPR01 - Lock mode for table T71JPR01
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR16 - Lock mode for table T71JPR16
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR16T - Lock mode for table T71JPR16T
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR17 - Lock mode for table T71JPR17
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR18 - Lock mode for table T71JPR18
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR18T - Lock mode for table T71JPR18T
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR19 - Lock mode for table T71JPR19
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR20 - Lock mode for table T71JPR20
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR20T - Lock mode for table T71JPR20T
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR21 - Lock mode for table T71JPR21
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR22 - Lock mode for table T71JPR22
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR10 - Lock mode for table T71JPR10
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR22T - Lock mode for table T71JPR22T
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MANDT - 01th enqueue argument
Data type: T71JPR01-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROVIDER - 02th enqueue argument
Data type: T71JPR01-PROVIDEROptional: Yes
Call by Reference: No ( called with pass by value option)
X_PROVIDER - Fill argument 02 with initial value?
Data type: DDENQXPARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_SCOPE -
Data type: DDENQSCOPEDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
_WAIT -
Data type: DDENQWAITDefault: 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_T71JPR11 - Lock mode for table T71JPR11
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR12 - Lock mode for table T71JPR12
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR12T - Lock mode for table T71JPR12T
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR13 - Lock mode for table T71JPR13
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR14 - Lock mode for table T71JPR14
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR14T - Lock mode for table T71JPR14T
Data type: ENQMODEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE_T71JPR15 - Lock mode for table T71JPR15
Data type: ENQMODEDefault: 'X'
Optional: 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_EHRECM00PROVIDER 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_foreign_lock | TYPE STRING, " | |||
| lv_mode_t71jpr01 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr16 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr16t | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr17 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr18 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr18t | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr19 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr20 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr20t | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr21 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr22 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr10 | TYPE ENQMODE, " 'X' | |||
| lv_system_failure | TYPE ENQMODE, " | |||
| lv_mode_t71jpr22t | TYPE ENQMODE, " 'X' | |||
| lv_mandt | TYPE T71JPR01-MANDT, " SY-MANDT | |||
| lv_provider | TYPE T71JPR01-PROVIDER, " | |||
| lv_x_provider | TYPE DDENQXPAR, " SPACE | |||
| lv__scope | TYPE DDENQSCOPE, " '2' | |||
| lv__wait | TYPE DDENQWAIT, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_mode_t71jpr11 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr12 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr12t | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr13 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr14 | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr14t | TYPE ENQMODE, " 'X' | |||
| lv_mode_t71jpr15 | TYPE ENQMODE. " 'X' |
|   CALL FUNCTION 'ENQUEUE_EHRECM00PROVIDER' "Request lock for object EHRECM00PROVIDER |
| EXPORTING | ||
| MODE_T71JPR01 | = lv_mode_t71jpr01 | |
| MODE_T71JPR16 | = lv_mode_t71jpr16 | |
| MODE_T71JPR16T | = lv_mode_t71jpr16t | |
| MODE_T71JPR17 | = lv_mode_t71jpr17 | |
| MODE_T71JPR18 | = lv_mode_t71jpr18 | |
| MODE_T71JPR18T | = lv_mode_t71jpr18t | |
| MODE_T71JPR19 | = lv_mode_t71jpr19 | |
| MODE_T71JPR20 | = lv_mode_t71jpr20 | |
| MODE_T71JPR20T | = lv_mode_t71jpr20t | |
| MODE_T71JPR21 | = lv_mode_t71jpr21 | |
| MODE_T71JPR22 | = lv_mode_t71jpr22 | |
| MODE_T71JPR10 | = lv_mode_t71jpr10 | |
| MODE_T71JPR22T | = lv_mode_t71jpr22t | |
| MANDT | = lv_mandt | |
| PROVIDER | = lv_provider | |
| X_PROVIDER | = lv_x_provider | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| MODE_T71JPR11 | = lv_mode_t71jpr11 | |
| MODE_T71JPR12 | = lv_mode_t71jpr12 | |
| MODE_T71JPR12T | = lv_mode_t71jpr12t | |
| MODE_T71JPR13 | = lv_mode_t71jpr13 | |
| MODE_T71JPR14 | = lv_mode_t71jpr14 | |
| MODE_T71JPR14T | = lv_mode_t71jpr14t | |
| MODE_T71JPR15 | = lv_mode_t71jpr15 | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_EHRECM00PROVIDER | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EHRECM00PROVIDER
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_t71jpr01) | = 'X'. | |||
| DATA(ld_mode_t71jpr16) | = 'X'. | |||
| DATA(ld_mode_t71jpr16t) | = 'X'. | |||
| DATA(ld_mode_t71jpr17) | = 'X'. | |||
| DATA(ld_mode_t71jpr18) | = 'X'. | |||
| DATA(ld_mode_t71jpr18t) | = 'X'. | |||
| DATA(ld_mode_t71jpr19) | = 'X'. | |||
| DATA(ld_mode_t71jpr20) | = 'X'. | |||
| DATA(ld_mode_t71jpr20t) | = 'X'. | |||
| DATA(ld_mode_t71jpr21) | = 'X'. | |||
| DATA(ld_mode_t71jpr22) | = 'X'. | |||
| DATA(ld_mode_t71jpr10) | = 'X'. | |||
| DATA(ld_mode_t71jpr22t) | = 'X'. | |||
| "SELECT single MANDT FROM T71JPR01 INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| "SELECT single PROVIDER FROM T71JPR01 INTO @DATA(ld_provider). | ||||
| DATA(ld_x_provider) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| DATA(ld_mode_t71jpr11) | = 'X'. | |||
| DATA(ld_mode_t71jpr12) | = 'X'. | |||
| DATA(ld_mode_t71jpr12t) | = 'X'. | |||
| DATA(ld_mode_t71jpr13) | = 'X'. | |||
| DATA(ld_mode_t71jpr14) | = 'X'. | |||
| DATA(ld_mode_t71jpr14t) | = 'X'. | |||
| DATA(ld_mode_t71jpr15) | = 'X'. | |||
Search for further information about these or an SAP related objects