Skip to Content

Code to read System Property details based on System Alias in SAP Portal

Feb 21 at 06:56 AM


avatar image

Hi All,

I want to read system properties like Host, Port etc by passing the System Alias.

i found below code from

    ISystemLandscape portalLandscape =  UMFactory.getSystemLandscapeFactory().getLandscape(ISystemLandscape.TYPE_ENTERPRISE_PORTAL);
    if(portalLandscape == null) {
        throw new Exception("It seems like no Enterprise Portal is installed.");
    ISystemLandscapeObject systemObject;
    try {
        systemObject = portalLandscape.getSystemByAlias("TestSAPBackend");
    catch(ExceptionInImplementationException e) {
        throw new Exception("An error occurred while retrieving the test system object.", e);

But this is giving me syntax error "The method getSystemLandscapeFactory() is undefined for the type UMFactory" at below line


I am not able to find/add relevant dependency DC related to UMFactory as mentioned in

Request you to please share the code on how to achieve this.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers