Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error msg Employee/applicant is not locked yet for BAPI_PERSDATA_CHANGE

Hi all,

I'm testing the BAPI BAPI_PERSDATA_CHANGE in se37. Before that m locking the employee using bapi_employee_enqueue. But while executing the BAPI_PERSDATA_CHANGE m getting the error Employee/applicant is not locked yet. I have used BAPI_TRANSACTION_COMMIT after locking the employee.

I wrote a sample code for changing the personal data. and through the code m able to change the personal data of an employee. But while testing through se37 m getting the error Employee/applicant is not locked yet. Is it not possible to change the personal data just executing the all required bapi's in sequential order: bapi_employee_enqueue ,BAPI_PERSDATA_CHANGE ,BAPI_TRANSACTION_COMMIT

Can anyone help on this. I have exposed these BAPI's for changing the personal data of an employee.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question