# BAPI_EMPLCOMM_CREATE — Create Employee Communication (Infotype 0105)

> Creates a communication record (infotype 0105), such as the SAP user name or e-mail address, for the given subtype. It is commonly used to link employees to their SAP users in identity management interfaces. Lock the employee first and check RETURN.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| EMPLOYEENUMBER | BAPIP0105N-EMPLOYEENO | Personnel number | Yes |
| SUBTYPE | BAPIP0105N-SUBTYPE | Subtype | Yes |
| VALIDITYBEGIN | BAPIP0105N-VALIDBEGIN | Valid from | Yes |
| VALIDITYEND | BAPIP0105N-VALIDEND | Valid to | Yes |
| COMMUNICATIONID | BAPIP0105N-ID | Communication ID or number | - |
| NOCOMMIT | BAPI_STAND-NO_COMMIT | No commit (caller commits) | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return message |
| EMPLOYEENUMBER | BAPIP0105N-EMPLOYEENO | Personnel number |
| SUBTYPE | BAPIP0105N-SUBTYPE | Subtype |
| OBJECTID | BAPIP0105N-OBJECTID | Object identification |
| LOCKINDICATOR | BAPIP0105N-LOCKINDIC | Lock indicator |
| VALIDITYBEGIN | BAPIP0105N-VALIDBEGIN | Valid from |
| VALIDITYEND | BAPIP0105N-VALIDEND | Valid to |
| RECORDNUMBER | BAPIP0105N-RECORDNR | Record number |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_EMPLCOMM_CREATE'
  EXPORTING
    employeenumber = lv_employeenumber
    subtype = lv_subtype
    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

PA0105

