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

Restrict program access ( only three user at a time)

Former Member
0 Likes
512

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
Read only

Former Member
0 Likes
488

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
Read only

Former Member
0 Likes
488

Hi,

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

Thanks & Regards

K.Gunasekar

Read only

Former Member
0 Likes
489

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.