Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Schedule User/Role report in background

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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.

mvoros
Active Contributor
0 Kudos

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