cancel
Showing results for 
Search instead for 
Did you mean: 

Require a Java API to read Business System defined in SLD

Former Member
0 Kudos

Hi Experts,

Is there any standard java API that provides any methods to retrieve information about the system mentioned in business landscapes. e.g.(name of a system )

In my Web DynPro Application I need to provide a drop down UI that contains names of the Business Systems defined in SLD

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

I found a method in package com.sap.security.api.umap in interface ISystemLandscapeWrapper.

getSystemByUniqueKey(String key).

You'll have to iterate through the keys you get from getAllUniqueKeys().

This is not a standard java API however.

Good luck, Roelof

Former Member
0 Kudos

Hi,

http://help.sap.com/javadocs/nwce/current/se/com/sap/security/api/umap/system/ISystemLandscapeWrappe...

try

ISystemLandscapeObject system;

try

{

List wrappers = UMFactory.getSystemLandscapeWrappers();

for (int i = 0;i < wrappers.size(); i++)

{

ISystemLandscapeWrapper e = (ISystemLandscapeWrapper) wrappers.get(i);

system = e.getSystemByUniqueKey("CN");

if(system == null)

system = e.getSystemByAlias("CN");

else

break;

}

}catch(Exception e)

{

// handle the exception

}

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

Your solution provides access to SLD, But requirment is how to access Bussiness system maintained by WAS to comunicate other XI server.

I tried the following. But dont know exact methods or Attributes which will provide me the information that i required

SAP_BusinessSystemAccessor businessaccessor = new SAP_BusinessSystemAccessor(cimClient);

//List of Systems

SAP_BusinessSystem[] businessaccessorBusinessnames

Former Member
0 Kudos

If you use XI, why not create a web service in XI that provides a list of objects each of which represents a system, with the required attributes.

You can import this web service in your web dynpro.

Good luck, Roelof