10-19-2005 4:42 PM
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
10-19-2005 4:46 PM
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
10-19-2005 4:52 PM
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
10-20-2005 7:12 AM