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

Function HR_CENTRALPERSON_ENQUEUE 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 'HR_CENTRALPERSON_ENQUEUE'".
EXPORTING
IV_PERSON_ID = "Person Number
* IV_ENQUEUE_ONCE = ' ' "
* ENQ_SCOPE = '2' "
* ENQ_WAIT = ' ' "
* ENQ_COLLECT = ' ' "
IMPORTING
EV_LOCK_USER = "SAP System, User Logon Name
EXCEPTIONS
ENQUEUE_FAILED = 1 OBJID_IS_INITIAL = 2 INTERNAL_ERROR = 3
IMPORTING Parameters details for HR_CENTRALPERSON_ENQUEUE
IV_PERSON_ID - Person Number
Data type: PERSONIDOptional: No
Call by Reference: Yes
IV_ENQUEUE_ONCE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
ENQ_SCOPE -
Data type: DDENQSCOPEDefault: '2'
Optional: Yes
Call by Reference: Yes
ENQ_WAIT -
Data type: DDENQWAITDefault: SPACE
Optional: Yes
Call by Reference: Yes
ENQ_COLLECT -
Data type: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_CENTRALPERSON_ENQUEUE
EV_LOCK_USER - SAP System, User Logon Name
Data type: SY-UNAMEOptional: No
Call by Reference: Yes
EXCEPTIONS details
ENQUEUE_FAILED - Object Already Locked
Data type:Optional: No
Call by Reference: Yes
OBJID_IS_INITIAL - Object ID Empty
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - System Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_CENTRALPERSON_ENQUEUE 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_ev_lock_user | TYPE SY-UNAME, " | |||
| lv_iv_person_id | TYPE PERSONID, " | |||
| lv_enqueue_failed | TYPE PERSONID, " | |||
| lv_iv_enqueue_once | TYPE C, " SPACE | |||
| lv_objid_is_initial | TYPE C, " | |||
| lv_enq_scope | TYPE DDENQSCOPE, " '2' | |||
| lv_internal_error | TYPE DDENQSCOPE, " | |||
| lv_enq_wait | TYPE DDENQWAIT, " SPACE | |||
| lv_enq_collect | TYPE DDENQCOLL. " ' ' |
|   CALL FUNCTION 'HR_CENTRALPERSON_ENQUEUE' " |
| EXPORTING | ||
| IV_PERSON_ID | = lv_iv_person_id | |
| IV_ENQUEUE_ONCE | = lv_iv_enqueue_once | |
| ENQ_SCOPE | = lv_enq_scope | |
| ENQ_WAIT | = lv_enq_wait | |
| ENQ_COLLECT | = lv_enq_collect | |
| IMPORTING | ||
| EV_LOCK_USER | = lv_ev_lock_user | |
| EXCEPTIONS | ||
| ENQUEUE_FAILED = 1 | ||
| OBJID_IS_INITIAL = 2 | ||
| INTERNAL_ERROR = 3 | ||
| . " HR_CENTRALPERSON_ENQUEUE | ||
ABAP code using 7.40 inline data declarations to call FM HR_CENTRALPERSON_ENQUEUE
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 UNAME FROM SY INTO @DATA(ld_ev_lock_user). | ||||
| DATA(ld_iv_enqueue_once) | = ' '. | |||
| DATA(ld_enq_scope) | = '2'. | |||
| DATA(ld_enq_wait) | = ' '. | |||
| DATA(ld_enq_collect) | = ' '. | |||
Search for further information about these or an SAP related objects