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: 

User Exit to lock if 2 users are trying to update the same table through different transactions

Former Member
0 Kudos

Hi All,

Right now the issue is, if one particular user is raising one invoice and in the same time if another user is doing some payment for the same customer.

Due to this transaction, there will be change in the Credit master data (FD32-  KNKK table SKFOR field. Since all the user is trying to amend this field through different user transactions, the table is not updating properly.

So we would like to go for a user exit in such way that- if the user is trying to amend the KNKK-SKFOR table through different transaction then we should allow only one user.

Please any one share any user exit through which i can fit in this requirement.

Regards,

Mythily.A

1 REPLY 1

ThomasZloch
Active Contributor
0 Kudos

Sounds rather like a standard locking issue.

Look at transaction SM12 when somebody is currently updating FD32, find the corresponding lock entry and have your own application check for existing locks of the same object type before allowing to modify any data.

Please search for further information on ABAP locking concept using enqueue/dequeue function modules.

Thomas