# BAPI_ADDRESSEMP_CHANGE — Change Employee Address (Infotype 0006)

> Changes an existing address record (infotype 0006) identified by its full key. Self-service and interface programs use it to update street, city, postal code or phone number. The key must match the current record exactly; lock the employee before the call and check RETURN.

- 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-change/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| EMPLOYEENUMBER | BAPIP0006-PERNR | Personnel number | Yes |
| SUBTYPE | BAPIP0006-SUBTY | Subtype | Yes |
| OBJECTID | BAPIP0006-OBJPS | Object identification | Yes |
| LOCKINDICATOR | BAPIP0006-SPRPS | Lock indicator | Yes |
| VALIDITYBEGIN | BAPIP0006-BEGDA | Valid from | Yes |
| VALIDITYEND | BAPIP0006-ENDDA | Valid to | Yes |
| RECORDNUMBER | BAPIP0006-SEQNR | Record number | Yes |
| STREETANDHOUSENO | BAPIP0006-STRAS | Street and house number | - |
| CITY | BAPIP0006-ORT01 | City | - |
| POSTALCODECITY | BAPIP0006-PSTLZ | Postal code | - |
| 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 |

## Call template (ABAP)

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

## Related tables

PA0006

