cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Portal-Systeminformation via Web Dynpro?

achim_hauck2
Active Contributor
0 Kudos

Hi,

how can I access the Systeminformations of maintained Systems in the Portal / Systemconfiguration in WD?

I want to start an ITS-Service in an external Browser-Window from within a Web Dynpro-Application. I don't want to write the ITS-Connection data hard-coded in my WD-App. Is it possible to access these ITS-connection data (or any other) from within the systemconfiguration of the portal, when I know the system-name?

kr, achim

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Achim,

One way I know of to access such information is to access the PCD. My r&d into this revealed a JNDI structure for the PCD and its content.

I tried some code with that effect and I could access the "folders" that you create in the PCD but could not retrieve the portal object information.

For ex: In Content Administration tree, if you create a folder under "Portal Content", and a system inside it.

The code in WD i used:

Hashtable env = new Hashtable();

DirContext folder = null;

Object o1;

try {

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sapportals.portal.pcd.gl.PcdInitialContextFactory");

env.put(Context.SECURITY_PRINCIPAL, WDClientUser.getLoggedInClientUser());

DirContext ictx = new javax.naming.directory.InitialDirContext(env);

folder = (DirContext)ictx.lookup("pcd:portal_content");

//o1 = ictx.lookup("pcd:portal_content/DEV"); fails

folder = (DirContext)ictx.lookup("pcd:portal_content/TestFolder");

DirContext ctx = (DirContext) folder.lookupLink("DEV");

o1 = ictx.lookup("DEV"); //fails

Attributes attrs = ctx.getAttributes(ctx.getNameInNamespace()); // fails

System.out.println("");

} catch (Exception e) {

e.printStackTrace();

}

These links might help you.

https://media.sdn.sap.com/javadocs/NW04/SP12/pcd/index.html

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars/us... ep services within webas applications.pdf

If you progress further, please do post it.

Regards,

Rajit