How to get the Login Id (UPI) of the user who logged in the system?

hi,
I'm having a webdynpro application. In which i want to get the values from the R/3 based on the user who logs in.
so i need to get the UPI(login id) of the user who logs in. how to get the UPI of the user who logged in??
please help me out with the detailed procedure.
Thanks & Regards,
Suresh

Hi Suresh,
Try the following code.
ISearchResult rst = UMFactory.getUserFactory().getUniqueIDs();
                  IUserFactory usf = UMFactory.getUserFactory();
                  IUser iuser = null;
                  IUserListElement userElement = null;
                  int i = 0;
                  while (rst.hasNext()) {
                        iuser =
                              UMFactory.getUserFactory().getUser(rst.next().toString());
                        String email = iuser.getEmail();
                        String fname = iuser.getFirstName();
                        String lname = iuser.getLastName();
I have already used this code for the similar requirement.
regards
Anil

Similar Messages

  • How to get rid of a window which says: CalendarAgent wants to use the "login" keychain

    How to get rid of a window which says: CalendarAgent wants to use the "login" keychain

    I would get free EasyFind (Spotlight will be a total waste of time), and search for caremefile and caremefile.info. If it comes up with anything, right-click and select move to trash, or just destroy. Since you didn't install anything, shouldn't be necessary to authenticate with the admin password before it will move to trash. Could also click on reveal in finder, which will allow you to see the actual location. Set it up as per the screenshot below.

  • Syntax to get the login user who is generating the BIP report

    Hi,
    I need to display the user who is executing the BIP Report. I hav used the following syntax, but it displays blank.
    <?xdofx:xdo_user_name?>
    Can someone please provide the syntax?

    Hi
    To connect the project professional with Project server and publish the project plan on server user need to have Project manager permission on PWA.  
    How to connect :
    Open Project Professional from All program -->  File  --> Managed
    Accounts -->Add you PWA URL (till PWA) --> Select the option Choose an account --> Save then close 
    Now open MS Project professional again it will ask you to connect to computer or PWA select PWA then you can start the Work.
    You need not to get worry about LOGIN and user name , MPP will take Windows login of the user from Computer/laptop whoever
    will be log in to system.
    http://www.epmcentral.com/msp2010/pjserveraccount.php link is having Step by step image which will help you 
    kirtesh

  • My 2 year old has deleted my 'apps store' icon and I cannot figure out how to get it back? Doesn't seem to be available in the on-line apps store, ironically enough

    My 2 year old has deleted my 'apps store' icon and I cannot figure out how to get it back? Doesn't seem to be available in the on-line apps store, ironically enough

    He dragged the icon out of the dock at the bottom and disappeared. That icon is merely a "shortcut" that opens the application when you click on it.
    You still have the app. Open your applications folder and look for the App Store app icon. Click and hold down on the App Store icon and drag the icon down into the dock to replace it. That puts the shortcut back into the dock.

  • On the login screen on my mac says a property name, the laptop changed hands and I'd like to change the property line name to my own, how do I do that?

    On the login screen on my mac says a property name, the laptop changed hands and I'd like to change the property line name to my own, how do I do that?

    Open Accounts preferences. Create a new user account with the name and username of your choosing as well as your own password. Be sure to give the new account Admin status. Log out of the old account and log into your new account. Now, delete the old account.

  • I downloaded OS X Lion on my iMac and I'm having problems with my computer waking up after hibernating.  I can get to the login screen but my mouse will be frozen.  The only fix's is a hard reboot.  Any help would be great!

    I downloaded OS X Lion on my iMac and I'm having problems with my computer waking up after hibernating.  I can get to the login screen but my mouse will be frozen.  The only fix's is a hard reboot.  Any help would be great!

    Try resetting the SMC and the PRAM.
    1. SMC
    Read this and follow the instructions for your kind of mac:
    http://support.apple.com/kb/HT3964
    2. PRAM
    Follow the procedure below:
    1. Power down the machine.
    2. Locate the following keys on your keyboard in preparation for Step 4:
    command–option–P–R
    3. Press the ‘power on’ button.
    4. Immediately – and before the grey screen appears – hold down ‘command-option-P-R’ all together.
    5. Keep them held down until you’ve heard the start-up chime twice. After you release them you should hear it again, and hopefully your Mac will boot up as it should normally.

  • How many users have logged in the Enterprise portal

    Hello Expert,
    Please suggest..
    Feature required to monitor as how many users have logged in the Enterprise portal 7.0(Portal is Implemented with MDM), so that utilization can be known.
    Regards,
    Vidhanshi

    Hi,
    You can wirte the following code to get the logged in user's ID
    try {
          IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
          IUser sapUser = wdClientUser.getSAPUser();
          IUserAccount[] acct = sapUser.getUserAccounts();
          String str = acct[0].getDisplayName();
          wdComponentAPI.getMessageManager().reportSuccess("user "+ str);
         } catch (WDUMException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
         } catch (UMException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    You need security api for using it make sure that is present.
    [Find out who is login into the Portal|http://forums.sdn.sap.com/thread.jspa?threadID=1723807]
    Hope This is Help full for you!!!
    Best Regards
    Vijay K

  • How to get PDF file that has been transformed into docx into my filing system so I can work on it???

    How can I get the PDF file that was transformed into a docx file into my filing system to be able to work on it and translate it as the customer requested?

    THanks for your reply.
    Well what happens is I bought the program. It gives you a button to click,
    you log in and then a box opens up asking you to select the file, I go into
    my filing system (in Windows explorer) select the file, and the program
    converts it into docx, my choice.  I can read it there and when I try to
    copy and paste it into my file where the PDF version is saved, it behaves
    like an "image", and I can't save it.... or it saves likes something you
    save on the internet, so you have to go into internet every time you want
    to see it.    I have also pressed any amount of buttons to see if it will
    give me the option to save it any other way, and have found nothing.  What
    I would need is a file in docx.format that I can edit.  People send me
    things in PDF and sometimes I can just copy it off the PDF file and save it
    in WOrd, then I can translate it for them. But sometimes the PDF file
    doesnt allow me to copy the text.  If it is in image form, I cannot work on
    it.  It means printing it, so I can copy type it into Word... and for that
    I certainly wouldnt need to buy a program.  Its just double the work and
    ends up that the job takes twice as long.!
    Sorry  if I am a bit dumb with informatics.  But I simply could not find
    any way whatever to  copy the PDF file that was transformed into Word, in a
    format that would enable me to edit it.
    Kindest regards,
    Margery
    2013/12/2 Test Screen Name <[email protected]>
        Re: How to get PDF file that has been transformed into docx into my
    filing system so I can work on it???
    created by Test Screen Name<http://forums.adobe.com/people/TestScreenName>in *Adobe
    ExportPDF* - View the full discussion<http://forums.adobe.com/message/5890871#5890871

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How much is the cloud going to cost a individual who only uses the Lightroom module?

    How much is the cloud going to cost a individual who only uses the Lightroom module?

    When you subscribe to the cloud you get ALL of the offered applications and services whether you choose to use them or not. There is no individual module plan.
    http://www.adobe.com/products/creativecloud/faq.html#

  • Wake up at the login screen of lion.  It is almost like the whole screen is painted grey and moving my mouse side to side is like an erase fuction that reveals the login area one little square at a time

    wake up at the login screen of lion.  It is almost like the whole screen is painted grey and moving my mouse side to side is like an erase fuction that reveals the login area one little square at a time. Similar to other posts.

    I was so frustrated I call the Apple Tech Support and they walked me through.  It has been doing great.  The screen still turns black but now, when I touch the mouse or touch pad, I get the password prompt.  The Apple Store did not help but talking the the Apple Tech has helped a lot.  Thank you.

  • When I boot into Win7 I see the windows boot up logo, the. I see my mouse and the screen goes black! It goes black in the login screen, I type my password and I hear the login sound but when I press F2 the brightness won't change! Please help!!!

    When I boot into Win7 I see the windows boot up logo, the. I see my mouse and the screen goes black! It goes black in the login screen, I type my password and I hear the login sound but when I press F2 the brightness won't change! Please help!!!

    Hi Emma,
    Thank you for using Apple Support Communities. 
    I understand that your Thunderbolt display is just showing a black screen when you boot your computer. The following article should be of help in troubleshooting your display. 
    Apple computers: Troubleshooting issues with video on internal or external displays - Apple Support
    Cheers, 
    Jeff D. 

  • How to find the users who has done the manual blockings in F110?

    I would like to knw the users who has blocked the inoice in F110 and even who has re-allocated the payment method/bank details in F110

    Hi,
    You can open the TC F110. Give the run dates and identification numbers then go to menubar systems- status.
    Which user has been blocked the invoice displayed.
    I hope it will help to you.
    Thanks,
    Venkat

  • How to find the user who never logon R3 system since system golive.

    Hi everyone,
    Our R3 system golive on 2005.Due to some reasons,we need to find out the users who never logon R3 system since system go live and want to delete it.Those large numbers of unvalued users has been created because of imprecise estimation before golive.So for now,we willing to remove those users by using some kind of method.and you know,the number of unvalued user are immense,so it's impossible to identify this kind of user by using T-code su01 one by one.
    Thanks in advance.

    Hi rong,
    Run report RSUSR006. One of the criterias is "Users with Initial Password"
    That should answer your question.
    Regards
    Juan

  • Send mail to the user who logged the issue

    Hi,
    As it is currently the mail goes to the key user, which is a business partner. That is an organization. However several users are maintained under a business partner.
    So now the mail goes to all these users at a status change. However can we only have the user who logged the issue getting the mail. Can you please advice me on how to get this?
    Thanks loads.
    Keshi

    Hi.. Thanks for all ur replies..
    Yes we hv assigned the key user as a business partner which is an organization,, This is also and requirement,
    But since the mail is activated as to the key user it goes to all the users in that group, under teh business partner.
    But when configuring this came across the Partner, in which we selected it as key user. But there were also other partners as Creator,Reported by etc..
    I tried using both these but again it didnt work. Can anyone suggest anything?
    Yes, when u assign the key user as a business partner and assign several users  to it you can send multiple mails to users
    Any help on this is very much appreciated,.,
    Thanks all for replying once again.
    Keshi

Maybe you are looking for