‎2007 Jun 13 11:16 AM
hi all,
how to enqueue program , i want to allow only 1 user to run the program
‎2007 Jun 13 11:27 AM
Hi,
What you can do is create a custom table for users who can run this report and put this customization in IMG.
and in the program read the USER's list who can run this program and then check if SY-UNAME is in this list of USER's if exists then proceed with the program else exit from the program.
Alternatively you can actually assign a transaction to that and control this transaction through Authorization object.
Regards,
Sesh
‎2007 Jun 13 11:24 AM
Hi...
Use the FM ENQUEUE_E_TABLE when you want to lock the table..
and use the FM 'DEQUEUE_E_TABLE' to unlock it
‎2007 Jun 13 11:26 AM
Hi
Using <b>Authorization Concept</b> you can achieve that.
Contact your basis guy for that.
Regards,
Sree
‎2007 Jun 13 11:27 AM
Hi,
What you can do is create a custom table for users who can run this report and put this customization in IMG.
and in the program read the USER's list who can run this program and then check if SY-UNAME is in this list of USER's if exists then proceed with the program else exit from the program.
Alternatively you can actually assign a transaction to that and control this transaction through Authorization object.
Regards,
Sesh
‎2007 Jun 13 11:39 AM
is there any function that can lock program or enqueue program ?
‎2007 Jun 13 11:53 AM
Fm to lock the table : ENQUEUE_E_TABLE
Message was edited by:
prasanna rao
‎2007 Jun 13 11:55 AM
IF you want only one user to run the program then calla bdc in the startgin of the program, and lock the program using transaction sm01, at the time of exit again call this transaction and unlock the program.
Like this only one user can user it at a time. I have never tried this approach but it should work.
Thanks,
Shweta