Fonction SAP BAPI_ADDREMPES_CREATESUCCESSOR - Personnel number next record create

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESSTYPE BAPIP0006-SUBTY C 4 Subtype
BUSROUTE BAPIP0006LES-BUSROUTE C 3 X
CITY BAPIP0006-ORT01 C 40 X Location
COMMNUMBER1 BAPIP0006LES-COMMNUMBER1 C 20 X
COMMNUMBER2 BAPIP0006LES-COMMNUMBER2 C 20 X
COMMNUMBER3 BAPIP0006LES-COMMNUMBER3 C 20 X
COMMNUMBER4 BAPIP0006LES-COMMNUMBER4 C 20 X
COMMTYPE1 BAPIP0006LES-COMMTYPE1 C 4 X
COMMTYPE2 BAPIP0006LES-COMMTYPE2 C 4 X
COMMTYPE3 BAPIP0006LES-COMMTYPE3 C 4 X
COMMTYPE4 BAPIP0006LES-COMMTYPE4 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 BAPIP0006LES-DISTANCEINKM P 2 X
DISTANCEINKM1 BAPIP0006LES-DISTANCEINKM1 P 2 X
DISTRICT BAPIP0006-ORT02 C 40 X
EMPLOYEENUMBER BAPIP0006-PERNR N 8 Personnel number
HOUSE_NO BAPIP0006-HSNMR C 10 X
NOCOMMIT BAPI_STAND-NO_COMMIT C 1 X
POSTA BAPIP0006-POSTA C 10 X
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
STREETABV BAPIP0006LES-STREETABV C 2 X
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
OBJECTID BAPIP0006-OBJPS C 2
RECORDNUMBER BAPIP0006-SEQNR N 3
RETURN BAPIRETURN1 u 470
SUBTYPE BAPIP0006-SUBTY C 4
VALIDITYBEGIN BAPIP0006-BEGDA D 8 Valid from date
VALIDITYEND BAPIP0006-ENDDA D 8 Valid to date

Functionality
With this method, you can create a new record for the infotypeAddresses (0006).
Example:
An employee has been updated in infotype Addresses (0006) in thefollowing address : A Street, A city, during the validity period from 1January 1990 - 31 December 1999.
The employee moved out on 1 January 1997. The new address: B Street, Bcity.
With the method CREATESUCCESSOR, you can create a new record with thenew address. This new record is filled in with the old record and onlythe fields House number and Street are filled in with thenew information.
The old information will be delimited from 31 December 1996.

Notes
Notifications will be assigned in parametre RETURN. In the parametredocumentation, you can find the return value and its descriptions.
The key fields used by the method are described in parametre.
This method can only be used if the business object ENQUEUE methodEMPLOYEE is called. Further information on the ENQUEUE methodcan be found in the function module documentation.
BAPI_EMPLOYEE_ENQUEUE.