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: 

Issue with BDC in SM30

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi,

You can check in transaction SM12.

Regards,

Pankaj

Former Member
0 Kudos

Pankaj,

Basically i dont want to execute my program if there is lock on that custom table.

regards

Krithika

0 Kudos

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...

Former Member
0 Kudos

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