cancel
Showing results for 
Search instead for 
Did you mean: 

System Alias in Web Dynpro ?

Former Member
0 Kudos

Hello All,

I have a requirement such that in my Web Dynpro application, I need to figure out that the backend R/3 it is trying to connect to, is it a unicode or a non unicode system.

For this purpose, we maintain an additional alias name for the portal system starting with UNI_ if its a unicode box or NONUNI_ if its a non-unicode box.

Is there any other better way of storing this information.

<b>I need to know, how can we fetch all the alias names maintained for a sytem in portal using Web Dynpro APIs.</b>

Please help.

Thanks in advance,

Samta

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

import com.sap.portal.pcm.system.ISystem;

import com.sap.portal.pcm.system.ISystems;

import com.sap.security.api.umap.system.DummySystemLandscapeWrapperImpl;

import com.sap.tc.webdynpro.clientserver.portal.impl.PortalUtils;

DummySystemLandscapeWrapperImpl sysLandscapeImpl = null;

PortalUtils portalUtils = null;

ISystems sys = null;

ISystem system = null;

String[] allSystems;

Enumeration allAliases = null;

String systemName = null;

String systemAlias = null;

portalUtils = new PortalUtils();

sys = (ISystems)portalUtils.getServiceReference(ISystems.KEY);

allSystems = sys.getAliases();

for (i = 0; i < allSystems.length; i++)

{

sysLandscapeImpl = new DummySystemLandscapeWrapperImpl

(allSystems<i>.toString());

allAliases = sysLandscapeImpl.getAllAliases();

while (allAliases.hasMoreElements())

{

systemAlias = allAliases.nextElement().toString();

}

}

Regards

Ayyapparaj

former_member751941
Active Contributor
0 Kudos

Hi Samta,

Check this links.

https://help.sap.com/javadocs/NW04S/current/ep/index.html

Regards,

Mithu

Former Member
0 Kudos

Hey Mithu,

That was indeed very helpful and very fast...

Which are the JAR Files required for this ???

Thanks for all the efforts,

Samta

Former Member
0 Kudos

Hello All,

How can I access the system info in Web Dynpro.

I get a classcast exception when using the above code.

Class cast at the line -

sys = (ISystems)portalUtils.getServiceReference(ISystems.KEY);

Please help.

Thanks,

Samta

Message was edited by:

samta nichani

former_member751941
Active Contributor
0 Kudos

Hi Samta,

Check this thread for necessary jar files.

/thread/84443 [original link is broken]

/message/76928#76928 [original link is broken]

Regards,

Mithu