on 10-11-2011 7:38 AM
HI,
I need to find the no of users in a specific client , but i don't have accounts to all the clients. I tried from one client where i have the account and executed SE16N and table usr02 got only client specific users list. And as per my understanding USR02 is a client speicific table.
What is the best to find the no of users for all the clients , is it possible from SQL query lik select count(*)from usr02 where mandt etc.. ? or is there any best way ?
Regards
Veeramalla.
Hi
Try this query
select * from schema.USR02 where MANDT='999' and USTYP='A'
what is your db?
if it Sqlserver the schema is SID.sid.tablename.( eg TST.tst.USR02),use management studio >>newquery
it its Oracle
SAPSR3.usr02 or SAP<SID>.tablename
Regards
Arun.H
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just go to AL08 you can cumulative user in all application server. The same can be verified through SMLG Tcode with Global user list. Save some grey matter for other purposes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
i think transaction AL08 could also do the job. It displays all users in all clients and all instances. You can export he list to a spreadsheet to analyze it further.
regards
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear venkateshwarlu,
You have asked a question and answered it yourself.
USR02 is table and group by MANDT feild.
Hope it helps.
Hussian S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi venkatesh,
Incase you can access the database you can take the dump of user count in all the clients using the below mentioned queries
Select count(bname) from <schema>.usr02 where mandt='xxx';
You need to run this for each client.
Another alternative is to create an aBAP program in the client for which u have access to get the details.
Code could have the following lines
data: number(6); clientno(3);
parameters: clientlist like t000-mandt; //fill in this clientlist parameter with the list of clients u have in ur system
clientno= 1
loop
if clientno < 40
Select count(bname) into number from <schema>.usr02 where mandt= clientlist(clientno);
clientno = clientno + 1
clear number;
else
exit;
endloop.
Hi,
To add condition "mandt =" you have to add to your query key word CLIENT SPECIFIED. Look in SAP help for details.
BR
Marcin Cholewczuk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.