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

ParameterTypeDescriptionRequired
EMPLOYEENUMBERBAPIP0105N-EMPLOYEENOPersonnel numberYes
SUBTYPEBAPIP0105N-SUBTYPESubtypeYes
VALIDITYBEGINBAPIP0105N-VALIDBEGINValid fromYes
VALIDITYENDBAPIP0105N-VALIDENDValid toYes
COMMUNICATIONIDBAPIP0105N-IDCommunication ID or number—
NOCOMMITBAPI_STAND-NO_COMMITNo commit (caller commits)—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message
EMPLOYEENUMBERBAPIP0105N-EMPLOYEENOPersonnel number
SUBTYPEBAPIP0105N-SUBTYPESubtype
OBJECTIDBAPIP0105N-OBJECTIDObject identification
LOCKINDICATORBAPIP0105N-LOCKINDICLock indicator
VALIDITYBEGINBAPIP0105N-VALIDBEGINValid from
VALIDITYENDBAPIP0105N-VALIDENDValid to
RECORDNUMBERBAPIP0105N-RECORDNRRecord 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.

Request a custom report