cancel
Showing results for 
Search instead for 
Did you mean: 

Reading System Properties from webdynpro

Former Member
0 Kudos

Hi

I need to read the properties of my system which is defined in System Administration.

please help.

Thanks,

Priya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Priya,

Here's an example :

ISystemLandscapeObject systemObject = null;

List wrappers = UMFactory.getSystemLandscapeWrappers();
for (int i = 0, j = wrappers.size(); i < j; i++) {
	ISystemLandscapeWrapper wrapper =
		(ISystemLandscapeWrapper) wrappers.get(i);
	systemObject = wrapper.getSystemByAlias("SAP_MDM");
	if (systemObject != null) {
		break;
	}
}
// Get hostname and repository name
hostname = systemObject.getAttribute("Server").toString();
repository = systemObject.getAttribute("RepositoryName").toString();

This piece of code retrieves the hostname and repository name of a SAP MDM system.

Regards,

Pierre

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Priya,

Can your question be bit more clear so that we will gat back to you.

what is "read the properties of my system "

To my guess you want to know connection proeprties if ny guess is right

then the below link will help you.

https://wiki.sdn.sap.com/wiki/display/stage/HowtoCreateSystemObjectinthePortalforConnectingtoSAPBackend+Systems

Cheers!!

VEnk@

Former Member
0 Kudos

Hi,

My question is how to get the system information in my code using portal API.

Thanks

Priya

Former Member
0 Kudos

Hi,

Check the below link by which you can get the idea with the code that exists.

Orelse specify clearly wht are all the system information that you want to use in your API.

Cheers!!

VEnk@