‎2008 Feb 13 7:22 AM
Hi
I want to restrict the program only two users at a time ( with out using authorization object ).
Thanks & Regards,
K.Gunasekar.
‎2008 Feb 13 7:53 AM
Just an idea:
create a table with one column to store the userid. Each time the program ist started, you execute a SELECT COUNT( * ) on that table and EXIT from your program as soon as the table contains more that 2 entries. In case the table does not contain more than two entries, you can proceed after adding the SY-UNAME to that table. At the end of the prgram you have to delete SY-UNAME from that table.
‎2008 Feb 13 7:41 AM
Hi,
Any function module to retrieve no of users access the same program.
Thanks & Regards
K.Gunasekar
‎2008 Feb 13 7:53 AM
Just an idea:
create a table with one column to store the userid. Each time the program ist started, you execute a SELECT COUNT( * ) on that table and EXIT from your program as soon as the table contains more that 2 entries. In case the table does not contain more than two entries, you can proceed after adding the SY-UNAME to that table. At the end of the prgram you have to delete SY-UNAME from that table.