Fonction SAP BAPI_PERSDATA_CREATE - Create personal data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACADEMICGRADE BAPIP0002-TITEL C 15 X Title
ARISTROCRATICTITLE BAPIP0002-NAMZU C 15 X Other title
BIRTHPLACE BAPIP0002-GBORT C 40 X Birthplace
COUNTRYOFBIRTH BAPIP0002-GBLND C 3 X Country of Birth
DATEOFBIRTH BAPIP0002-GBDAT D 8 X Date of birth
EMPLOYEENUMBER BAPIP0002-PERNR N 8 Personnel number
FIRSTNAME BAPIP0002-VORNA C 40 X First name
FORMOFADDRESS BAPIP0002-ANRED C 1 X Form-of-address key
FULLNAME BAPIP0002-CNAME C 80 X Full employee name
GENDER BAPIP0002-GESCH C 1 X Gender key
IDNUMBER BAPIP0002-PERID C 20 X Personnel ID number
INITIALS BAPIP0002-INITS C 10 X Employee's Initials
KNOWNAS BAPIP0002-RUFNM C 40 X Known As
LANGUAGE BAPIP0002-SPRSL C 1 X Language key
LANGUAGE_ISO BAPIP0002-SPRSL_ISO C 2 X Language according to ISO 639
LASTNAME BAPIP0002-NACHN C 40 X Last name
MARITALSTATUS BAPIP0002-FAMST C 1 X Marital status key
MARITALSTATUSSINCE BAPIP0002-FAMDT D 8 X Valid from date of current marital status
MIDDLENAME BAPIP0002-MIDNM C 40 X Middle name
NAMEATBIRTH BAPIP0002-NAME2 C 40 X Name at Birth
NAME_FORMAT_INDICATOR BAPIP0002-KNZNM N 2 X Name format indicator for employee in a list
NATIONALITY BAPIP0002-NATIO C 3 X Nationality
NOCOMMIT BAPI_STAND-NO_COMMIT C 1 X COMMIT control at BAPI interface
NUMBEROFCHILDREN BAPIP0002-ANZKD N 3 X Number of children
RELIGION BAPIP0002-KONFE C 2 X Religious denomination key
SECONDACADGRADE BAPIP0002-TITL2 C 15 X Second title
SECONDARISTROTITLE BAPIP0002-NAMZ2 C 15 X Name Affix for Name at Birth
SECONDNAME BAPIP0002-NACH2 C 40 X Second name
SECONDNAMEPREFIX BAPIP0002-VORS2 C 15 X Second name prefix
SECONDNATIONALITY BAPIP0002-NATI2 C 3 X Second nationality
STATEOFBIRTH BAPIP0002-GBDEP C 3 X State
SURNAMEPREFIX BAPIP0002-VORSW C 15 X Name Prefix
THIRDNATIONALITY BAPIP0002-NATI3 C 3 X Third nationality
UPDATE_ONLY_GBDAT BAPIP0002-ONLY_GBDAT C 1 X Flag: Only Update on GBDAT
VALIDITYBEGIN BAPIP0002-BEGDA D 8 Valid from date
VALIDITYEND BAPIP0002-ENDDA D 8 Valid To Date

Paramètre Reférence Type Long. 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
RETURN BAPIRETURN1 u 470 Structure for return code
SUBTYPE BAPIP0002-SUBTY C 4 Subtype
VALIDITYBEGIN BAPIP0002-BEGDA D 8 Valid from date
VALIDITYEND BAPIP0002-ENDDA D 8 Valid To Date

Functionality
You can use this method to create 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.
You can use this method only if you have called the ENQUEUE method ofthe business object EMPLOYEE beforehand. For more information onthe ENQUEUE method, read the documentation on the function moduleBAPI_EMPLOYEE_ENQUEUE.

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
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 subtype, read the relevant data elementdocumentation: Subtype.

    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 personnel number, read the relevant data elementdocumentation: Personnel number.

    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 COMMIT control, read the relevant data elementdocumentation: COMMIT control at BAPI interface.

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

    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
    The 'UPDATE_ONLY_GBDAT' flag enables you to control whether theP0002-GBDAT field should be filled with parameter DATEOFBIRTH or whetherthe P0002-GBPAS field should also be filled.
    If the date of birth according to passport (P0002-GBPAS) and the date ofbirth (P0002-GBDAT) is used in a country version of infotype 2, bothfields should be filled using parameter DATEOFBIRTH.
    If, however, only the P0002-GBDAT field (date of birth) is used, onlythis field should be filled using parameter DATEOFBIRTH.

    Value range
    The following values can take the 'UPDATE_ONLY_GBDAT' flag:

    • Space: P0002-GBDAT and P0002-GBPAS are filled using parameter
    • DATEOFBIRTH.
      • 'X': Only P0002-GBDAT is filled using parameter DATEOFBIRTH.