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

RH_READ_INFTY Read Organizational Management Infotypes

Reads records of an organizational management infotype (HRPnnnn) for one object or a list of objects, such as organizational units, positions or jobs. Custom org reports use it to get object names, relationships or other OM data with authorization checks. Type INNNN like the infotype (for example P1000) and handle NOTHING_FOUND.

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

Importing parameters

ParameterTypeDescriptionRequired
AUTHORITY—Function code for authorization check—
WITH_STRU_AUTH—With structural authorization check—
PLVARPLOG-PLVARPlan version—
OTYPEPLOG-OTYPEObject type—
OBJIDPLOG-OBJIDObject ID—
INFTYPLOG-INFTYInfotype—
SUBTYPLOG-SUBTYSubtype—
ISTATPLOG-ISTATPlanning status—
EXTENDHRRHDB-EXTENDExtended selection (subtype and dates)—
BEGDAPLOG-BEGDAStart date—
ENDDAPLOG-ENDDAEnd date—
CONDITIONHRRHDB-CONDITIONSelection condition—
INFTBPPPCH-INFTBTable infotype indicator—
SORTHRRHDB-SORTSort the data table—
VIA_T777D—Read all infotypes via T777D—

Tables parameters

ParameterTypeDescriptionRequired
INNNN—Infotype records read (HRInnnn)Yes
OBJECTSHROBJECTObjects to read—

Exceptions

  • ALL_INFTY_WITH_SUBTY — Subtype given for all infotypes
  • NOTHING_FOUND — No data selected
  • NO_OBJECTS — Empty object table passed
  • WRONG_CONDITION — Condition does not exist
  • WRONG_PARAMETERS — Called with incorrect parameters

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 'RH_READ_INFTY'
  TABLES
    innnn = lt_innnn
    objects = lt_objects
  EXCEPTIONS
    all_infty_with_subty = 1
    nothing_found = 2
    no_objects = 3
    wrong_condition = 4
    wrong_parameters = 5
    OTHERS = 6.

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