12-28-2007 1:37 PM
Hi,
i am updating a custom table using bdc in sm30. I have a issue, if the table is opened by any user when updating then the data's are not getting updated saying it is being locked . So how come i know whether the table is locked by other user. Is there any FM ??
regards
Krithika.
12-28-2007 1:45 PM
12-28-2007 1:51 PM
Pankaj,
Basically i dont want to execute my program if there is lock on that custom table.
regards
Krithika
12-28-2007 1:55 PM
Hi,
you can call FM ENQUEUE_E_TABLEE with TABNAME = <yourtable>, if sy-subrc is not 0 then the table is locked and in sy-msgv1 is the user name who holds the lock.
Cheers
Thomas
Edit: if sy-subrc is 0 then you should call DEQUEUE_E_TABLEE before you start the BDC, or else you would run into your own lock...
12-28-2007 2:00 PM
Hi
Try using FM ENQUEUE_READ to read the locked entries.
If your table is part of the entry then the process can be cancelled in the beginning itself...
Regards
Arun