Skip to Content
Feb 28, 2007 at 03:31 PM

Determine SAP User Name


Hi All,

How can I determine the SAP username that is running my application?

I have seen on a previous thread that the following will get me close,

<b>IWDClientUser user1 = WDClientUser.forceLoggedInClientUser();

IUser user2 = user1.getSAPUser();</b>

but the method getSAPUser does not seem to exist for the IWDClientUser any longer:

Curiously, I can get attributes like the First/Last Names via

<b>String last = WDClientUser.getCurrentUser().getLastName();</b>

but no way I can see to get the userID. The getClientUserID method returns a number.

Suggestions? Thanks