on 02-05-2013 11:08 AM
Hello,
Can anyone help with the issue which i'm facing now.The issue is " I have one screen with both form & list which has been developed using feeder class.In the list,I'm showing all records from the custom database which i have.Now the issue is there is one field namely USERROLE with domain values as (LSMG USERS,CMSG USERS,HOD's).
Now i need to check whethere the logged in name with the roles and i need to show only that records into the list.
For ex: If my USERROLE in custom table is CSMG.If i run the application,I should see only those records where my sy-uname is there in particular user role.
Please help me in writing a query.
Santhosh
Hi,
If I have not misunderstood your doubt, you need to use the table AGR_USERS, where:
AGR_NAME = USERROLE
UNAME = sy-uname
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
As mentioned by Ricardo, you can validate the content fetched from the custom table with the AGR_USERS table by giving the parameters for role and user name. If it matches then show only those records. I belive the requirement you have mentioned is just a query change.
Regards,
Nihar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the function module as mentioned below.
CALL FUNCTION 'GET_DOMAIN_VALUES'
EXPORTING
domname = 'USERROLE'
TEXT = 'X'
* FILL_DD07L_TAB = ' '
TABLES
VALUES_TAB = values_tab
* VALUES_DD07L =
EXCEPTIONS
NO_VALUES_FOUND = 1
OTHERS = 2
.
This would fetch the value table of the domain userrole as you have mentioned then you can filterout on based on that i hope?
Is my understanding of your query correct?
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.