HCM
BAPI
RFC
Used the same way in S/4HANA
BAPI_PERSDATA_CREATE Create Personal Data (Infotype 0002)
Creates a personal data record (infotype 0002) for an existing personnel number. It is used in data transfer or hiring interfaces after the personnel number exists. Lock the employee with BAPI_EMPLOYEE_ENQUEUE first, check RETURN, and unlock with BAPI_EMPLOYEE_DEQUEUE.
- Function group
- PERS
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| EMPLOYEENUMBER | BAPIP0002-PERNR | Personnel number | Yes |
| VALIDITYBEGIN | BAPIP0002-BEGDA | Valid from | Yes |
| VALIDITYEND | BAPIP0002-ENDDA | Valid to | Yes |
| FORMOFADDRESS | BAPIP0002-ANRED | Form of address | — |
| FIRSTNAME | BAPIP0002-VORNA | First name | — |
| LASTNAME | BAPIP0002-NACHN | Last name | — |
| NAMEATBIRTH | BAPIP0002-NAME2 | Name at birth | — |
| KNOWNAS | BAPIP0002-RUFNM | Known as | — |
| DATEOFBIRTH | BAPIP0002-GBDAT | Date of birth | — |
| BIRTHPLACE | BAPIP0002-GBORT | Place of birth | — |
| COUNTRYOFBIRTH | BAPIP0002-GBLND | Country of birth | — |
| GENDER | BAPIP0002-GESCH | Gender key | — |
| NATIONALITY | BAPIP0002-NATIO | Nationality | — |
| LANGUAGE | BAPIP0002-SPRSL | Communication language | — |
| MARITALSTATUS | BAPIP0002-FAMST | Marital status key | — |
| MARITALSTATUSSINCE | BAPIP0002-FAMDT | Marital status since | — |
| NUMBEROFCHILDREN | BAPIP0002-ANZKD | Number of children | — |
| IDNUMBER | BAPIP0002-PERID | Personal ID number | — |
| NOCOMMIT | BAPI_STAND-NO_COMMIT | No commit (caller commits) | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return message |
| EMPLOYEENUMBER | BAPIP0002-PERNR | Personnel number |
| SUBTYPE | BAPIP0002-SUBTY | Subtype |
| OBJECTID | BAPIP0002-OBJPS | Object identification |
| LOCKINDICATOR | BAPIP0002-SPRPS | Lock indicator |
| VALIDITYBEGIN | BAPIP0002-BEGDA | Valid from |
| VALIDITYEND | BAPIP0002-ENDDA | Valid to |
| RECORDNUMBER | BAPIP0002-SEQNR | Record number |
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_CREATE'
EXPORTING
employeenumber = lv_employeenumber
validitybegin = lv_validitybegin
validityend = lv_validityend
IMPORTING
return = lv_return
employeenumber = lv_employeenumber
subtype = lv_subtype
objectid = lv_objectid
lockindicator = lv_lockindicator
validitybegin = lv_validitybegin
validityend = lv_validityend
recordnumber = lv_recordnumber.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.