Application Development and Automation 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: 
Read only

Lock Table based on primary key- Problem in executing report

Former Member
0 Likes
574

Hi Experts

In my report we have Personnel no. [pernr-field1] and start work date [field2] on selection screen and both are mandatory.

When one user executes the report with pernr for example as 7 on sel. screen we look the table to update entries.

But if other user at the same time wants to run the report for 1-8 pernr in range he gets a error message that table is locked

this happens because pernr 7 is already locked.

Can anyone suggest how can we avoid this situation ? So that user1 can execute the report for pernr 7

and user2 can execute the report for pernr 1-8

Please share your inputs.

2 REPLIES 2
Read only

Former Member
0 Likes
497

Hi

I think You have used locking concept in program on database table. remove it your problem will be resolved.

Regards

Ajit

Read only

Former Member
0 Likes
497

Which level of Locking are you using??

Generally lock and unlock on record level should be performed with user action (like save) rather than during life time of report execution.