Skip to Content
Jun 12, 2009 at 07:56 AM

Employee/applicant is not locked yet



I am trying to create Absence with BAPI_PTMGRATTABS_MNGCREATION. I run it in SE37. Before it I run BAPI_EMPLOYEE_ENQUEUE and after BAPI_EMPLOYEE_DEQUEUE.

But it shows the error:

"Employee/applicant is not locked yet".

What BAPI_EMPLOYEE_EN/DEQUEUE must returns on success? I've got just 000 in the field NUM and 000000 in the LOG_MSG_NO.

Using PA30 I create an Absence with no problems.

Using the flag SIMULATION in BAPI_PTMGRATTABS_MNGCREATION there is no problems too.

I filling such fields:

- Employeenumber (1027 - Dr. Martin Jost)

- ABS_ATT_TYPE (0100 - Leave w. quota d. (days))

- HRABSATT_IN and here I fill just two fields FROM_DATE (13.06.2005) and TO_DATE (15.06.2005) - yes, I know this dates are in the past, but the problem is not here, I think.

I using IDES (Component version - SAP ERP Central Component 5.0)

The question is what I am doing wrong?

PS. In future, I will call this BAPIs remotely from another system. So I real don't want to create any programs, if it would be possible of course.

Regards and thanks,