Application Development 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: 

Restrict program access ( only three user at a time)

Former Member
0 Kudos

Hi

I want to restrict the program only two users at a time ( with out using authorization object ).

Thanks & Regards,

K.Gunasekar.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Any function module to retrieve no of users access the same program.

Thanks & Regards

K.Gunasekar

Former Member
0 Kudos

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.