Fonction SAP BAPI_FAMILYSG_CHANGE - Family SG: Change record

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
2NDSTREET BAPIP0021SG-MEM_2NDSTRT C 30 X Member 2nd Street Address Line
CERTIFICATE_NO BAPIP0021SG-CERTIFICATE_NO C 15 X Child Birth Certificate Number
CHILD_TYPE BAPIP0021SG-CHILD_TYPE C 2 X Child Type
CITY BAPIP0021SG-MEM_CITY C 25 X Member City
CONFINEMENT_NO BAPIP0021SG-CONFINEMENT_NO N 1 X Confinement Number
COUNTRYCODE BAPIP0021SG-MEM_COUNTRY C 3 X Member Country Code
DATEOFBIRTH BAPIP0021-FGBDT D 8 X Date of birth
DESIGNATION BAPIP0021SG-DESIGNATION C 15 X Member Designation
EMPLOYEENUMBER BAPIP0021-PERNR N 8 Personnel number
EMPLOYER2NDSTREET BAPIP0021SG-MEM_ER_2NDSTRT C 30 X Member ER 2nd address line
EMPLOYERCITY BAPIP0021SG-MEM_ER_CITY C 25 X Member ER City
EMPLOYERNAME BAPIP0021SG-EMPLOYERNAME C 100 X Member Employer Name
EMPLOYERPOSTALCODE BAPIP0021SG-MEM_ER_PSTCD C 10 X Member ER Postal Code
EMPLOYERSTREET BAPIP0021SG-MEM_ER_STRT C 30 X Member ER house number and street
EMPLOYMENTSTATUS BAPIP0021SG-EMP_STATUS C 1 X Spouse employment status
ETHNICORIGIN BAPIP0021SG-ETHNIC_ORIGIN C 2 X Ethnic origin
FIRSTNAME BAPIP0021-FAVOR C 40 X First name
GENDER BAPIP0021-FASEX C 1 X Gender key
IDNUMBER BAPIP0021SG-IDNUMBER C 20 X ID number
LASTNAME BAPIP0021-FANAM C 40 X Last name
LOCKINDICATOR BAPIP0021-SPRPS C 1 Lock indicator for HR master record
MAIDENNAME BAPIP0021-FGBNA C 40 X Maiden name
NAMEOFCOUNTRY BAPIP0021SG-MEM_NAMEOFCNTY C 15 X Member Name of Country
NATIONALITY BAPIP0021-FANAT C 3 X Nationality
NOCOMMIT BAPI_STAND-NO_COMMIT C 1 X COMMIT control at BAPI interface
OBJECTID BAPIP0021-OBJPS C 2 Object identification
PHONENUMBER BAPIP0021SG-MEM_PHONENUM C 14 X Member Phone Number
POSTALCODE BAPIP0021SG-MEM_PSTCD C 10 X Member Postal Code
RECORDNUMBER BAPIP0021-SEQNR N 3 Number of infotype record
RESIDENCYTYPE BAPIP0021SG-RESIDENCY_TYPE C 2 X Residency type
SCHOOLNAME BAPIP0021SG-SCHOOLNAME C 100 X Member School name if applicable?
STREET BAPIP0021SG-MEM_STRT C 30 X Member House number and street
SUBTYPE BAPIP0021-SUBTY C 4 Subtype
TAXID BAPIP0021SG-TAXID C 15 X Tax ID
VALIDITYBEGIN BAPIP0021-BEGDA D 8 Valid from date
VALIDITYEND BAPIP0021-ENDDA D 8 Valid to date

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Structure for Return Code

Functionality
You can use this method to change family/related-person records for SGemployees (infotypes 0021/0412).

Notes
INCLUDE BAPI_RET
The key fields used by the method are described in the parameterdocumentation.
You can use this method only if you have called the ENQUEUEmethod of the business object EMPLOYEE beforehand. For more informationon the ENQUEUE method, read the documentation on the function moduleBAPI_EMPLOYEE_ENQUEUE.

Description
INCLUDE BAPI_TABLE

Value range
Authorization messages
Type,,ID,,Code,,Message
E,,PG,,185,,No read authorization for record.
Messages on data input
Type,,ID,,Code,,Message
E,,PA,,017,,Applicant number not yet assigned.
E,,PG,,001,,Personnel number not yet assigned.
E,,PG,,009,,No data stored for record in selected period.
E,,PG,,184,,The employee/applicant is not yet locked.
E,,PG,,429,,Not possible to specify a view indicator for
,,,,,,applicant.
E,,PG,,430,,The employee is assigned to a different view
,,,,,,indicator.
E,,RP,,060,,The personnel number(s) could not be locked.
Other types of messages
Type,,ID,,Code,,Message
A,,PN,,018,,Cannot determine database table of the infotype.
E,,PG,,428,,A complex application error has occurred.
INCLUDE SCNDADDRESSLINE OBJECT DOKU ID TX

Description
Child Birth Certificate Number

Description
Child Type - Own Child or Adopted Child

Value range
00 - Own Child
01 - Adopted Child

Description
City

Description
Confinement Number
INCLUDE COUNTRYCODE OBJECT DOKU ID TX

Description
For more information on the definition of date of birth, see thecorresponding data element documentation: Date ofbirth.
INCLUDE DESIGNATION OBJECT DOKU ID TX
INCLUDE EMPLOYEENUMBER OBJECT DOKU ID TX
INCLUDE SCNDADDRESSLINE OBJECT DOKU ID TX
INCLUDE CITY OBJECT DOKU ID TX
INCLUDE EMPLOYERNAME OBJECT DOKU ID TX
INCLUDE POSTALCODE OBJECT DOKU ID TX
INCLUDE STREETANDHOUSENO OBJECT DOKU ID TX
INCLUDE EMPLOYMENTSTATUS OBJECT DOKU ID TX
INCLUDE ETHNICORIGIN OBJECT DOKU ID TX

Description
First name

Description
Gender key

Description
For more information on the definition of ID number, see thecorresponding data element documentation: ID number.

Description
Last name
INCLUDE OBJECTID OBJECT DOKU ID TX

Description
Last name at birth
INCLUDE NAMEOFCOUNTRY OBJECT DOKU ID TX

Description
The field indicates the person's nationality.

Description
For more information on the definition of COMMIT control at BAPIinterface, see the corresponding data element documentation:COMMIT control at BAPI interface.
INCLUDE OBJECTID OBJECT DOKU ID TX

Description
Telephone number

Description
For more information on the definition of postal code, see thecorresponding data element documentation: Postal code.
INCLUDE RECORDNUMBER OBJECT DOKU ID TX
INCLUDE RESIDENCYTYPE OBJECT DOKU ID TX
INCLUDE SCHOOLNAME OBJECT DOKU ID TX
INCLUDE STREETANDHOUSENO OBJECT DOKU ID TX
INCLUDE SUBTYPE OBJECT DOKU ID TX
INCLUDE TAXID OBJECT DOKU ID TX
INCLUDE VALIDITYBEGIN OBJECT DOKU ID TX
INCLUDE VALIDITYEND OBJECT DOKU ID TX