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

currently logged in user

Hi experts,

can you tell me How to identify the currently logged in user of portal from web dynpro applications ?

Thanks,

Namrata

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 05:21 AM

    Hi,

    Use

    WDClientUser.getLoggedInClientUser().getSAPUser();

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 21, 2009 at 05:30 AM

    Hi,

    import com.sap.security.api.IUser;

    IWDClientUser user=WDClientUser.getCurrentUser();

    IUser myuser=null;

    myuser=user.getSAPUser();

    wdContext.currentContextElement().setVa_EmpId(myuser.getUniqueName());

    hope this may help you...

    Deepak

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 21, 2009 at 06:05 AM

    Hi,

    In order to use the below code in webdynpro.

    You require the below mentioned jar file.

    com.sap.security.api.jar

    String loggedID = WDClientUser.getCurrentUser().getSAPUser().getUniqueName();
    wdComponentAPI.getMessageManager().reportWarning("Actual ID:"+loggedID);
    

    Thanks & Regards,

    Lokesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 05:27 AM

    Hi ,

    please go through this thread,

    retrieve-user-in-webdynpro-code-through-ume-api

    Regards,

    Ramesh

    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.