04-16-2012 5:14 PM
I am trying to use program RSUSR002 in background mode. I want a list of all users and what roles they have. This is easy in dialog mode. I enter "*" for the Username and "*" in the role name and execute. On the resulting screen I click on the Roles button and there is the report I want. It's not obvious how to run this report in the background, which is what we need. Is there a way to do this?
Thank you,
Steve Ullman
04-16-2012 7:14 PM
Hi Steve,
An easier method to get the user-role relationship is via the table AGR_USERS. I think that this is the most effective and easy way to obtain the required data.
Cheers,
Diego.
04-17-2012 12:27 AM
Hi,
that's not going to be possible. When you click on button "Roles" it calls FM SUSR_USERS_LIST_WITH_AGR_ALV to display ALV with users and corresponding roles. I don't know about any way how to simulate click on button in background processing. As a workaround you can build your custom report that will reuse FM SUSR_USERS_LIST_WITH_AGR_ALV. Another solution could be defining query SQ01 and running it in background.
Cheers