HCM Function module Used the same way in S/4HANA

HR_READ_INFOTYPE Read HR Infotype Records

Reads the records of one personnel administration infotype for a personnel number within a date range, with the standard authorization check. Custom programs use it instead of selecting PAnnnn tables directly when HR authorizations must apply. Pass an internal table typed like the infotype (for example P0001) to INFTY_TAB and check SUBRC.

Function group
HRAC
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
TCLASPSPAR-TCLASTransaction class (A = employee, B = applicant)—
PERNRPRELP-PERNRPersonnel numberYes
INFTYPRELP-INFTYInfotypeYes
BEGDAPRELP-BEGDAStart date—
ENDDAPRELP-ENDDAEnd date—
BYPASS_BUFFERFLAGBypass the buffer—
LEGACY_MODEBOOLE_DLegacy mode—

Exporting parameters

ParameterTypeDescription
SUBRCSY-SUBRCReturn code

Tables parameters

ParameterTypeDescriptionRequired
INFTY_TAB—Infotype table (records found)Yes

Exceptions

  • INFTY_NOT_FOUND — Infotype does not exist

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_READ_INFOTYPE'
  EXPORTING
    pernr = lv_pernr
    infty = lv_infty
  IMPORTING
    subrc = lv_subrc
  TABLES
    infty_tab = lt_infty_tab
  EXCEPTIONS
    infty_not_found = 1
    OTHERS = 2.

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