Fonction SAP BAPI_PERSDATA_GETDETAIL - Read personal data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EMPLOYEENUMBER BAPIP0002-PERNR N 8 Personnel number
LOCKINDICATOR BAPIP0002-SPRPS C 1 Lock indicator for HR master record
OBJECTID BAPIP0002-OBJPS C 2 Object ID
RECORDNUMBER BAPIP0002-SEQNR N 3 Number of Infotype Record
SUBTYPE BAPIP0002-SUBTY C 4 Subtype
VALIDITYBEGIN BAPIP0002-BEGDA D 8 Valid from date
VALIDITYEND BAPIP0002-ENDDA D 8 Valid To Date

Paramètre Reférence Type Long. Description
ACADEMICGRADE BAPIP0002-TITEL C 15 Title
ARISTROCRATICTITLE BAPIP0002-NAMZU C 15 Other title
BIRTHPLACE BAPIP0002-GBORT C 40 Birthplace
COUNTRYOFBIRTH BAPIP0002-GBLND C 3 Country of Birth
DATEOFBIRTH BAPIP0002-GBDAT D 8 Date of birth
FIRSTNAME BAPIP0002-VORNA C 40 First name
FORMOFADDRESS BAPIP0002-ANRED C 1 Form-of-address key
FULLNAME BAPIP0002-CNAME C 80 Full employee name
GENDER BAPIP0002-GESCH C 1 Gender key
IDNUMBER BAPIP0002-PERID C 20 Personnel ID number
INITIALS BAPIP0002-INITS C 10 Employee's Initials
KNOWNAS BAPIP0002-RUFNM C 40 Known As
LANGUAGE BAPIP0002-SPRSL C 1 Language key
LANGUAGE_ISO BAPIP0002-SPRSL_ISO C 2 Language according to ISO 639
LASTNAME BAPIP0002-NACHN C 40 Last name
MARITALSTATUS BAPIP0002-FAMST C 1 Marital status key
MARITALSTATUSSINCE BAPIP0002-FAMDT D 8 Valid from date of current marital status
MIDDLENAME BAPIP0002-MIDNM C 40 Middle name
NAMEATBIRTH BAPIP0002-NAME2 C 40 Name at Birth
NAMEOFCOUNTRYOFBIRTH BAPIP0002-NAMEOFGBLND C 15 Birth place description
NAMEOFFORMOFADDRESS BAPIP0002-NAMEOFANRED C 15 Form of address description
NAMEOFGENDER BAPIP0002-NAMEOFGESCH C 60 Sex
NAMEOFLANGUAGE BAPIP0002-NAMEOFSPRSL C 16 Name of language
NAMEOFMARITALSTATUS BAPIP0002-NAMEOFFAMST C 6 Marital status description
NAMEOFNATIONALITY BAPIP0002-NAMEOFNATIO C 15 Nationality text
NAMEOFRELIGION BAPIP0002-NAMEOFKONFE C 25 Religion
NAMEOFSECONDNATIONALITY BAPIP0002-NAMEOFNATI2 C 15 Second nationality description
NAMEOFSTATEOFBIRTH BAPIP0002-NAMEOFGBDEP C 20 Name of federal state
NAMEOFTHIRDNATIONALITY BAPIP0002-NAMEOFNATI3 C 15 Third nationality description
NAME_FORMAT_INDICATOR BAPIP0002-KNZNM N 2
NATIONALITY BAPIP0002-NATIO C 3 Nationality
NUMBEROFCHILDREN BAPIP0002-ANZKD N 3 Number of children
RELIGION BAPIP0002-KONFE C 2 Religious denomination key
RETURN BAPIRETURN1 u 470 Structure for return code
SECONDACADGRADE BAPIP0002-TITL2 C 15 Second title
SECONDARISTROTITLE BAPIP0002-NAMZ2 C 15 Name Affix for Name at Birth
SECONDNAME BAPIP0002-NACH2 C 40 Second name
SECONDNAMEPREFIX BAPIP0002-VORS2 C 15 Second name prefix
SECONDNATIONALITY BAPIP0002-NATI2 C 3 Second nationality
STATEOFBIRTH BAPIP0002-GBDEP C 3 State
SURNAMEPREFIX BAPIP0002-VORSW C 15 Name Prefix
THIRDNATIONALITY BAPIP0002-NATI3 C 3 Third nationality

Functionality
You can use this method to read a Personal Data record (0002).

Notes
Messages are transferred to the RETURN parameter. The relevantparameter documentation contains the return values and their meanings.
The key fields used by the method are described in the parameterdocumentation.

Description
For information on the academic title, read the relevant data elementdocumentation: Title.

Description
For information on the aristocratic title, read the relevant dataelement documentation: Title.

Description
For information on the birth date, read the relevant data elementdocumentation: Date of birth.

Description
For information on the form-of-address key, read the relevant dataelement documentation: Form-of-address key.

Description
For information on the gender key, read the relevant data elementdocumentation: Gender key.

Description
For information on the personal ID number, read the relevant dataelement documentation: ID number.

Description
For information on the name by which an employee is known, read therelevant data element documentation: Known as.

Description
For information on the language key, read the relevant data elementdocumentation: Language.

Description
For information on the nationality, read the relevant data elementdocumentation: Nationality.

Description
For information on the religious denomination key, read the relevantdata element documentation: Religion.

Description
Method return code

Value range
In case of an error, this structure contains the following information:

  • Message type (TYPE field)

  • Message code (CODE field)

  • Message text (MESSAGE field)

  • If the operation is successful, this structure contains the initialvalue.

    Description
    For information on the second nationality, read the relevant dataelement documentation: Second nationality.

    Description
    For information on the state of birth, read the relevant data elementdocumentation: State.

    Description
    For information on the name affix, read the relevant data elementdocumentation: Name affix.

    Description
    For information on the third nationality, read the relevant dataelement documentation: Third nationality.

    Description
    For information on the personnel number, read the relevant data elementdocumentation: Personnel number.

    Description
    For information on the lock indicator for the HR master record, readthe relevant data element documentation: Lock indicatorfor HR master record.

    Description
    For information on the object identification, read the relevant dataelement documentation: Object identification.

    Description
    For information on the number of an infotype record with the same key,read the relevant data element documentation: Number ofinfotype record with same key.

    Description
    For information on the subtype, read the relevant data elementdocumentation: Subtype.