HCM
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- 0PBAPI0105
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
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
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.