02-24-2006 12:26 AM
Hello
We are on ECC 6.0, WAS 700.
I am planning to use BAPI - BAPI_EMPLCOMM_CREATE for creating communication details against a personal number (Info type 105).
While I execute this BAPI, I get an error 'Employee/applicant is not locked yet'.
After dubugging, I found that the issue could be in 'ENQUEUE_EPPRELE' of function module 'HR_MAINTAIN_MASTERDATA'.
So in my calling 'Z' program , I called up 'ENQUEUE_EPPRELE' before calling the BAPI and this resulted in success.
However, I don't want to do this because I would expect the BAPI to do all the enqueue and dequeue for me.
Has anyone faced this issue and if yes, possible solutions?
Thanks
KK
02-24-2006 2:34 AM
Hi KK,
You have to use BAPI_EMPLOYEE_ENQUEUE & BAPI_EMPLOYEE_DEQUEUE before and after the original BAPI call.
Regards,
Suresh Datti
02-24-2006 2:34 AM
Hi KK,
You have to use BAPI_EMPLOYEE_ENQUEUE & BAPI_EMPLOYEE_DEQUEUE before and after the original BAPI call.
Regards,
Suresh Datti
02-27-2006 3:35 PM
Suresh-
Thanks for the BAPI. Didn't know I could use one. However, I still feel that the main BAPI should do the enqueue and dequeue by itself unless there is a specific design which I am not aware of. Do you know?
KK
02-27-2006 3:46 PM
Hi KK,
Not all BAPIs are designed that way.. some of them need explicit LOCK/UNLOCK & COMMITS too.. You will know only after hitting the error or going through the code...In some rare cases, you cann find such info in the BAPI's Documentation..
Regards,
Suresh Datti