cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding getting the Logged Ep user in J2ee Application

0 Kudos

Hi gurus,

we had a task to migrate the weblogic stuffs to sap Netweaver ..... this is succussefully done.

Now we need to pass the EP user to this J2ee Application which deployed in the SAP J2EE Engine...

How can we achieve this ...any tips

Note: valuable points will be given

Thanks and Regards

Swamy.B

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Pravesh,

Already we had used user UME API, it works fine for EP Objects. But it is not working for J2EE Application

we had used below code after refering the J2ee project to com.sap.security.api.jar

IUser user1=UMFactory.getUserFactory().getUserByLogonID(request.getRemoteUser());

user1.getFirstName());

user1.getLastName());

Error Message : com.sap.security.api.NoSuchUserAccountException

Thanks and Regards

Swamy.B

pravesh_verma
Active Contributor
0 Kudos

Hi Swamy,

Ok! Just have a look to this link if this could help you.. I think this is the somewhat the same scenario which you are talking about..

<a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=118498&messageID=1328414">Link1</a>

<a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=49940&messageID=511986">Link 2</a>

I hope this helps you.

Regards

Pravesh

pravesh_verma
Active Contributor
0 Kudos

Hi Narayanaswamy,

You can use the UME API's to get the logged on user details. <b>IUser</b>, interface is used to get the user information.

Apart from this you can also see this link :

<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/code-samples/List%20Logged%20On%20Users%20Code%20Sample.htm">Logged on user</a>

I hope this helps you.

Regards

Pravesh

PS: Please consider rewarding points if helpful or solved.