Skip to Content
author's profile photo Former Member
Former Member

Reading System Properties from webdynpro

Hi

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

please help.

Thanks,

Priya

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 10:16 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 09:45 AM

    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@

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.