HCM BAPI RFC Used the same way in S/4HANA

BAPI_PERSDATA_CHANGE Change Personal Data (Infotype 0002)

Changes an existing personal data record (infotype 0002) identified by its full key. The key fields (subtype, object ID, lock indicator, validity dates, record number) must match the existing record; read them with BAPI_PERSDATA_GETDETAILEDLIST first. Lock the employee with BAPI_EMPLOYEE_ENQUEUE before the call.

Function group
PERS
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
EMPLOYEENUMBERBAPIP0002-PERNRPersonnel numberYes
SUBTYPEBAPIP0002-SUBTYSubtypeYes
OBJECTIDBAPIP0002-OBJPSObject identificationYes
LOCKINDICATORBAPIP0002-SPRPSLock indicatorYes
VALIDITYBEGINBAPIP0002-BEGDAValid fromYes
VALIDITYENDBAPIP0002-ENDDAValid toYes
RECORDNUMBERBAPIP0002-SEQNRRecord numberYes
FORMOFADDRESSBAPIP0002-ANREDForm of address—
FIRSTNAMEBAPIP0002-VORNAFirst name—
LASTNAMEBAPIP0002-NACHNLast name—
NAMEATBIRTHBAPIP0002-NAME2Name at birth—
KNOWNASBAPIP0002-RUFNMKnown as—
DATEOFBIRTHBAPIP0002-GBDATDate of birth—
BIRTHPLACEBAPIP0002-GBORTPlace of birth—
GENDERBAPIP0002-GESCHGender key—
NATIONALITYBAPIP0002-NATIONationality—
LANGUAGEBAPIP0002-SPRSLCommunication language—
MARITALSTATUSBAPIP0002-FAMSTMarital status key—
MARITALSTATUSSINCEBAPIP0002-FAMDTMarital status since—
NUMBEROFCHILDRENBAPIP0002-ANZKDNumber of children—
IDNUMBERBAPIP0002-PERIDPersonal ID number—
NOCOMMITBAPI_STAND-NO_COMMITNo commit (caller commits)—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message

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 'BAPI_PERSDATA_CHANGE'
  EXPORTING
    employeenumber = lv_employeenumber
    subtype = lv_subtype
    objectid = lv_objectid
    lockindicator = lv_lockindicator
    validitybegin = lv_validitybegin
    validityend = lv_validityend
    recordnumber = lv_recordnumber
  IMPORTING
    return = lv_return.

Related tables

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