How to Disply the List of Roles assigned to a selected user ?
Hi all,
I have a specific requirement to develope using Webdynpro. I want to programically display the list of roles assigned to a selected user. Could some one help me . I promise to award points for the solution.
Thank you in advance
Regards
Maruti
Hi Maruti,
Iterator rit = null;
try
IWDClientUser clientUser = WDClientUser.getCurrentUser();
IUser user = clientUser.getSAPUser();
rit = user.getRoles(true);
IRoleFactory rfact = UMFactory.getRoleFactory();
while (rit.hasNext()) {
String roleName = (String) rit.next();
IRole role = rfact.getRole(roleName);
}catch(Exception e)
e.getLocalizedMessage();
check this thread too
/message/1565111#1565111 [original link is broken]
Regards, Suresh KB
Similar Messages
-
How to get the list of roles assigned to a user in all the child systems
how to get the list of roles assigned to a user in all the child systems from CUA SYSTEM
Try transaction SUIM in your CUA system. Go to user, cross-system information, users by roles. If you run it wide open, you'll get all users and all roles assigned for all systems managed in your CUA.
Krysta -
How to find the list of Parallel enabled tables for a User?
Hi All,
I created a table with parallel option. Now I want to find out the list of all tables created with that option. I searched in DBA tables but I couldn’t get it. Could some one help in it?
Thanks,
DariusYou'll find this information in user_tables in the column DEGREE.
degree=1 means noparallel
degree=default means parallel default
degree=2 means (parallel, 2)
etc... -
How to get the list of collaboration rooms for a particular user??
Hello Experts,
I have a requirement to get the list of all the collaboration rooms for a given user. I have started developing the Web Dynpro application by reusing necessary jars required to the web dynpro application.
on some action I am trying to execute the below code:
IRooms roomsAPI = (IRooms) PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
which I have got from help.sap.com
But, there's some exception being raised and not able to retrieve the list of rooms.
Could somebody tell me what am I doing wrong.
Regards,
Raghu.Hi,
the below is the code that I have used to get the list of rooms. But I'm getting into the NullPointerException .
I have added the catch block for time being, but could you please let me know the reason for NullPointerException?
public void onActiongetRooms(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActiongetRooms(ServerEvent)
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
try{
IService service = PortalRuntime.getRuntimeResources().getService(IRooms.KM_SERVICE_ID);
IRooms roomsAPI = (IRooms) service;
String roomID = "00bd6231-fdca-2c10-919c-97bf74054b7d";
IRoom room = roomsAPI.getRoom(roomID);
String roomname = room.getName();
msgMgr.reportSuccess(roomname);
} catch (NullPointerException e) {
// TODO: handle exception
msgMgr.reportException("Null Error:"+e.getMessage(), true);
catch (RoomInstantiationException e) {
// TODO: handle exception
msgMgr.reportException("Error :"+e.getMessage(), true);
//@@end
Any thoughts are much appreciated.
Thanks in advance.
Raghu -
How to get list of Roles assigned to each User
Hi,
I have to create a list containing Roles assigned to each user in xMII 11.5.
Need your help !
Thanks in Advance !
Regards,
AlokAlok,
Did you search (sometimes it is also good to make sure to search the forum for All threads not just the default time window)?
https://forums.sdn.sap.com/click.jspa?searchID=22562502&messageID=5969490
https://forums.sdn.sap.com/click.jspa?searchID=22562502&messageID=4890045
More info from the help docs: http://help.sap.com/saphelp_xmii115/helpdata/en/Connectors/IlluminatorSystemConnector.htm
Regards,
Jeremy -
How to know the list of reports that are in usage
Hello,
How to know the list of reports that are in use from the last 3 months by the users on Bw server.How basis team will help me in this regard?
Regards,
Anand.Hi,
Pl look at following tables if you need any further detailed information
Table Name Use of the table
RSZELTDIR
Directory of the reporting component elements
RSZELTTXT Texts of reporting component elements
RSZELTXREF Directory of query element references .
To get a list of query elements built on that cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename]
RSRREPDIR
Directory of all reports (Query GENUNIID) .
To get all queries of a cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename]
RSZCOMPDIR Directory of reporting components.
To get query change status (version, last changed by, owner) of a cube.
RSZRANGE Selection specification for an element
RSZSELECT
Selection properties of an element
RSZCOMPIC
Assignment reuseable component <-> InfoCube
RSZELTPRIO Priorities with element collisions
RSZELTPROP Element properties (settings)
RSZELTATTR Attribute selection per dimension element
RSZCALC Definition of a formula element
RSZCEL Query Designer: Directory of Cells
RSZGLOBV
Global Variables in Reporting
RSZCHANGES Change history of reporting components
Thanks and regards -
How to get the list of materials from Sap r/3
Hi Experts,
I have one doubt, here iam implementing
HTTP TO RFC scenario.
My doubts are------
1. Should we create DT MT MI and all (OR) not
2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).
3.Or the second thing is how to get the list of materials start with some alphabate.
Please reply me for each and every questions mentioned above. Please clarify me.
Helpful answers wil be rewarded.
Reagards
khannaHi Khanna,
<i> 1. Should we create DT MT MI and all (OR) not</i>
Yes U need to create for HTTP site...for RFC U need to import..
<i>2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).</i>
You create your own structres for Request and respoce.. and Map it with RFC..
<i>3.Or the second thing is how to get the list of materials start with some alphabate.</i>
I think it will come with acending order....
for more help go through this link
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
regards,
Ansar. -
How to find the list of existing tables in a schema using DB link?
Hi
I know how to find the list of existing tables in a schema using the following query
SQL> select * from tab;
but, how to list the tables using a DB link?
For Example
SQL> select * from tab@dblink_name;
why this doesn't work?
Pl advice me
Thanks
Reddy.ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link? -
How to get the list of users who has access for list of tcodes.
How to get the list of users who has access for list of tcodes.
Go to transaction SUIM, this has a number of reports for users/authorisations
open the Where used>Autorization Values>In Users
and double click to execute
in authorisation object, enter S_TCODE
then press the "Enter Values" button
It will offer entry boxes to put the transaction code you are interesed in.
Then execute and the list of users with access to this transaciton code will be returned. -
How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?
Hi All,
We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.Hi,
Here you go..
1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
This step you get query reference sheet or column or query general UUID for next step.
4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
Hope this helps.
Please keep in mind, it might take more time depends on how many query elements you have in the system...
Comments added for better DB performance by: Arun Thangaraj -
How to find the list of Queries for that have statistics enabled in the sys
Hi ,
How to find the list of Queries that have statistics enabled on them in the system.
Please help me in this regard
Thanks
Maruthihi ,
I found three options there like
X - on
D - Default
off
can you please expalin the difference between on and Default
Thanks in Advance
Maruthi -
How to find the list of all tables populated
How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.Hi Mohamed
You use Solution Manager to do the comparison for you. There are some nice features that will highlight all your customised coding. Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
Rgards
Carl. -
How to find the list of Tables....
Hi
How to find the list of Tables associated with When a Goods Issue is done for a Process Order ??
Kindly tell me step-by-step procedure in browsing it.
cheers
MaruthiRamHi
goto SE16 Click F4, You have two options Information system & Sap Applications.
Click on SAP Applications & selec the application you wnat to see, for E.g Purchasing you can click on materials managemnt, Purchasing if you drill down you will see the list of tables....
reward points if useful
Thanks & Regards
Kiran -
How to find the list of all user exits modified by the users
How to find the list of all user exits using by in R3
Hi Mohamed
You use Solution Manager to do the comparison for you. There are some nice features that will highlight all your customised coding. Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
Rgards
Carl. -
How to get the list of active devices in current wifi network?
Hi All,
I am going to a start a new Network based app. So please any one give me an idea on the below question.
How to get the list of active devices in current wifi network?Nope I want the log-in user to retrieve its Group where he is belong. I have this following code
strUsername = Request.getParameter("username").toLowerCase().trim()+"@dev.test.com.ph";
strPassword = Request.getParameter("password").toLowerCase().trim();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,strUsername);
env.put(Context.SECURITY_CREDENTIALS, strPassword);
// enable tracing
env.put("com.sun.naming.ldap.trace.ber", System.err);
// Create the initial context
DirContext initCtx = new InitialDirContext(env);
// Get the target context
DirContext targetCtx = (DirContext)initCtx.lookup("");
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
// Perform the search on the target context
NamingEnumeration enum = targetCtx.search("","(userPrincipalName="+strUsername+")",constraints);
javax.naming.directory.Attributes attrs;
NameClassPair item;
String[] attrIds = new String[]{"MemberOf"};
// For each answer found, get its "Groups" attribute
// If relative, resolve it relative to the target context
// If not relative, resolve it relative to the initial context
while (enum.hasMore()) {
item = (NameClassPair)enum.next();
Out.println(item);
attrs = targetCtx.getAttributes(item.getName(), attrIds);
Out.println(attrs + "<br>");
initCtx.close();
It returns all this string :
{memberof=memberOf: CN=CMCanadaRD,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=iMngrCanadaRW,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=Domain Users,CN=Users,DC=dev,DC=test,DC=com,DC=ph, CN=Backup Operators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph, CN=Administrators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph}
How can i retrieve the Group named CMCanadaRW and CMCanadaRD on the Attribute?
Thanks
Maybe you are looking for
-
Hello BPM experts, I needed some help with one of the scenarios with BPM. We are sending outbound IDOCs from ECC to PI (v7.0 SP14) Step 1 - Process kicks off from ECC. 1.There are multiple partners in WE20(Configured in WE20) which sends out IDO
-
Time taken to format external hard disk
I have just purchased a 1T external hard drive and now using the erase disk to reformat from FAT-32 to Mac OS Extended (Journaled). I let this run over night (8 hours), however in the morning it still had not finished. As I thought it may have frozen
-
I need to use Outlook for work and created an alias email account in iCloud which works perfectly. How can I compose a new email using Outlook as the client, and I need to be able to use my alias account as the sender. It was easy to set up in iPhone
-
have tried uninstalling and then re installing but no joy. when I open firefox I can search as normal but as soon as I click on a site to open a page the screen freezes and I cannot access any other programs either
-
HT201611 After -42110 error -- we could not complete your iTunes Store request -- no time to view
While downloading a rental movie I got the following error: -42110: We could not complete your iTunes Store request. After a number of attempts over 12 hours, I finally succeeded. However, now I must watch this rental within 10 hours. I don't h