# 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.

- Modules: HCM
- Type: Function module
- Function group: RHEL
- Remote-enabled (RFC): No
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/hr-get-employee-data/

## 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)

```abap
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.
```


