2009 Jan 24 8:53 AM
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
2009 Jan 24 9:17 AM
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к
2009 Jan 24 9:17 AM
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к
2009 Jan 24 10:58 AM