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

ParameterTypeDescriptionRequired
PERSON_IDOBJEC-OBJIDPerson IDYes
SELECTION_BEGINSY-DATUMSelection start date—
SELECTION_ENDSY-DATUMSelection end date—

Exporting parameters

ParameterTypeDescription
PERSONAL_DATAPERSONPerson 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.

Request a custom report