# BAPI_ADDRESSEMP_CREATE — Create Employee Address (Infotype 0006)

> Creates an address record (infotype 0006) of the given address type for an employee. It is used in data transfer and self-service interfaces. Lock the employee with BAPI_EMPLOYEE_ENQUEUE first and check RETURN; existing records of the same type are delimited according to the time constraint.

- Modules: HCM
- Type: BAPI
- Function group: PADR
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-addressemp-create/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| EMPLOYEENUMBER | BAPIP0006-PERNR | Personnel number | Yes |
| ADDRESSTYPE | BAPIP0006-SUBTY | Address type | Yes |
| VALIDITYBEGIN | BAPIP0006-BEGDA | Valid from | Yes |
| VALIDITYEND | BAPIP0006-ENDDA | Valid to | Yes |
| CONAME | BAPIP0006-NAME2 | c/o name | - |
| STREETANDHOUSENO | BAPIP0006-STRAS | Street and house number | - |
| SCNDADDRESSLINE | BAPIP0006-LOCAT | Second address line | - |
| CITY | BAPIP0006-ORT01 | City | - |
| DISTRICT | BAPIP0006-ORT02 | District | - |
| POSTALCODECITY | BAPIP0006-PSTLZ | Postal code | - |
| STATE | BAPIP0006-STATE | Region | - |
| COUNTRY | BAPIP0006-LAND1 | Country key | - |
| TELEPHONENUMBER | BAPIP0006-TELNR | Telephone number | - |
| NOCOMMIT | BAPI_STAND-NO_COMMIT | No commit (caller commits) | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return message |
| EMPLOYEENUMBER | BAPIP0006-PERNR | Personnel number |
| SUBTYPE | BAPIP0006-SUBTY | Subtype |
| OBJECTID | BAPIP0006-OBJPS | Object identification |
| LOCKINDICATOR | BAPIP0006-SPRPS | Lock indicator |
| VALIDITYBEGIN | BAPIP0006-BEGDA | Valid from |
| VALIDITYEND | BAPIP0006-ENDDA | Valid to |
| RECORDNUMBER | BAPIP0006-SEQNR | Record number |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ADDRESSEMP_CREATE'
  EXPORTING
    employeenumber = lv_employeenumber
    addresstype = lv_addresstype
    validitybegin = lv_validitybegin
    validityend = lv_validityend
  IMPORTING
    return = lv_return
    employeenumber = lv_employeenumber
    subtype = lv_subtype
    objectid = lv_objectid
    lockindicator = lv_lockindicator
    validitybegin = lv_validitybegin
    validityend = lv_validityend
    recordnumber = lv_recordnumber.
```

## Related tables

PA0006

