cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the system name of the client?

Former Member
0 Kudos

Hi,

I 've followed this Blog:

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/getting%252blogged%252bin%252bportal%252...

getSAPUser() method returns the logged in user name.

Is it possible to get the System name of the client?

Thanks,

RPN

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Following method may be of use for you


WDProtocolAdapter.getProtocolAdapter().getRequestObject().getClientHostAddress()
	 WDProtocolAdapter.getProtocolAdapter().getRequestObject().getClientHostName()

Regards

Ayyapparaj

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you so much.....:)

siddharth_jain
Active Contributor
0 Kudos

Hi,

Following Code returns the System id :

String sid = System.getProperty("SAPSYSTEMNAME");

if(sid.equals("J2E")){

//Do something }

Siddharth

Former Member
0 Kudos

Hi,

Is it possible to get the instance name that is running on the server.

Regards,

R.Jude Silvester.