HCM
Function module
Used the same way in S/4HANA
HR_MAINTAIN_MASTERDATA Maintain HR Master Data
Runs a personnel action or infotype maintenance in the background, filling screen fields from PROPOSED_VALUES. It is used for hiring, organizational reassignment or leaving actions from custom programs. Behavior depends on the action configuration, so test in the background mode (DIALOG_MODE 0) and check RETURN and RETURN1.
- Function group
- HRMM
- Remote-enabled (RFC)
- No
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| PERNR | PSPAR-PERNR | Personnel number | — |
| MASSN | PSPAR-MASSN | Action type | — |
| ACTIO | PSPAR-ACTIO | Operation | — |
| TCLAS | PSPAR-TCLAS | Transaction class (A = employee, B = applicant) | — |
| BEGDA | PSPAR-BEGDA | Start date | — |
| ENDDA | PSPAR-ENDDA | End date | — |
| OBJPS | PSPAR-OBJPS | Object identification | — |
| SEQNR | PSPAR-SEQNR | Record number | — |
| SPRPS | PSPAR-SPRPS | Lock indicator | — |
| SUBTY | PSPAR-SUBTY | Subtype | — |
| WERKS | PSPAR-WERKS | Personnel area | — |
| PERSG | PSPAR-PERSG | Employee group | — |
| PERSK | PSPAR-PERSK | Employee subgroup | — |
| PLANS | PSPAR-PLANS | Position | — |
| DIALOG_MODE | C | Dialog mode (0 = background) | — |
| LUW_MODE | C | LUW mode | — |
| NO_EXISTENCE_CHECK | C | Skip the existence check | — |
| NO_ENQUEUE | C | Do not lock the personnel number | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN | Return message |
| RETURN1 | BAPIRETURN1 | Return message (BAPIRETURN1) |
| HR_RETURN | HRHRMM_MSG | HR messages |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| PROPOSED_VALUES | PPROP | Field values (infotype, field, value) | Yes |
| MODIFIED_KEYS | PSKEY | Keys of changed records | — |
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_MAINTAIN_MASTERDATA'
IMPORTING
return = lv_return
return1 = lv_return1
hr_return = lv_hr_return
TABLES
proposed_values = lt_proposed_values
modified_keys = lt_modified_keys.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.