on 05-09-2022 8:38 PM
Hello I am trying to obtain a list of all customers based on the logged user.
I would like this in a query.
OUSR has the user_code, but what is the SAP call to see who the current user is.
SELECT T0.USER_CODE FROM OUSR T0 WHERE T0.USERID = $[USER]SELECT T0.USER_CODE FROM OUSR T0 WHERE T0.USERID = $[USER]
So I found out that this only works if used directly from Tools > Queries > User Queries
or in FSM
If you pull Query from the Search or Execute from Query Manager it will not work.
Such a basic function missing imho in 9.3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rashanta,
you r right. Meanwhile in V10 it is possible to start this (using $[USER]) from the Query Manager without going through the menu.
If you develop a FMS for a document, it is still necessary to click on the document and then go through the menu-path to your query to test it. Otherwise SAP is not able to fill the placeholder like $[$4.0.0] correctly in the query.
regards Lothar
Yes, sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rashanta,
when you use
SELECT * FROM OUSR WHERE USERID = $[USER]
you'll get all infos stored in OUSR
The Name is
SELECT U_Name FROM OUSR WHERE USERID = $[USER]
regards Lothar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
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.