HCM
BAPI
RFC
Used the same way in S/4HANA
BAPI_PERSDATA_GETDETAIL Read Personal Data (Infotype 0002)
Reads one personal data record (infotype 0002) by its full key and returns the individual fields with their texts. It is used when the exact record key is already known, for example from BAPI_PERSDATA_GETDETAILEDLIST. Check RETURN; the standard HR authorization check applies.
- Function group
- PERS
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| EMPLOYEENUMBER | BAPIP0002-PERNR | Personnel number | Yes |
| SUBTYPE | BAPIP0002-SUBTY | Subtype | Yes |
| OBJECTID | BAPIP0002-OBJPS | Object identification | Yes |
| LOCKINDICATOR | BAPIP0002-SPRPS | Lock indicator | Yes |
| VALIDITYBEGIN | BAPIP0002-BEGDA | Valid from | Yes |
| VALIDITYEND | BAPIP0002-ENDDA | Valid to | Yes |
| RECORDNUMBER | BAPIP0002-SEQNR | Record number | Yes |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return message |
| FORMOFADDRESS | BAPIP0002-ANRED | Form of address |
| FIRSTNAME | BAPIP0002-VORNA | First name |
| LASTNAME | BAPIP0002-NACHN | Last name |
| MIDDLENAME | BAPIP0002-MIDNM | Middle name |
| SECONDNAME | BAPIP0002-NACH2 | Second last name |
| NAMEATBIRTH | BAPIP0002-NAME2 | Name at birth |
| KNOWNAS | BAPIP0002-RUFNM | Known as |
| INITIALS | BAPIP0002-INITS | Initials |
| FULLNAME | BAPIP0002-CNAME | Full name |
| ACADEMICGRADE | BAPIP0002-TITEL | Academic title |
| DATEOFBIRTH | BAPIP0002-GBDAT | Date of birth |
| BIRTHPLACE | BAPIP0002-GBORT | Place of birth |
| STATEOFBIRTH | BAPIP0002-GBDEP | Region of birth |
| COUNTRYOFBIRTH | BAPIP0002-GBLND | Country of birth |
| GENDER | BAPIP0002-GESCH | Gender key |
| NATIONALITY | BAPIP0002-NATIO | Nationality |
| SECONDNATIONALITY | BAPIP0002-NATI2 | Second nationality |
| LANGUAGE | BAPIP0002-SPRSL | Communication language |
| LANGUAGE_ISO | BAPIP0002-SPRSL_ISO | Communication language (ISO code) |
| MARITALSTATUS | BAPIP0002-FAMST | Marital status key |
| MARITALSTATUSSINCE | BAPIP0002-FAMDT | Marital status since |
| NUMBEROFCHILDREN | BAPIP0002-ANZKD | Number of children |
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_GETDETAIL'
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
formofaddress = lv_formofaddress
firstname = lv_firstname
lastname = lv_lastname
middlename = lv_middlename
secondname = lv_secondname
nameatbirth = lv_nameatbirth
knownas = lv_knownas
initials = lv_initials
fullname = lv_fullname.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.