on 03-26-2015 3:54 PM
Hi all,
Is there any way to get all the users that are connected to a planning area?
Right now in our development we are using FM LCA_LCK_LIST_ALL to get all the users that are locking some data in a planning area. Unforttunately, if a user is in a planning book, in view mode, as long as do not lock any data, is not in the FM result table.
On the other hand, I cannot find a way to see all the users that are in a planning book, wich, it would make the trick too.
Best regards
Pablo.
Hi Pablo
can you try
FM BAPI_USER_LOCK then the User will be locked Globally in the Server, you can also try to use SUSR_BAPI_USER_LOCK, then you have an option to lock it Globally or Locally.
You can delete the users which you don´t want to lock like system admin, background users and rest all of the users. You can log off all the users first which are logging then lock all the users.
Thanks
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pablo
SM04 gives you list of users logged in to the system and when you select individual users logged into the system.
user type has to be GUI - meaning a user logged through the SAP GUI and look under transaction column for /sapapo/sdp94 or /sapapo/snp94 to see if the user is in planning book.
Select the row and Click sessions in the menu. This would show you the number of sessions the users are logged in, either read only or edit.
As opposed to your FM LCA_LCK_LIST_ALL, this transaction shows users logged in to planning book at the point of time you are looking but does not tell you if they are in edit or display.
Not sure if this is what you are looking for...but throwing that at you.
Hi Amol,
Thank you for your answer. I have already thought of using the FM that is used in TR SM04. The problem I find in this approach, is that I cannot infer that all the users connected to TR /SAPAPO/SDP94 are connected to DP, as long as we also are using SNP.
I have tried to find how many sim sessions are created and which user is the owner without success, I think this is the only approach I may follow.
Thank you for your kind cooperation
best regards
Pablo
Dear Pablo
With report /SAPAPO/TS_LC_DISPLAY_LOCKS you can get all the users connected to respective planning areas too correct? If you exclude the users which are connected to SNP planning area or only include the users which are locked to DP planning area then you should able to lock them correctly,
I hope with this approach you are able to differentiate it. At least we are following similar approach in our area and it works.
Amol
You
can use the report /SAPAPO/TS_LC_DISPLAY_LOCKS to find the users and
planing area which is locked.This report is available from note
1265235. Once you identity locked users then terminate their sessions and
lock respective planning area using function module /SAPAPO/TS_LC_LOCK.
Then if the users are in display mode they will not able to edit the data.
Thanks
Amol
User | Count |
---|---|
15 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.