Hi,
You can use SUIM.
If you need to make a ABAP program you can try with a sentence like this:
SELECT a~low "Tcode
a~agr_name "Role
b~uname "User id
b~to_dat "Valid to Date
c~ttext "Transaction Text
INTO TABLE it_it1
FROM agr_1251 AS a LEFT OUTER JOIN agr_users AS b ON b~agr_name EQ a~agr_name
INNER JOIN tstct AS c
ON c~tcode EQ a~low
WHERE a~low IN s_tcode
AND a~agr_name IN s_role
AND c~sprsl EQ sy-langu.
If you need to make a Query, then use tables: agr_1251, agr_users and tstct.
Kind Regards,
Mariano