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_OBJCL_CHANGE Lock Error !

Former Member
0 Likes
1,827

Hi Friends,

Iam using BAPI_OBJCL_CHANGE to update the characteristics for equipment.

The code is somthing like:

call Function BAPI_OBJCL_CHANGE
	|
	|
Read it_return -  for any error messages.
	|
	|
Bapi_commit.

.

The problem here is, when run on Batch Mode sometimes this Bapi gives out the error 'Equipment is locked by user.'

There is no other parallel job running at this time. But also we get this error. Sometimes able to replicate and sometimes not.

I searched in SDN and found few others also faced the same problem with this FM BAPI_OBJCL_CHANGE.

The thread i viewed for your ref:

Kindly suggest me the suitable solution.

Should locking and unlocking the equipment using FM enqueue/dequeue before calling this bapi will help?

or

Should this Bapi be called in Update task?

Kindly suggest me.

thanks,

Padma

4 REPLIES 4
Read only

Former Member
0 Likes
945

Hi,

Please try this

CALL FUNCTION function IN UPDATE TASK

COMMIT WORK

Regards

Hiren K.Chitalia

Read only

Former Member
0 Likes
945

Hi,

I am also facing same issue.

I am using BAPI inside a program to assign characteristics to sales orders.

for 1st item it is creating rest all it is returning lock entries errors.

did you get any solution, please suggest.

Thanks,

Chandra.

Read only

Former Member
0 Likes
945

Hi,

You can use CALL FUNCTION 'DEQUEUE_ALL'.

Regards

Read only

NTeunckens
Active Contributor
0 Likes
945

Please see this informative Blog on the same issue and its possible Resolutions : link