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: 

FM to lock objects (BP)

Former Member
0 Kudos

Hello all,

Since the CRM development page is not working at the moment I post this question here.

I need to know if there is any FM that verifies if a Business Partner (object) is locked by a user.

Can you guys please help me with this? Thank you!

Felipe

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

If you know the table that the business partners are kept in, then there should be a lock object for that table. Check for the lock object in SE11. Click the radiobutton for lock object, put your cursor on the field next to it, and hit F4. In the dialog, click the button that will expand the selection area. Now enter the name of the table in the "basis table" field. click green check.

Regards,

Rich Heilman

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Felipe!

Easiest way to find the function module:

Lock a business partner (enter in change transaction), go to transaction SM12, identify corresponding line, double click.

There is a field lock object name.

Name of FM is 'ENQUEUE_'+<lock object>.

Try to set a lock with this FM.

If it's possible, then there was no lock, release lock again with 'DEQUEUE_'+<lock_object>.

If it's not possible, then there is already a foreign lock (or a wrong function call...).

Regards,

Christian

andreas_mann3
Active Contributor
0 Kudos

Hi,

try fm ENQUEUE_E_TABLE

Andreas