Fonction SAP BAPI_FAMILYNL_CREATESUCCESSOR - Create Subsequent Family Record

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACADEMICTITLE BAPIP0021-TITEL C 15 X Title
ARISTOCRATICTITLE BAPIP0021-FNMZU C 15 X Other Title
DATEOFBIRTH BAPIP0021-FGBDT D 8 X Date of Birth
EGAGA BAPIP0021LNL-EGAGA C 8 X
EMPLOYEENUMBER BAPIP0021-PERNR N 8 Personnel Number
ERBNR BAPIP0021LNL-ERBNR C 12 X
FIRSTNAME BAPIP0021-FAVOR C 40 X First Name (by which one is generally known)
FKNZN BAPIP0021LNL-FKNZN N 2 X
FULLNAME BAPIP0021-FCNAM C 80 X Full Name Employee
GENDER BAPIP0021-FASEX C 1 X Gender Key
INITIALS BAPIP0021-FINIT C 10 X Employee's Initials
KDGBR BAPIP0021LNL-KDGBR C 2 X
KDVBE BAPIP0021LNL-KDVBE C 2 X
LANDOFBIRTH BAPIP0021-FGBLD C 3 X Country of Birth
LASTNAME BAPIP0021-FANAM C 40 X Last Name
MAIDENNAME BAPIP0021-FGBNA C 40 X Name at Birth
MEMBERID BAPIP0021-OBJPS C 2 X Object Identification
MEMBERTYPE BAPIP0021-FAMSA C 4 X Type of Family Record
NATIONALITY BAPIP0021-FANAT C 3 X Nationality
NATIONALITY2 BAPIP0021-FANA2 C 3 X Second Nationality
NATIONALITY3 BAPIP0021-FANA3 C 3 X Third Nationality
NOCOMMIT BAPI_STAND-NO_COMMIT C 1 X COMMIT Control at BAPI Interface
PKLAS BAPIP0021LNL-PKLAS C 2 X
PLACEOFBIRTH BAPIP0021-FGBOT C 40 X Birthplace
SECONDNAME BAPIP0021-FNAC2 C 40 X Second Name
SECONDSURNAMEPREFIX BAPIP0021-FVRS2 C 15 X Name Prefix
STATEOFBIRTH BAPIP0021-FGDEP C 3 X Federal State
SURNAMEPREFIX BAPIP0021-FVRSW C 15 X Name Prefix
VALIDITYBEGIN BAPIP0021-BEGDA D 8 Valid From Date
VALIDITYEND BAPIP0021-ENDDA D 8 Valid To Date
ZKVGP BAPIP0021LNL-ZKVGP C 2 X

Paramètre Reférence Type Long. Description
EMPLOYEENUMBER BAPIP0021-PERNR N 8 Personnel Number
LOCKINDICATOR BAPIP0021-SPRPS C 1 Lock Indicator for HR Master Record
OBJECTID BAPIP0021-OBJPS C 2 Object Identification
RECORDNUMBER BAPIP0021-SEQNR N 3 Number of Infotype Record
RETURN BAPIRETURN1 u 470 Structure for Return Parameter
SUBTYPE BAPIP0021-SUBTY C 4 Subtype
VALIDITYBEGIN BAPIP0021-BEGDA D 8 Valid From Date
VALIDITYEND BAPIP0021-ENDDA D 8 Valid To Date

Functionality
This method can be used to create a subsequent record for infotypeFamily/Related Person (0021).
Example:
The husband of an employee has just been awarded a doctorate. A datarecord has already been maintained for infotype Family/RelatedPerson (0021) for the validity period 01.01.1990 - 31.12.1999.
The method CREATESUCCESSOR can be used to create a subsequent record.This subsequent record contains the data of the previous record, onlythe spouse's title must be added to the field Title.
The previous record will be delimited on the start date of thesubsequent record.

Notes
Messages are returned in the RETURN parameter. This parameterdocumentation contains the return values and their meanings.
The key fields used by the method are described under the parameters.
This method can only be used if the ENQUEUE method is called first forthe business object EMPLOYEE. You will find further details onthe ENQUEUE method in the function module documentationBAPI_EMPLOYEE_ENQUEUE.

Description
You will find details on the meaning of Personnel Number in therelevant data element documentation: Personnel Number
.

Description
You will find details on the meaning of Lock Indicator for HR MasterRecord in the relevant data element documentation: LockIndicator for HR Master Record.

Description
You will find details on the meaning of Object Identification in therelevant data element documentation: Object Identification
.

Description
You will find details on the meaning of Number of Infotype Record withSame Key in the relevant data element documentation:Number of Infotype Record with Same Key.

Description
Return Code of Method

Value range
In case of error, the structure may contain the following information:

  • Message Type (field TYPE)

  • Message Code (field CODE)

  • Message Text (field MESSAGE)

  • If there are no errors, the field string is initial.

    Description
    You will find details on the meaning of Subtype in the relevant dataelement documentation: Subtype.

    Description
    You will find details on the meaning of Title in the relevant dataelement documentation: Title .

    Description
    You will find detials on the meaning of Other Title in the relevantdata element documentation: Other Title .

    Description
    You will find details on the meaning of Date of Birth in the relevantdata element documentation: Date of Birth .

    Description
    You will find details on the meaning of Personnel Number in therelevant data element documentation: Personnel Number
    .

    Description
    You will find details on the meaning of Gender Key in the relevant dataelement documentation: Gender Key.

    Description
    You will find details on the meaning of Object Identification in therelevant data element documentation: Object Identification
    .

    Description
    You will find details on the meaning of Type of Family Record in therelevant data element documentation: Type of Family Record
    .

    Description
    You will find details on the meaning of Nationality in the relevantdata element documentation: Nationality .

    Description
    You will find details on the meaning of Second Nationality in therelevant data element documentation: Second Nationality.

    Description
    You will find details on the meaning of Third Nationality in therelevant data element documentation: Third Nationality.

    Description
    You will find details on the meaning of COMMIT Control in the relevantdata element documentation: COMMIT Control at BAPIInterface.

    Description
    You will find details on the meaning of Name Prefix in the relevantdata element documentation: Name Prefix.

    Description
    You will find details on the meaning of State in the relevant dataelement documentation: State .

    Description
    You will find details on the meaning of Name Prefix in the relevantdata element documentation: Name Prefix.