HCM BAPI RFC Used the same way in S/4HANA

BAPI_PERSDATA_GETDETAILEDLIST List Personal Data Records (Infotype 0002)

Returns all personal data records (infotype 0002) of a personnel number within an optional date interval. Interfaces use it to get the record keys and validity periods before changing a record. Leave the interval empty to read the whole history and check RETURN.

Function group
PERS
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
EMPLOYEENUMBERBAPIP0002-PERNRPersonnel numberYes
TIMEINTERVALLOWBAPIP0002-BEGDAInterval start date—
TIMEINTERVALHIGHBAPIP0002-ENDDAInterval end date—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message

Tables parameters

ParameterTypeDescriptionRequired
PERSONALDATABAPIP0002LPersonal data recordsYes

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 'BAPI_PERSDATA_GETDETAILEDLIST'
  EXPORTING
    employeenumber = lv_employeenumber
  IMPORTING
    return = lv_return
  TABLES
    personaldata = lt_personaldata.

Related tables

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