Get information about users, which shows and works on my webdynpro

Hi everybody
I need to know, what is the form to get the information about de user, who's shows and entry my webdynpro. i need this information to send to RFC Model to ABAP server

Use the UME for that:
try {
     IWDClientUser wdUser;
     wdUser = WDClientUser.getCurrentUser();
     IUser user = wdUser.getSAPUser();
} catch (WDUMException e) {
     e.printStackTrace();
variable "user" has now all the data from the current user executing the dynpro,  extract the info from "user", then pass it as input parameter to your RFC's.
Regards
Julio C. Herrera

Similar Messages

  • Get inf. about user, rol and group, which shows and works on my webdynpro ?

    Hi everybody,
    Can someone help me? I need the information about rol and group of the user, who's show and work on my webdynpro?

    Hi,
    You can use the below code to get the information you need. You need to add the jar file com.sap.security.api.jar to your Web Dynpro project's build path.
           IRoleFactory roleFactory= UMFactory.getRoleFactory();
        IGroupFactory groupFactory = UMFactory.getGroupFactory();
        try
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
         IUser user = wdUser.getSAPUser();
         Iterator assignedRoles = user.getRoles(true); // true means all the roles are searched recursively
         Iterator assignedGroups = user.getParentGroups(true); // true means all the groups are searched recursively
         while(assignedRoles.hasNext())
              String roleID = (String)assignedRoles.next();
              IRole role = roleFactory.getRole(roleID);
              String roleName = role.getUniqueName();
         // Fill your model node with the role
         while(assignedGroups.hasNext())
              String groupID = (String)assignedGroups.next();
              IGroup group = groupFactory.getGroup(groupID);
              String groupName = group.getUniqueName();
         // fill your model node with group.
        catch(Exception ex)
             messageManager.reportException(ex.getLocalizedMessage(),false);

  • How to get information about user's capabilities in content folder

    Dear collegues,
    I created a few portal pages associated with folders in WLP Repository. These pages contain portlets which display the content of the associated folders of a repository.
    Also I've created portlet - Uploader for MS Office files (Uploader gets properties from file, controls it and puts it in associated atributes of new content item). And I've created Delegated administration roles with create|update|publish capabilities for folders of a repository.
    Now I need to put on my portal pages control which will display link to Uploader if current user has create|update|publish capabilities to associated folder (via DA role).
    But I have faced 2 problems:
    1) If user (with DA role) logins from portal page (I use sample login portlet) he cannot create item in repository via Authorization exception (but from Portal Admin Console he can!);
    2) I couldn't find API which shows the current user has the necessary capabilities in a corresponding folder.
    Help me, please!
    Edited by: 817211 on 01.12.2010 4:51

    In addition to my post#1 next information to break youк mind.
    Today I also have created visitor entitlement (enterprise application scope) and associated content folder/items with view capability for this role.
    After I have login on portal page via Sample Login Portlet with my credentials (visitor role above) I have found out that I have no rights to viewing of the necessary content.
    What is a problem? May be it's Sample Login Portlet? Or I have to made some additional actions after login to get the existing visitor entitlement rights for current user?
    --Alexander                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to get information about time of triggering and entire time waveform

    I have been trying to capture a certain portion of waveform from Textronix DPO2024 using triggering in Labview. Further, I want to save the the entire triggered waveform (triggered time as one array and triggered signal amplitude as second array)  in .xlxs format.
    With the present setup (screenshot, and output of program attached). I only get the triggered portion of signal, I get time stamp (that I do not want) but require the time array, instead.
    I know there are methods to convert the timestamp to time array. I do not want to use this, as I need to capture the data every 10 ms  or even faster, and this slows the acquisition process.
    Any help will be much appreciated.
    Thanks

    Hi Dennis,
    Thank you for the response.
    Please find the .vi attached. In the case - without triggered, with the information of dt and length of Y, we can determine the time waveform (as calculated using matlab script on right). But in the presence of triggering, neither  the length of waveform nor the start time of triggering is known, so calculating the time waveform is tricky. In addition, since the waveform is continuously changing, and keeping trigger fixed at a particular level,  the length of waveform is also changing in some of the acquisition. So I wanted  a 'simple' method where I can get the time information about the triggered waveform in each acquisition.
    More specifically, I wanted help in regard to getting time array of the triggered signal and save it as a column in excel file.
    Thanks

  • Get information about user: memory usage; tcodes

    Hi,
    I would need more information about a certain user from an admin point of view: one of our users is allocating a lot of memory resulting in performance decrease. What are the usual tcodes I can use here to analyse this further?
    Thanks!

    Hi,
    Use the below t codes for your requirement
    SM37  Overview of job selection
    SM50  Work Process Overview
    SM04     user list
    Regards,
    Siva

  • When I used download sets of photos, movies etc, (before I installed Lion) I used always get a "Download" gizmo which showed me the download happening with both speed and time left.  Now with Lion, nothing shows on my screen.  Can I fix this?

    When I used download sets of photos, movies etc, (before I installed Lion) I used always get a "Download" gizmo which showed me the download happening with both speed and time left.  Now with Lion, nothing shows on my screen.  Can I fix this?

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Where can I get more information about User exits?

    Where can I get more information about user exits,their related Tables and the source code of an User exit?
    Thanks

    would you please give the Internet addresses of these places?
    Mostly I want to get the source of some user exits in Oracle Application.
    If you know how and where can I get these sources,I'll appriciate if you let me know.
    Regards

  • Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?

    Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?

    Did you delete all receipts with iDVD in the file name  with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder before installing the new copy?  If not then do so and delete the new application also.
    Click to view full size
    Then install iPhoto from the disk it came on originally and apply all necessary updaters: Apple - Support - Downloads
    OT

  • 2 of my movies are no longer working in my iTunes or on my iPod Touch, One doesn't play at all and the other gets to about 29:00 than stops working and I don't want to buy them again. What's happening?

    2 of my movies are no longer working in my iTunes or on my iPod Touch, One doesn't play at all and the other gets to about 29:00 than stops working and I don't want to buy them again. Then also when I added a non-iTunes movie and tried to have iTunes make an iPod/IPhone version it gave me error -4. What's happening to my movies?

    I also have to add that the right earbud only doesn't work on my phone while i'm listening to music. If I'm face timing it's okay. what the heck.

  • I just got an iphone 5s and now it wont connect to any of my windows 7 PCs, it just gets detected as an unknown device and is unable to be detected correctly.  It was connected to one windows 7 pc about a week ago and worked but now I tested it on 2others

    It is a 64 GB Iphone 5s and I am running Windows 7 x64 on all of my pcs.
    I just got an iphone 5s and now it wont connect to any of my windows 7 PCs, it just gets detected as an unknown device and is unable to be detected correctly.  It was connected to one windows 7 pc about a week ago and worked but now I tested it on 4 other computers including a macbook running osx and it isnt detected.  I tried the whole Apple Guide and it was no help.

    install the latest version of itunes

  • How to get information about limitation Internal Memory on device

    hallo ..
    have some question here, so please some person able to answer my questions 
    1. How to get Information about limitation internal memory on device 
    2. is possible to improve internal memory on Blackberry ( move apps on external memory )
    3. any tools to get internal memory activity ?
    thanks for this people who joins here, hope we can share more information about blackberry .. 

    In addition...
    There are three types of potential memory on a BB: 1) Application Memory, 2) Device Memory, and 3) Media/SD Card Memory.
    Application Memory -- This is the most crucial; it is the protected (not user accessible), dedicated, and fixed (in size) space that is available as the destination for the installation of applications (plus some application storage, overhead and such). You cannot touch AppMemory. You cannot improve the maximum AppMemory that your BB has. It is what it is. Applications can only install here...there is no option.
    Device Memory -- This is space on your BB that you can touch to store files, pictures, media, etc. Typically, it is not terribly large, but it is available to you.
    SD/Media Card Memory-- This is what it says...your SD card, for you to store files, media, pictures, etc. It can be as large as your BB OS can support...see this KB:
    KB05461MicroSD card sizes supported by the BlackBerry device software
    On some devices/OS levels, you can only see "File Free" (Options > Status), which I think is equivalent to AppMemory. On other devices, you can see all three memory usage levels (Options > Memory). Here are some guidelines to use:
    KB02843What is the Low Memory Manager feature on the BlackBerry smartphone
    KB14320How to maximize free space and battery power on the BlackBerry smartphone
    KB14213Call logs, SMS text messages, and email messages are deleted from the BlackBerry smartphone
    Lastly, it is always important to properly close applications when you are done with them. Using the Back or the Red key will not do this -- those leave it to the app to decide what to do...and some will leave themselves resident in memory, consuming resources on your BB, slowing the overall performance. Rather, to close an app, press and select "Close" or "Exit"...that will force the application to be closed, freeing up for your new use the resources it was consuming. Some apps will always remain running (typically -- BBMessenger, Browser, Homescreen, Phone, and Messages)...but, you should still close them properly - especially the Browser...if it is left on an active web page, it will not only consume extra resources but battery power as well.
    Further, anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure. Some have taken to doing this on a regular basis as a preventive measure...some as frequently as once per day. Others have obtained the QuickPull app to automate a simulated Batt-Pull.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Getting information about an object from JList

    Hi
    I have created a movie application and i have a JList displaying all registered movies, it uses a DefaultListModel to display these.
    I want to be able to click on an element in the JList and then push a button called "Show movie details" to display all information about the selected movie.'.
    Every new movie is added to the DefaultListModel as an object with "Titlle", "Genere" etc. If someone click on a movie, what do i do to get information about which object that was clicked. All i can see is that integers can be returned with the getSelectedIndex/Value methods. If i use one of these methods to get the object from the DefaultListModel, that would work i guess, but what when someone deletes a movie in the middle of the JList, then the indexes wouldnt match.
    Can someone help me out here? :)

    I get a big fat exception when trying to cast the returned object to a Movie object which im using.
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.S
    tring cannot be cast to Movie
    ...sure that this is the way to do it? If so, what am i doing wrong..

  • How to get information about creation of a virtual machine on a Hyper-v host.

    Hi,
    How to get information about creation of a virtual machine on a Hyper-v host?
    I need: host name, time created, creator user.
    I saw in Hyper-V-VMMS but I found info about movements of VM between hosts.
    Thank's in advance.
    Denius Valiant

    For Host Name * Created Time Use This Command In PowerShell 
    Get-VM -Name (Read-Host "Type Your Vm Name") |select CreationTime , ComputerName
    and for Create User , As i know you should see on Event Log . 
    Go To Event Log Viewer--->Applications And Services Logs--->Microsoft--->Windows--->Hyper-V-VMMS--->Operational 
    You can see in Event Log who create the Vm.
    Whenever you see a helpful reply, click on Vote As Helpful & click on
    Mark As Answer if a post answers your question.
    LinkedIn:
      Facebook:
      

  • HOW TO GET INFORMATION ABOUT THE CLIENT MACHINE AT DATABASE LEVEL

    HOW TO GET INFORMATION ABOUT THE CLIENT MACHINE AT DATABASE LEVEL USING 10g Database and 10g Application Server
    we have developed an application using oracle forms 10g with
    oracle database 10g and Application server 10g
    Application uses a single Oracle User name to connect to database
    where as at Application level there are different users (these are not database users)
    Now how can we get the information about the user/his machine etc. at database level. earlier in 6i/8i we use to get by using
    USERENV('TERMINAL')
    we had written a triggers on tables on Insert/Update where we used to update a database field Last user terminal with USERENV('TERMINAL')
    but not this information is comming to be the machine name of application server where as we wish this to be the machine name of Client. Any Way outs
    thanks
    Chaand Kackria

    hi, you can use the sys_context function, like this:
    select sys_context('userenv','current_user'),
         sys_context('userenv','os_user'),
         sys_context('userenv','host'),
         sys_context('userenv','ip_address'),
         sys_context('userenv','instance'),
         sys_context('userenv','sessionid'),
         sys_context('userenv','terminal')
    from dual;
    Is this what you 're looking for?

  • PDF DOM - getting information about underlining

    Hi, I‘m trying to prepare PDF documents for blind users. For this I have to extract the visual information of the text and there font style.
    And this is my problem:
    I read the PDF document through the Acrobat or Adobe-Reader application via UI-Automation, Microsoft Active Accessibility and the Adobe intern Accessibility library to access the PDDom.
    In all these different way there is no way (that I found) to getting information about if a word is underlined or not.
    Did anybody know a way to do this, or is it impossible to get information about that?
    Thank u for your interest in my post and for all the helping ideas that will be posted.
    J

    select prv_value from ctx_user_preference_values where prv_attribute='PATH'
    and prv_preference='MY_PREFERENCE_NAME'
    But note that you'll need to rebuild the index before this will take effect.

Maybe you are looking for

  • Nokia 1020 lumia camera issue (and flashlight X)

    Hello! I do not know this absolutely but I noticed after I downloaded a couple of updates, including an update to Flashlight X, on my nokia 1020 that it suddenly started taking pictures on its own back to back with out stopping. The phone also got wa

  • How to define LinkElement ID using IEditManager.applyLink

    I'm using code of the form: IEditManager(_textFlow.interactionManager).applyLink(" http://www.cnn.com"); However, in my underlying markup, I'd like to have something like this: <flow:a href=" http://www.cnn.com" id="myID">My Link here</flow:a> Since

  • Does every rs.next() command requery the database?

    Submitted for your consideration... Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/sweatshop?user=foobar&password=boofar"); Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT years_worked FROM smu

  • Illustrator CS3 crashes in "Open file" dialog when making a copy of a file

    Hi! I have a user, who has quite a weird problem. We use the Design Standard CS3 package, since we can't afford to upgrade all 20 users to CS5 right now. The problem occurs in Illustrator, when she goes to the "Open File" dialog. She often makes copi

  • LR Mobile as Backup for iPhone

    I switched to LR a year ago and pleased with the results. I also recently installed LR Mobile on my iPad and now iPhone. Because I have a legacy file structure I leave my files in my computers file system and import referenced files. I have used Drop