‎2008 Jun 25 12:19 PM
Hi ,
Im trying to use the BAPI : BAPI_ADDRESSEMP_CHANGE to change the address. But it saying the message :
184Employee/applicant is not locked yet
Pls specify what is it and how to correct it .
‎2008 Jun 25 12:28 PM
Message PG 184.
Long text says:
Diagnosis
You have attempted to change employee/applicant data which, however, can
only be done if you have exclusive access to this data. This means that
you must lock the data for other users before changing it, which you
have not done.
Procedure
You can probably solve your problem only by modifying the program.
‎2008 Jun 25 12:28 PM
Message PG 184.
Long text says:
Diagnosis
You have attempted to change employee/applicant data which, however, can
only be done if you have exclusive access to this data. This means that
you must lock the data for other users before changing it, which you
have not done.
Procedure
You can probably solve your problem only by modifying the program.
‎2008 Jun 25 12:36 PM
hi,
before using the BAPI, lock the Employee by calling FM,
Lock the employee for processing infotype 9004
CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
EXPORTING
number = v_pernr.
after changing the Employee address through BAPI, unlock the emploee by calling FM
Unlock the employee
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
number = v_pernr.
hope this will solve your problem.
reward points if it is useful.
Regards,
Srilatha.
‎2008 Jun 25 12:38 PM
Have you called the function module BAPI_EMPLOYEE_ENQUEUE before BAPI_ADDRESSEMP_CHANGE? The first FM locks the Employee data there by providing you to change the employee info.
<REMOVED>
Regards,
Kiran Bobbala
Edited by: Craig Cmehil on Jun 26, 2008 9:58 AM