Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2008 at 05:53 AM

    Hi,

    Check [this|Login User Session details; thread.

    Regards,

    Satyajit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2008 at 06:07 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2008 at 06:21 AM

    Hi,

    to get the user name do like this,

    String userid="";

    try {

    IWDClientUser user = WDClientUser.getCurrentUser();

    userid = user.getSAPUser().getUniqueName();

    } catch (WDUMException e) {

    e.printStackTrace();

    }

    and you have to add the security jar to javabuild path.

    Regards,

    ramesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 04:56 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.