Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI Message

Former Member
0 Likes
697

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 .

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
644

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.

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
645

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.

Read only

Former Member
0 Likes
644

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.

Read only

Former Member
0 Likes
644

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