HCM
Function module
Used the same way in S/4HANA
HR_GET_EMPLOYEE_DATA Read Person Data for an Employee
Returns summary data of a person (name, organizational assignment and similar fields in structure PERSON) for a selection period. It is used in organizational management and workflow programs that need basic employee information. The PERSON_ID is the person object ID; handle the exceptions PERSON_NOT_FOUND and NO_ACTIVE_INTEGRATION.
- Function group
- RHEL
- Remote-enabled (RFC)
- No
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| PERSON_ID | OBJEC-OBJID | Person ID | Yes |
| SELECTION_BEGIN | SY-DATUM | Selection start date | — |
| SELECTION_END | SY-DATUM | Selection end date | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| PERSONAL_DATA | PERSON | Person data |
Exceptions
- PERSON_NOT_FOUND — Person not found
- NO_ACTIVE_INTEGRATION — PA-PD integration not active
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'HR_GET_EMPLOYEE_DATA'
EXPORTING
person_id = lv_person_id
IMPORTING
personal_data = lv_personal_data
EXCEPTIONS
person_not_found = 1
no_active_integration = 2
OTHERS = 3.Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.