on 07-19-2007 9:49 AM
Hi,
We have installed the SAP Netweaver2004s environemant with
a)Web AS Java
b)Web AS Java + ABAP
Is there anu API or UME API or any programmatic approch form where we can know if the underlying datasource is of what type.
I require this as based on the server configuration my code flow will change.
How this can be done.
Best Regards
Manoj
Hi Manoj,
Use the UME API, here is a sample code that checks to which datasource a group belongs to, amend it to your needs:
IGroup group = groupFact.getGroup(<group_id>);
String[] datasources = group.getAttribute(IPrincipal.DEFAULT_NAMESPACE, IPrincipal.DATASOURCE);
if (datasources[0].equals("PRIVATE_DATASOURCE"))
{
// This is a UME Group
}
else if (datasources[0].equals("R3_DATASOURCE"))
{
// This is an ABAP Group
}
This code provides you with the data source id. To find out which data source id belongs to UME and which to ABAP user store have a look into your UME configuration file. Find more information on data sources in <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/e7/8f0440a832e369e10000000a155106/frameset.htm">here</a>.
Hope it helps,
Roy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.