HCM BAPI RFC Used the same way in S/4HANA

BAPI_ABSENCE_CHANGE Change Absence (Infotype 2001)

Changes the times or hours of an existing absence record (infotype 2001) identified by its full key. It is used when an approved leave is shortened or corrected in the source system. Lock the employee before the call and check RETURN.

Function group
ABSE
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
EMPLOYEENUMBERBAPIP2001-PERNRPersonnel numberYes
SUBTYPEBAPIP2001-SUBTYSubtypeYes
OBJECTIDBAPIP2001-OBJPSObject identificationYes
LOCKINDICATORBAPIP2001-SPRPSLock indicatorYes
VALIDITYBEGINBAPIP2001-BEGDAValid fromYes
VALIDITYENDBAPIP2001-ENDDAValid toYes
RECORDNUMBERBAPIP2001-SEQNRRecord numberYes
STARTBAPIP2001-BEGUZStart time—
ENDBAPIP2001-ENDUZEnd time—
ABSENCEHOURSBAPIP2001-STDAZAbsence hours—
NOCOMMITBAPI_STAND-NO_COMMITNo commit (caller commits)—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message

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_ABSENCE_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

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