# RH_UPDATE_INFTY — Change Organizational Management Infotype Records

> Changes existing organizational management infotype records passed in INNNN; the key fields must match the database records. Upload and correction programs use it to update texts or other OM data. Read the records with RH_READ_INFTY first, change the fields and pass them back with the same key.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| VTASK | HRRHAP-VTASK | Update mode (B, D, V, S) | Yes |
| ORDER_FLG | HRRHAP-ORDER_FLG | Respect the record sequence | - |
| COMMIT_FLG | HRRHAP-COMMIT_FLG | Commit work flag | - |
| AUTHY | HRRHAP-AUTHY | Authorization check switch | - |
| PPPAR_IMP | PPPAR | Import structure PPPAR | - |
| OLD_TABNR_NEW_LANGU | HRRHAP-OLD_TNR_NL | Keep the old pointer with a new language | - |
| REPID | SY-REPID | Report for table infotypes | - |
| FORM | - | FORM routine for table infotypes | - |
| KEEP_LUPD | HRRHAP-KEEP_LUPD | Keep last changed by/on | - |
| WORKF_ACTV | HRRHAP-WORKF_ACTV | Trigger workflow events | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INNNN | - | Infotype records (HRInnnn) | Yes |
| ILFCODE | ILFCOD | Logical function codes | - |

## Exceptions

- ERROR_DURING_UPDATE: Error during change
- NO_AUTHORIZATION: No authorization
- REPID_FORM_INITIAL: Report/FORM name for table infotype is empty
- CORR_EXIT: Error assigning the correction number

## Call template (ABAP)

```abap
CALL FUNCTION 'RH_UPDATE_INFTY'
  EXPORTING
    vtask = lv_vtask
  TABLES
    innnn = lt_innnn
    ilfcode = lt_ilfcode
  EXCEPTIONS
    error_during_update = 1
    no_authorization = 2
    repid_form_initial = 3
    corr_exit = 4
    OTHERS = 5.
```


