Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to determine logged in user?

Hi Buddies,

I would like to have my application greeting the user... What I mean is if james-j starts the application, I want to determine the username and use it in my application (e.g. Hello James, ...)

Is there a way to determine the user that actually is logged in to the application?

Former Member
Former Member replied

Hi,

Following code will be of use for you

IWDClientUser user;
    String greet = "Welcome ";
	try {
		user = WDClientUser.getCurrentUser();
		 greet += user.getFirstName();
	} catch (WDUMException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}

Regards

Ayyapparaj

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question