on 10-09-2007 3:25 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.