‎2011 Mar 22 8:50 PM
Hello Gurus,
Can you please help me find the function module which will return the Role based on user id, auth object and its value?
Thank you in advance!
‎2011 Mar 22 10:32 PM
goto SUIM.. expand the Roles tab and select the option for Auth objects...
then see the code behind it.. it directly resolves your purpose...
‎2011 Mar 22 9:34 PM
Hi Owais,
I don't know any function module to do that job, but you may have a look at standard report RSUSR070 which does that.
So that to get the result and to not display it, I'd suggest to :
1) call the report using SUBMIT rsusr070 EXPORTING LIST TO MEMORY AND RETURN (to not display the list),
2) and enhance function module SUSR_LIST_ACTVGRPS_ALV using an implicit enhancement option at the end of it, to export AGR_OUTPUT internal table to memory (EXPORT .. TO MEMORY ID).
3) After the report has done the job, you'll read the internal table back from memory (IMPORT ... FROM MEMORY ID).
Another way would be to read directly the database tables, but that is more simple to use the report, just check that it is enough performant.
Best regards,
sandra
‎2011 Mar 22 10:32 PM
goto SUIM.. expand the Roles tab and select the option for Auth objects...
then see the code behind it.. it directly resolves your purpose...
‎2011 Mar 22 11:30 PM
That's correct, SUIM -> Roles -> By authorization object (OR By authorization values) corresponds to program RSUSR070. See my answer above.