Application Development 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: 

How to Lock Business Partner

Former Member
0 Kudos
2,385

Hello Guys,

we are going to edit Business Partner using respectiv BAPIs (BAPI_BUPA_...).

Since a user is going to change a BP's data, we have to lock the particular BP.

Until now we could not find a BAPI to lock and unlock - is there really none?

How can we do the lock/unlock?

All advices, tipps, ideas or explanations are welcome!

Best regards

Philipp

2 REPLIES 2

mvoros
Active Contributor
0 Kudos
336

Hi,

you don't have to do it. BAPIs get all required locks. If the object which you want to change with BAPI is already locked by other user then BAPI returns a corresponding message and it fails to change object.

Cheers

Former Member
0 Kudos
336

As Martin mentioned, BAPI should check if it is altready locked.

if your code is for some foreground activity wich may last for some time then you may try Enque function module on BUT000 table record.

Or Function module ENQUEUE_EBU_PARTNR