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

objects not getting locked

Former Member
0 Likes
410

Hello Friends,

I want tht when one user is running one report thn the same report should not be available to any other user at the same time , for this i have created one zdummy table and entered the entry as programm name which i want to lock.

after tht i created the lock object for teh same table, in order to lock the report i made a call to function module enqueue and its getting executed but its not locking this report.

another user can still access the same record

Pls suggest what can b the problem???

Regards,

SUnny

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
373

if ur requirement is for a particular report only then u can do like this:

As soon as ur report starts execution make check that entry exists in ztable or not,(ztable shud be empty for the first time ) if empty then continue execution

insert a record into ur ztable through the report code itself and commit work.

now entry exists so no other user can execute the report as now entry has been created.

at the end of execution now delete the entry and commit work again.

кu03B1ятu03B9к

2 REPLIES 2
Read only

Former Member
0 Likes
374

if ur requirement is for a particular report only then u can do like this:

As soon as ur report starts execution make check that entry exists in ztable or not,(ztable shud be empty for the first time ) if empty then continue execution

insert a record into ur ztable through the report code itself and commit work.

now entry exists so no other user can execute the report as now entry has been created.

at the end of execution now delete the entry and commit work again.

кu03B1ятu03B9к

Read only

Former Member
0 Likes
373

thnks