28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

parameters via entity;<br />

During activation, the parameters specified in sample.odata:calc.calculationview are retrieved from<br />

the metadata of the calculation view and exposed as a new EntitySet named after the entity set name and the<br />

suffix Parameters, for example, CalcViewParameters. A NavigationProperty named Results is<br />

generated to retrieve the results from the parameterized call.<br />

The name of the generated parameter entity set and the navigation property can be customized, as illustrated in<br />

the following example:<br />

service {<br />

"sample.odata:calc.calculationview" as "CalcView"<br />

keys generate local "ID"<br />

parameters via entity "CVParams" results property "Execute";<br />

}<br />

With the definition above, the name of the parameter entity set is CVParams, and the name of the<br />

NavigationProperty for the results is Execute.<br />

8.2 Data Access with XMLA in <strong>SAP</strong> <strong>HANA</strong> XS<br />

In <strong>SAP</strong> <strong>HANA</strong> Extended Application Services, the persistence model (for example, tables, views and stored<br />

procedures) is mapped to the consumption model that is exposed to clients - the applications you write to extract<br />

data from the <strong>SAP</strong> <strong>HANA</strong> database.<br />

You can map the persistence and consumption models with XML for Analysis (XMLA). With XMLA, you write<br />

multi-dimensional -expressions (MDX) queries wrapped in an XMLA document. An XML for Analysis (XMLA)<br />

application running in <strong>SAP</strong> <strong>HANA</strong> application services is used to provide the consumption model for client<br />

applications exchanging MDX queries (wrapped in XMLA documents) with the <strong>SAP</strong> <strong>HANA</strong> database.<br />

XMLA uses Web-based services to enable platform-independent access to XMLA-compliant data sources for<br />

Online Analytical Processing (OLAP). XMLA enables the exchange of analytical data between a client application<br />

and a multi-dimensional data provider working over the Web, using a Simple Object Access Protocol (SOAP)based<br />

XML communication application-programming interface (API).<br />

Applications running in <strong>SAP</strong> <strong>HANA</strong> XS enable very accurate control of the flow of data between the presentational<br />

layer, for example, in the Browser, and the data-processing layer in <strong>SAP</strong> <strong>HANA</strong> itself, where the calculations are<br />

performed, for example in SQL or SqlScript. If you develop and deploy an XMLA service running in <strong>SAP</strong> <strong>HANA</strong> XS,<br />

you can take advantage of the embedded access to <strong>SAP</strong> <strong>HANA</strong> that <strong>SAP</strong> <strong>HANA</strong> XS provides; the embedded<br />

access greatly improves end-to-end performance.<br />

8.2.1 XML for Analysis (XMLA)<br />

XML for Analysis (XMLA) uses Web-based services to enable platform-independent access to XMLA-compliant<br />

data sources for Online Analytical Processing (OLAP).<br />

XMLA enables the exchange of analytical data between a client application and a multi-dimensional data provider<br />

working over the Web, using a Simple Object Access Protocol (SOAP)-based XML communication applicationprogramming<br />

interface (API).<br />

Implementing XMLA in <strong>SAP</strong> <strong>HANA</strong> enables third-party reporting tools that are connected to the <strong>SAP</strong> <strong>HANA</strong><br />

database to communicate directly with the MDX interface. The XMLA API provides universal data access to a<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Defining Web-based Data Access<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 201

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!