Quantcast
Channel: SCN : Discussion List - SAP NetWeaver Application Server
Viewing all articles
Browse latest Browse all 3078

How to peform a OLAP query in NetWeaver 7.3 (XMLA MDX BI)

$
0
0

Hi community

 

I have to migrate a existing WebDynpro Java / Java EE application from NetWeaver 7.0 to NetWeaver 7.3.

 

The application performs OLAP and MDX queries on a SAP BI system by help of the SAP BI Java SDK.

For example:

 

// get connection

Context context = new InitialContext();

IConnectionFactory connectionFactory = (IConnectionFactory) context.lookup("deployedAdapters/SDK_XMLA/shareable/SDK_XMLA");

IBIConnection connection = (IBIConnection) connectionFactory.getConnectionEx(null);

 

// execute cube query

IBIOlap olap = connection.getOlap();

Cube cube = olap.getObjectFinder().findCubeFirst(...);

IBIQuery query = olap.createQuery(cube);

IBICommandProcessor commandProcessor = query.getCommandProcessor();

commandProcessor.moveDimensionToRows(...);

IBIDataSet dataset = query.execute();

 

I have several problems to get this code running on the NetWeaver 7.3. Also I have not found any current SAP documentation on this topic. The documentation for BI Java SDK is for SAP NetWeaver 2004.

 

Therewith I have several question:


  • what is the best way to execute a OLAP and MDX queries on a SAP BI system from NetWeaver 7.3 ?

 

  • the existing code uses imports like:
    import org.omg.cwm.analysis.olap.Cube;

    import org.omg.cwm.analysis.olap.CubeDimensionAssociation;
    import org.omg.cwm.analysis.olap.Dimension;
    This classes are located in DC bi/mmr/cwm_1.0_library, which is obsolote in NW 7.3. The development studio tells me to "use the MOIN project instead."
    What does does mean for me? How to do this?

 

  • For the IBICommandProcessor I get the error in NWDS:
    ERROR: class file for javax.jmi.reflect.RefObject not found
    How this error can be sovled?

 

Thank you for your help!

 

Greetings

Rolf

 

 



Viewing all articles
Browse latest Browse all 3078

Trending Articles