on 01-05-2019 6:43 AM
Hi Experts,
How can I get the current logged in user detail on SAP B1 HANA? I tried the following query but it was not work
SELECT "USER_CODE" from "OUSR" WHERE "USERID" = $[user]
SELECT $[user] FROM DUMMY
Select "UserCode" from USR5 T0 where T0."SessionID" = (SELECT top 1 connection_id FROM M_SESSION_CONTEXT WHERE connection_id=current_connection)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Akina,
Use the following menu option to check the current logged in users:
Modules - Administration - Utilities - Connected Clients
This will show you all the connected users and there system details
Hope this information is useful
Regards
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Dinesh,
Thanks for your feedback. But, I mean, i want to get Current user login, aims to write query or notification.
Ex: i login by account "manager". So, I want to know query to get account manager that login.
For SAP - SQL, i know query for that. But for Hana I don't know.
Hi,
Try T0.Internal_k instead of Internal_K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can see the list of all logged in users in the "Connected Clients" so why there is the requirement of query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Akina,
It is a FMS you need to assign this in a field on any screen.
For example :
Save this query and select a field from any marketing data click Alt + Shift + F2 assign this query when you click it will display the user name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Akina,
I have this FMS to get current user in SAP B1 HANA : check if its working for you :
SELECT T0.U_NAME FROM OUSR T0 WHERE INTERNAL_K = $[USER]
Regards
Dinesh
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 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.