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

HR_INFOTYPE_OPERATION Maintain HR Infotype Record

Generic function to create, change, copy, delimit or delete a record of any personnel administration infotype. Custom upload programs pass the infotype record in RECORD and the operation code (INS, MOD, COP, LIS9, DEL) in OPERATION. Lock the personnel number with BAPI_EMPLOYEE_ENQUEUE before the call, unlock it afterwards, and check RETURN.

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

Importing parameters

ParameterTypeDescriptionRequired
INFTYPRELP-INFTYInfotypeYes
NUMBERP0001-PERNRPersonnel numberYes
SUBTYPEP0001-SUBTYSubtype—
OBJECTIDP0001-OBJPSObject identification—
LOCKINDICATORP0001-SPRPSLock indicator—
VALIDITYENDP0001-ENDDAValid to—
VALIDITYBEGINP0001-BEGDAValid from—
RECORDNUMBERP0001-SEQNRRecord number—
RECORD—Infotype record (Pnnnn structure)Yes
OPERATIONPSPAR-ACTIOOperation (INS, MOD, DEL, LIS9, COP ...)Yes
TCLASPSPAR-TCLASTransaction class (A = employee, B = applicant)—
DIALOG_MODECDialog mode (0 = background)—
NOCOMMITBAPI_STAND-NO_COMMITNo commit (caller commits)—
VIEW_IDENTIFIERP0003-VIEKNView identifier—
SECONDARY_RECORD—Secondary infotype record—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message
KEYBAPIPAKEYKey of the processed record

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_INFOTYPE_OPERATION'
  EXPORTING
    infty = lv_infty
    number = lv_number
    record = lv_record
    operation = lv_operation
  IMPORTING
    return = lv_return
    key = lv_key.

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