Fonction SAP BAPI_ADDREMPSG_CREATESUCCESSOR - ESS Address Create Successor - Singapore

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESSTYPE BAPIP0006-SUBTY C 4 Subtype
BLOCKNUMBER BAPIP0006-BLDNG C 10 X Block Number
CITY BAPIP0006-ORT01 C 40 X City
COMMNUMBER1 BAPIP0006SG-COMMNUMBER1 C 20 X Communications number
COMMNUMBER2 BAPIP0006SG-COMMNUMBER2 C 20 X Communications number
COMMNUMBER3 BAPIP0006SG-COMMNUMBER3 C 20 X Communications number
COMMNUMBER4 BAPIP0006SG-COMMNUMBER4 C 20 X Communications number
COMMTYPE1 BAPIP0006SG-COMMTYPE1 C 4 X Communication type
COMMTYPE2 BAPIP0006SG-COMMTYPE2 C 4 X Communication type
COMMTYPE3 BAPIP0006SG-COMMTYPE3 C 4 X Communication type
COMMTYPE4 BAPIP0006SG-COMMTYPE4 C 4 X Communication type
CONAME BAPIP0006-NAME2 C 40 X C/O name
COUNTRY BAPIP0006-LAND1 C 3 X Country key
DISTRICT BAPIP0006-ORT02 C 40 X District
INEMPLOYEENUMBER BAPIP0006SG-EMPLOYEENO N 8 Personnel Number
INVALIDITYBEGIN BAPIP0006SG-VALIDBEGIN D 8 Start date
INVALIDITYEND BAPIP0006SG-VALIDEND D 8 End Date
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 2nd address line
STATE BAPIP0006-STATE C 3 SPACE X State
STOREY BAPIP0006-FLOOR C 10 X Storey/Floor in building
STREET2 BAPIP0006SG-STREET2 C 40 X Street 2
STREET3 BAPIP0006SG-STREET3 C 40 X Street 3
STREETANDHOUSENO BAPIP0006-STRAS C 60 X House number and street
STREETCODE BAPIP0006-POSTA C 10 X Street Code
TELEPHONENUMBER BAPIP0006-TELNR C 14 X Telephone number
UNITNUMBER BAPIP0006-HSNMR C 10 X Unit Number

Paramètre Reférence Type Long. Description
EMPLOYEENUMBER BAPIP0006SG-EMPLOYEENO N 8 Personnel Number
LOCKINDICATOR BAPIP0006SG-LOCKINDIC C 1 Lock indicator for HR master record
OBJECTID BAPIP0006SG-OBJECTID C 2 Object identification
RECORDNUMBER BAPIP0006SG-RECORDNR N 3 Number of infotype record with same key
RETURN BAPIRETURN1 u 470 Structure for return code
SUBTYPE BAPIP0006SG-SUBTYPE C 4 Subtype
VALIDITYBEGIN BAPIP0006SG-VALIDBEGIN D 8 Start date
VALIDITYEND BAPIP0006SG-VALIDEND D 8 End 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 EMPLOYEENUMBER OBJECT DOKU ID TX
INCLUDE LOCKINDICATOR OBJECT DOKU ID TX
INCLUDE OBJECTID OBJECT DOKU ID TX
INCLUDE RECORDNUMBER OBJECT DOKU ID TX
INCLUDE RETURN1 OBJECT DOKU ID TX
INCLUDE SUBTYPE OBJECT DOKU ID TX
INCLUDE VALIDITYBEGIN OBJECT DOKU ID TX
INCLUDE VALIDITYEND OBJECT DOKU ID TX

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

Description
Block Number
INCLUDE CITY OBJECT DOKU ID TX
INCLUDE COMMNUMBER1 OBJECT DOKU ID TX
INCLUDE COMMNUMBER2 OBJECT DOKU ID TX
INCLUDE COMMNUMBER3 OBJECT DOKU ID TX
INCLUDE COMMNUMBER4 OBJECT DOKU ID TX
INCLUDE COMMTYPE1 OBJECT DOKU ID TX
INCLUDE COMMTYPE2 OBJECT DOKU ID TX
INCLUDE COMMTYPE3 OBJECT DOKU ID TX
INCLUDE COMMTYPE4 OBJECT DOKU ID TX

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 DISTRICT2 OBJECT DOKU ID TX
INCLUDE EMPLOYEENUMBER OBJECT DOKU ID TX
INCLUDE VALIDITYBEGIN OBJECT DOKU ID TX
INCLUDE VALIDITYEND OBJECT DOKU ID TX

Description
For information on COMMIT control, read the relevant data elementdocumentation: COMMIT control at BAPI interface.
INCLUDE POSTALCODE OBJECT DOKU ID TX
INCLUDE SCNDADDRESSLINE OBJECT DOKU ID TX
INCLUDE UNUSEDPARAMETER OBJECT DOKU ID TX

Description
Storey/Floor in Building.
INCLUDE STREETANDHOUSENO OBJECT DOKU ID TX

Description
Unique Street Code / Identifier for Singapore
INCLUDE TELEPHONENUMBER OBJECT DOKU ID TX

Description
Unit Number in Building/Apartment