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

ParameterTypeDescriptionRequired
PERNRPSPAR-PERNRPersonnel number—
MASSNPSPAR-MASSNAction type—
ACTIOPSPAR-ACTIOOperation—
TCLASPSPAR-TCLASTransaction class (A = employee, B = applicant)—
BEGDAPSPAR-BEGDAStart date—
ENDDAPSPAR-ENDDAEnd date—
OBJPSPSPAR-OBJPSObject identification—
SEQNRPSPAR-SEQNRRecord number—
SPRPSPSPAR-SPRPSLock indicator—
SUBTYPSPAR-SUBTYSubtype—
WERKSPSPAR-WERKSPersonnel area—
PERSGPSPAR-PERSGEmployee group—
PERSKPSPAR-PERSKEmployee subgroup—
PLANSPSPAR-PLANSPosition—
DIALOG_MODECDialog mode (0 = background)—
LUW_MODECLUW mode—
NO_EXISTENCE_CHECKCSkip the existence check—
NO_ENQUEUECDo not lock the personnel number—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURNReturn message
RETURN1BAPIRETURN1Return message (BAPIRETURN1)
HR_RETURNHRHRMM_MSGHR messages

Tables parameters

ParameterTypeDescriptionRequired
PROPOSED_VALUESPPROPField values (infotype, field, value)Yes
MODIFIED_KEYSPSKEYKeys 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.

Request a custom report