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

- Modules: HCM
- Type: Function module
- Function group: RHDB
- Remote-enabled (RFC): No
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/rh-read-infty/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| AUTHORITY | - | Function code for authorization check | - |
| WITH_STRU_AUTH | - | With structural authorization check | - |
| PLVAR | PLOG-PLVAR | Plan version | - |
| OTYPE | PLOG-OTYPE | Object type | - |
| OBJID | PLOG-OBJID | Object ID | - |
| INFTY | PLOG-INFTY | Infotype | - |
| SUBTY | PLOG-SUBTY | Subtype | - |
| ISTAT | PLOG-ISTAT | Planning status | - |
| EXTEND | HRRHDB-EXTEND | Extended selection (subtype and dates) | - |
| BEGDA | PLOG-BEGDA | Start date | - |
| ENDDA | PLOG-ENDDA | End date | - |
| CONDITION | HRRHDB-CONDITION | Selection condition | - |
| INFTB | PPPCH-INFTB | Table infotype indicator | - |
| SORT | HRRHDB-SORT | Sort the data table | - |
| VIA_T777D | - | Read all infotypes via T777D | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INNNN | - | Infotype records read (HRInnnn) | Yes |
| OBJECTS | HROBJECT | Objects 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)

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


