on 09-08-2009 10:33 AM
Hi
I need to read the properties of my system which is defined in System Administration.
please help.
Thanks,
Priya
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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@
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.