Fonction SAP BAPI_ADDREMPNL_CREATESUCCESSOR - Create Subsequent Employee Address Record

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESSTYPE BAPIP0006-SUBTY C 4 Subtype
APARTMENTID BAPIP0006-POSTA C 10 X Identification of an Apartment in a Building
BUSROUTE BAPIP0006-BUSRT C 3 X
CITY BAPIP0006-ORT01 C 40 X Location
COMMNUMBER1 BAPIP0006-NUM01 C 20 X Communication Number 1
COMMNUMBER2 BAPIP0006-NUM02 C 20 X Communication Number 2
COMMNUMBER3 BAPIP0006-NUM03 C 20 X Communication Number 3
COMMNUMBER4 BAPIP0006-NUM04 C 20 X
COMMTYPE1 BAPIP0006-COM01 C 4 X Communication Type 1
COMMTYPE2 BAPIP0006-COM02 C 4 X Communication Type 2
COMMTYPE3 BAPIP0006-COM03 C 4 X Communication Type 3
COMMTYPE4 BAPIP0006-COM04 C 4 X
COMPANYOWNEDAPT BAPIP0006-WKWNG C 1 X
CONAME BAPIP0006-NAME2 C 40 X C/O Name
COUNTRY BAPIP0006-LAND1 C 3 X Country Key
DISTANCEINKM BAPIP0006-ENTKM P 2 X
DISTANCEINKM1 BAPIP0006-ENTK2 P 2 X
EMPLOYEENUMBER BAPIP0006-PERNR N 8 Personnel Number
HOUSENUMBER BAPIP0006-HSNMR C 10 X
NOCOMMIT BAPI_STAND-NO_COMMIT C 1 X COMMIT Control at BAPI Interface
POSTALCODECITY BAPIP0006-PSTLZ C 10 X Postal Code
SCNDADDRESSLINE BAPIP0006-LOCAT C 40 X
STATE BAPIP0006-STATE C 3 X Region
STREET BAPIP0006-STRAS C 60 X House Number and Street
TELEPHONENUMBER BAPIP0006-TELNR C 14 X Telephone Number
VALIDITYBEGIN BAPIP0006-BEGDA D 8 Valid From Date
VALIDITYEND BAPIP0006-ENDDA D 8 Valid To Date

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

Functionality
You can use this method to create a subsequent Addresses record(0006).
Example:
An employee lives in street 'A' and city 'A'. This data is stored inthe Addressess infotype (0006) for the validity period from01/01/1990 - 12/31/1999.
The employee moves on 01/01/1997. The new address is street 'B' in city'A'.
You can use the CREATESUCCESSOR method to create a subsequentAddresses record (0006). The subsequent record contains the dataof the previous record, only the Street/house number field hasto be changed.
The previous record is delimited on 12/31/1996.

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.
INCLUDE BAPI_KEYFIELD
INCLUDE BAPI_KEYFIELD
INCLUDE BAPI_KEYFIELD
INCLUDE BAPI_KEYFIELD

Description
INCLUDE BAPI_TABLE

Value range
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 BAPI_KEYFIELD
INCLUDE BAPI_KEYFIELD
INCLUDE BAPI_KEYFIELD

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

Description
City

Description
Communication Number corresponding to the Communication Type in thepreceding field, such as fax, telephone, pager, etc.

Description
Communication Number corresponding to the Communication Type in thepreceding field, such as fax, telephone, pager, etc.

Description
Communication Number corresponding to the Communication Type in thepreceding field, such as fax, telephone, pager, etc.

Description
Communication Number corresponding to the Communication Type in thepreceding field, such as fax, telephone, pager, etc.

Description
Communication Type

Description
Communication Type

Description
Communication Type

Description
Communication Type

Description
For information on the C/O name, read the relevant data elementdocumentation: C/O name.

Description
For information on the country key, read the relevant data elementdocumentation: Country.
INCLUDE BAPI_KEYFIELD

Description
For information on COMMIT control, read the relevant data elementdocumentation: COMMIT control at BAPI interface.

Description
Postal Code

Description
Second Address Line

Description
For information on the region (state, province, county), read therelevant data element documentation: Region.

Description
Use this field to identify the Street Name and House Number.
To do so:

  • Type in the street address, to a maximum of 30 characters.
  • Description
    Telephone Number
    INCLUDE BAPI_KEYFIELD
    INCLUDE BAPI_KEYFIELD