2018 May 03 11:52 AM
Hi All,
I want to extract all users for authorization objects (S_PROGRAM and S_TCODE) SUIM -> Users by Complex Selection Criteria.
Can anyone provide table linking for below mentioned criteria?
Hi All,
I want to extract all users for authorization objects (S_PROGRAM and S_TCODE) SUIM -> Users by Complex Selection Criteria.
Can anyone provide table linking for below mentioned criteria?
2018 May 03 12:09 PM
2018 May 03 1:31 PM
You could use a JOIN
select ust04~bname into bname
from ust12 "#EC CI_BUFFJOIN
join ust10s "#EC CI_BUFFJOIN
on ust10s~objct eq ust12~objct
and ust10s~auth eq ust12~auth
and ust10s~aktps eq ust12~aktps
join ust04 "#EC CI_BUFFJOIN
on ust04~profile eq ust10s~profn
for all entries in lt_autor
where ust12~objct in lr_objct
and ust12~aktps eq 'A'
and ust12~field eq lr_field
and ust12~von eq lr_von.
Seems you didn't filter for active version of authorization...
NB: Also check for any composite profile (browse ust10c) if this is the case, use a first select for list of profiles, and do a select for composite profile from previous result, until no new selected profile. Only then select users.
2018 May 03 12:22 PM
Hi Raymond,
I am using below logic to fetch the data..but I am getting different number of enteries than SUIM.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |