Fonction SAP BAPIADDRESSEMPSIMULATECREATION - Simulation: Create employee address

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESSTYPE BAPIP0006-SUBTY C 4 Subtype
CITY BAPIP0006-ORT01 C 40 X City
CONAME BAPIP0006-NAME2 C 40 X C/O Name
COUNTRY BAPIP0006-LAND1 C 3 X Country Key
DISTRICT BAPIP0006-ORT02 C 40 X District
EMPLOYEENUMBER BAPIP0006-PERNR N 8 Personnel Number
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 X Region
STREETANDHOUSENO BAPIP0006-STRAS C 60 X Street and house number
TELEPHONENUMBER BAPIP0006-TELNR C 14 X Telephone Number
VALIDITYBEGIN BAPIP0006-BEGDA D 8 Validity Start Date
VALIDITYEND BAPIP0006-ENDDA D 8 Validity End 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 Code
SUBTYPE BAPIP0006-SUBTY C 4 Subtype
VALIDITYBEGIN BAPIP0006-BEGDA D 8 Validity Start Date
VALIDITYEND BAPIP0006-ENDDA D 8 Validity End Date

Functionality
You can use this method to simulate creation of an Addressesrecord (Infotype 0006).
During the simulation all necessary consistency checks are performed,but the record is not written to the database.

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.
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
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 key.

Description
District
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
For information on the definition of house number and street, see thecorresponding data element documentation House numberand street.

Description
Telephone number
INCLUDE BAPI_KEYFIELD
INCLUDE BAPI_KEYFIELD