Fonction SAP BAPI_ADDRESSEMP_CREATE - 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
FOREIGNADDRESS FLAG C 1 SPACE X Create Address Abroad
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 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 code
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 an Addresses record (0006).

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.

Description
For information on the personnel number, read the relevant data elementdocumentation: Personnel number.

Description
For information on the lock indicator for the HR master record, readthe relevant data element documentation: Lock indicatorfor HR master record.

Description
For information on the object identification, read the relevant dataelement documentation: Object identification.

Description
For information on the infotype record number for the same key, readthe relevant data element documentation: Number ofinfotype record for same key.

Description
Method return code

Value range
In case of an error, this structure contains the following information:

  • Message type (TYPE field)

  • Message code (CODE field)

  • Message text (MESSAGE field)

  • If the operation is successful, this structure contains the initialvalue.

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

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

    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
    For information on the personnel number, read the relevant data elementdocumentation: Personnel number.

    Description
    You can use this parameter to control whether the address to be createdis an address abroad.

    Value range
    'X': The address to be created is interpreted as an address abroad. Thecountry-specific checks for the country entered in arameter COUNTRY aremade. The corresponding country screen of IT0006 is determined via thefeature CSSCR.
    ' ': The country-specific checks for the employee's home country areperformed for the address to be created.

    Default
    By default, the parameter FOREIGNADDRESS has the value ' ' (SPACE).

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

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