How to track the login user session in webdynpro

Hi all,
        I have a new requirement as Explained below
User will login from portal with login username and password.
I want to retive that information.
How to keep track of that information in webdynpro
Thanks & Regards
Padma N

Hi Padma,
First you need to add the security.jar file by following the given steps
Right Click on Project-Propertyjava Build PathLibrariesWDRuntime
Com.sap.security_2.0.0
public void LoginUser( )
    //@@begin LoginUser()
     String LogonID;
       try{
          // create an user object from the current user
          IWDClientUser wdUser=WDClientUser.getCurrentUser();
          IUser user=wdUser.getSAPUser();
          //LogonID=user.getUniqueName();
          wdComponentAPI.getMessageManager().reportSuccess(user.getFirstName()" "user.getLastName().toUpperCase());
          //wdComponentAPI.getMessageManager().reportSuccess(LogonID.toUpperCase());
          wdComponentAPI.getMessageManager().reportSuccess("Logon User ID : "+wdUser.getClientUserID().toUpperCase());
       }catch(Exception e){
          e.printStackTrace();
    //@@end
Thanks
Anup

Similar Messages

  • How to track the login time and logout times of clients

    hai
    please give me the solution
    suppose there are 5 systems connected in LAN.
    how to track the login time and logout times of clients
    for a given time(may be one day or 1 hour) using any programming language.
    please give me the solution

    When the client logs in you write the client's ID and the current time to a database. Likewise when the client logs out. Assuming of course that you have a program that knows when those events occur.

  • How to show the login user Id in the upper right corner of each page?

    Hi,
    I was wondering how to show the login user Id in the upper right corner of each page?
    thanks so much!
    cchu

    Cchu,
    The easy question first: applying a style to the welcome message. If you look at the page source, you'll see that #WELCOME_USER# is expanded to <div class="app-user">Welcome: DEMO</div> So to change the style of the message, you need to tweak the style of the app-user div in your CSS, or override it in a style block in your HTML header.
    Now, the tougher question: why the text is wrapping for you. And, really, without seeing your entire page, I can't give a full answer. But I'd suggest that what's most likely happening is that the table column you're putting it in is too narrow, so it's wrapping; try replacing the td tag with <td nowrap="nowrap"> This will force the column to be wide enough to display the full message, but might result in weird formatting elsewhere on the page (depending on what all is in your table).
    -David

  • How to track the Log In time and IP when user login BIEE system.

    i need to get the login user's logintime ,IP .please tell me how

    Amol-
    I doubt you can see the user who deleted the risk in the CC log file, but I am not sure about that.  Anybody out there bold enough to test that in perhaps a Sandbox environment?
    In my implementations, I have suggested to clients to have only ONE person or Controls Team with the CC Admin role (all authorizations).  Nobody else should have full access into CC.  You can tailor users' access by employing the proper CC actions in their user profile in the UME...
    Ankur
    GRC Consultant

  • How to track the details of the user?

    Hello,
            I want to know how to track the details of a USER from the past 60 days I mean i want to know how what is the time and time out of the SAP system for the past 60 days?
    waiting for the valuable replys.
    Thks

    Read,
    http://help.sap.com/saphelp_nw04s/helpdata/en/2c/c59d37d373243de10000009b38f8cf/frameset.htm
    regards
    Juan

  • How to retrieve the all user name from system domain(including login user)?

    Hi, I am trying to get the system domain all users name. But I unable to get the all user name except domain login user name. I used the below code. What I want to do to get the all user name from system domain. Kindly any one help me.
    Properties envVars = new Properties();
    Runtime r = Runtime.getRuntime();
    String OS = System.getProperty("os.name").toLowerCase();
         if ((OS.indexOf("nt") > -1) || (OS.indexOf("windows 2000") > -1 ) || (OS.indexOf("windows xp") > -1) )
              p = r.exec( "cmd.exe /c set" );
         BufferedReader br = new BufferedReader ( new InputStreamReader( p.getInputStream() ) );
         String line;
         while( (line = br.readLine()) != null )
              int idx = line.indexOf( '=' );
              String key = line.substring( 0, idx );
              String value = line.substring( idx+1 );
              envVars.setProperty( key, value );
         String domainDNSName = envVars.getProperty("USERDNSDOMAIN");
         String userName = envVars.getProperty("USERNAME");
         System.out.println("\n\n\n DOMAIN NAME == "+domainDNSName +" USERNAME == "+userName);
    Thanks & Regards
    Palani

    Thanks kajbj,
    I don't know, How many users in domain. I neet to get all the user names from my domain. User like A, B,C,D, E,F. I need to get this users name.
    public class Env {
         public static void main(String[] args) {
              System.out.println("USERDOMAIN: " + System.getenv("USERDOMAIN"));
              System.out.println("USERNAME: " + System.getenv("USERNAME"));
    Here , I am getting the login user name only. So i needs all user name. How to retrive or get this.
    Regards
    Palani

  • How to see the active users in the AS JAVA?

    Hi Experts,
    In as java how to see the active users in the system.Kindly,tell me step by step details to find the active users.As I'm new to the Netweaver administration.
    Thanks,
    Reddy

    Hi,
    You can find the login sessions with Timestamp and User in Visual Admin under SecurityProvider and tab Runtime and Login sessions. You might also get these details in NWA->Monitoring->Availability.
    Regards, Rahul

  • How to find the concurrent user licenses usuage

    Hi,
    Can you someone tell me how to find the concurrent user licenses usage. if i go to CM C -> Settings -> View Global System Metrics then it is showing strange number in the area of peak licenses used since deployment  (more than 5K),
    Is there is any Bug or how to refer this?
    We are using BI4.0 SP5

    Hello Satheesh,
    Its is possible to track concurrent user licenses usage by using BI 4 monitoring.
    Please check below:
    Monitoring Concurrent Sessions in SAP BI Platform 4.0 and BusinessObjects Enterprise XI3.1
    -Mahesh

  • Login User Session details

    Could anyone provide information as how to fetch Login User session details in Web dyna pro .
    I have Text field and Label in webdynapro View.
    These need to be autofilled based on login user.
    How to achieve this requirment in webdynpro.

    Ragu,
    Here the presentation on UME API and retreving the logon user details:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/using%20the%20user%20management%20api%20with%20ep%20applications%20-%20webinar%20powerpoint.pdf
    You need to add these 2 jar files to buildpath
    1)com.sap.security.api.jar
    2)com.sap.security.api.perm.jar
    For more help how to add jars :
    Using JAR Class Finder
    If it's not a local project and if you use NWDI environment , here the blog how to add jars for Web Dynpro DC's.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/194bdc4f-0901-0010-82ba-bf73af5d5f75
    You can find some jar from the below sap jar finder website:
    http://sapjarfinder.com/
    Thanks
    Krishna

  • How to find the exact user exit for our requirement?

    Dear Mr. keerthi,
    can you please explain me how to find the exact user exit for our requirement?

    Hi sandip
    There is more than one method in which you can check for user-exits.The following method is used very often.
    <b>How to find the exact user-exit for your requirement.</b>
    1.     You can check the user exists using transaction SE85.
    2.     Repository Information System -> Enhancements -> Customer exits
    3.     You can search the user-exits by package name.
    4.     Double click on each exit name to check the function module exits.
    <b>The procedure to find the package name.</b>
    Execute transaction SE93 
    Enter the tcode of the transaction for which you want to check the user exit.
    Example: if you want to find the user-exit for purchase orders while changing, enter ME22n  and press display.
    You will get to see the package name
    But you need to confirm that the user exit will get triggered at the appropriate event.
    ( example: you might want some validations to be done ON SAVE of a purchase order)
    <b>Checking if the user-exit is getting triggered or not.</b>
    1.     Open the user exit function module (that you have got in step 4) in Tcode SE37.
    2.     Click on where used button. In the pop up that immediately appears choose only programs .
    3.     You will get a list of programs. Double click on the program name.
    4.     You will get the list of location where this function module user exit is used.
    5.     Place session break points at each of these location ( at each CALL FUNCTION statement)
    6.     Now go to your transaction ( say change purchase order tcode:Me22n) and check if the user exit is getting triggered on appropriate event.
    regards,
    Prasad

  • Hi, I followed the instructions to apply for the Made For iPhone Program. After submission of the necessary documents and information, I have not heard back from Apple. How to track the application progress? Can someone help?

    Hi, I followed the instructions from Apple MFI website, to apply for the Made For iPhone Program. After submission of the necessary documents and information, I have not heard back from Apple for couple weeks. How to track the application progress? Can someone help? < Edited by Host >
    Thank you.
    Best Regards,
    Gerald

    Hi Gerald
    This is a user-to-user forum, and your message will not be received by Apple. You will need to sign into your Developer/MFI account, and contact Apple that way. This can be done here.
    P.S Please do not post your e-mail address here.
    Taylor

  • How to track the transport request number for the Role/Composit Role

    Hi,
    How to track the transport request number for the Role/Composit Role.
    Thanks,
    Ravi

    Use transaction SE03 Transport Organizer Tools
    Execute "Search for Objects in Requests/Tasks" with objects of types:
    R3TR     ACGR     Role
    R3TR     ACGT     Role - User assignment
    Regards

  • How to find the invalid form session in oracle Apps

    Oracle Apps R12
    Hai All
    How to find the invalid form session in oracle Apps R12 and How to Kill the that.
    Thanks & Regards
    Srikkanth.M

    Hi,
    Please refer to these docs (for 11i and R12).
    How to Kill Inactive Sessions Based on the Information in the Monitor User Form [ID 103516.1]
    Script: How To Identify The apps User Using The O/S PID For Forms Users In 11i [ID 185762.1]
    Thanks,
    Hussein

  • Display the login User ID on Header in Business Objects XI R3.1 Infoview

    In XI R2 Infoview- the login user ID  is displayed on header. However  In XI R3.1 infoview- displayed Business Objects Logo on the same place of the Header. We noticed that In BO XI3.1 infoview the login user ID  is displayed on header. However the Business Objects logo is displayed on top of the user ID so the user ID  is hidden. while Setting the Infoview Application properties in CMC (CMC>Applications>Infoview Application Properties> check Do not display logo) then it will hide the logo and then next login displays the login user ID. Could someone please confirm is it the solution with this configuration or else please help us how to display the user ID on Infoview Header.

    Hey,
    What you did is exactly correct.
    Now you did on XI-R2 and 3.1 right??, whenever you got upgrade to next release of BO version again you have to do the same changing of properties. Which should not be dynamic based on your previous changes on earlier versions.
    Thank You!!

  • Using the login user name in the report

    It will be appreciated if someone can help on the following:
    How can I use the login user name in the report?
    I mean that the report will be build on SQL statement look like :
    Select a, b, c, d
    For table
    Where a = <the user name used to login to htmldb>
    Thanks

    select a,b,c,d
    from table
    where a= :APP_USER

Maybe you are looking for