cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding BAPI_ABSENCE_APPROVE

Former Member
0 Kudos

Hi guys,

I have used BAPI_EMPLOYEE_ENQUEUE to lock the employee record. And then i have used BAPI_ABSENCE_CREATE to create a lock absence record. Now i am trying to unlock the record by using BAPI_ABSENCE_APPROVE, but it is not working.

BAPI_ABSENCE_APPROVE requires some parameters which will be written by BAPI_ABSENCE_CREATE (i.e object id , record no. ). When i executed BAPI_ABSENCE_APPROVE, it has written me that no data exists for selected period.

please helpout

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

anncottens
Explorer
0 Kudos

BAPI_ABSENCE_APPROVE is used very frequently here and it always works.

One difference : to lock i use :

CALL FUNCTION 'ENQUEUE_EPPRELE'

EXPORTING

pernr = pernr

EXCEPTIONS

  • own_lock = 1

foreign_lock = 2

system_failure = 3.

The export parameter BAPIRETURN1 in BAPI_ABSENCE_APPROVE : how many messages ?