<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2017.59001</article-id><article-id pub-id-type="publisher-id">JCC-77387</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  SAP S/4HANA Embedded Analytics: An Overview
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Abani</surname><given-names>Pattanayak</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>SAP HANA Center of Excellence, SAP America, Dallas, USA</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>abani.pattanayak@sap.com</email></corresp></author-notes><pub-date pub-type="epub"><day>30</day><month>06</month><year>2017</year></pub-date><volume>05</volume><issue>09</issue><fpage>1</fpage><lpage>7</lpage><history><date date-type="received"><day>June</day>	<month>8,</month>	<year>2017</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>June</month>	<year>30,</year>	</date><date date-type="accepted"><day>July</day>	<month>3,</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Operational analytics is all about answering business questions while doing business and supporting business users across the organization, from shop floor users to management and executives. Therefore, business transactions and analytics must co-exist together in a single platform to empower business users to drive insights, make decisions, and complete business processes in a single application and using a single source of facts without toggling between multiple applications. Traditionally transactional systems and analytics were maintained separately to improve throughput of the transactional system and that certainly introduced latency in decision making. However, with innovation in the SAP HANA platform, SAP S/4HANA embedded analytics enables business users, business analysts, and management to perform real-time analytics on live transactional data. This paper reviews technical architecture and key components of SAP S/4HANA embedded analytics. This paper reviews technical architecture and key components of SAP S/4HANA embedded analytics.
 
</p></abstract><kwd-group><kwd>SAP HANA</kwd><kwd> In-Memory Computing</kwd><kwd> S/4HANA</kwd><kwd> Embedded Analytics</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>SAP S/4HANA [<xref ref-type="bibr" rid="scirp.77387-ref1">1</xref>] is the next-generation SAP Business Suite application created exclusively for the SAP HANA Platform [<xref ref-type="bibr" rid="scirp.77387-ref2">2</xref>] . The main characteristics of SAP S/4HANA include simplification of business processes, significantly improved transaction efficiency (new simplified data model [<xref ref-type="bibr" rid="scirp.77387-ref3">3</xref>] ); faster analytics (using a virtual data model based on Core Data Services [CDS]); an intuitive, modern user interface (SAP Fiori), and planning and simulation options in many conventional transactions.</p><p>With SAP S/4HANA, both transactions and analytics exist together in a single platform enabling business users to conduct business and perform real-time analytics on live transactional data. SAP S/4HANA embedded analytics is a collection of analytics features and a set of predefined and prepackaged self-service data representations (i.e., virtual data models) to derive real-time, actionable insights from the data without worrying about the underlying data structure. SAP S/4HANA embedded analytics can be built directly into transactional business processes or can be consumed by standalone analytics applications.</p></sec><sec id="s2"><title>2. SAP S/4HANA Embedded Analytics Architecture</title><p>SAP S/4HANA embedded analytics as the name suggests are part of the standard SAP S/4HANA installation and is used to perform sophisticated real-time reporting and analysis on live transactional data. The key architectural components of SAP S/4HANA embedded analytics [<xref ref-type="bibr" rid="scirp.77387-ref4">4</xref>] include the SAP HANA database, virtual data model, analytical engine (embedded SAP BW), OData service, and interfaces as illustrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><sec id="s2_1"><title>2.1. Virtual Data Model Based on CDS Views</title><p>SAP introduced a set of domain-specific languages and services called Core Data Services (CDS) for defining and consuming semantically rich data models which are represented as CDS views. CDS also offers capabilities beyond the traditional data modeling tools, including support for conceptual modeling and relationship definitions, built-in functions, and extensions.</p><p>SAP provides a set of CDS views to serve as the functional representation of the operational data (includes both transactional and master data tables of SAP S/4HANA). These virtual data models are the foundation of the SAP S/4HANA system and used by both business process and analytics to access data from the underlying physical tables. These virtual data models are also used for extracting data from the SAP S/4HANA system to external systems like SAP BW.</p><p>SAP-delivered CDS views can be extended, and new CDS views can be built to</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> SAP S/4HANA embedded analytics architecture</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-1730648x2.png"/></fig><p>enhance the virtual data model. CDS views are developed, maintained, and extended in the ABAP layer of the SAP S/4HANA system, so promotion of CDS views between systems can be managed by the standard SAP transport process.</p><p>The key principle of the VDM is to build a semantic layer on top of the existing SAP S/4HANA database model, hiding its technical details. Based on the provisioned content and reuse option, the CDS views of the VDM are classified as interface or consumption views as illustrated in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><sec id="s2_1_1"><title>2.1.1. Private Views</title><p>These views are private in nature and not meant for end user consumption. Private interface views are technically driven auxiliary views and are introduced to facilitate transformation of the underlying data model towards the public view model. Technical names of private CDS views start with P_. It is not recommended to change or extend the private views.</p></sec><sec id="s2_1_2"><title>2.1.2. Interface Views</title><p>Interface views are the most important constituent of the VDM. Theses consist of reusable entity views, which are defined with a focus on business semantics. Interface views are public, stable, and reusable views for any consumer. The structure of public interface views should not be affected due to corrections, patches, and upgrades.</p><p>There two types of interface views:</p><p>Basic interface views represent core entities without data redundancy that is, with a single representation of each core entity (e.g., exactly one customer or sales order) and only with those fields that are dependent on the core entity itself and cannot be calculated from other fields. Basic views form the low-redundancy</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> SAP S/4HANA virtual data model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-1730648x3.png"/></fig><p>model and simple projection on top of the SAP Business Suite database tables.</p><p>Composite Interface views are derived from multiple basic interface views and may offer associations, aggregations, and complex calculations. They can be specific to a consumption domain or reusable by many and always expose redundant data by design. Depending on the use case, there may be multiple layers of composite interface views.</p></sec><sec id="s2_1_3"><title>2.1.3. Consumption Views</title><p>As the name suggests, these views are exposed for end user consumption and created using one or more interface views. These are public domain-specific views for analytics, search, and transactional applications. The guiding principle of the VDM model is that database tables must not be accessed directly by consumer views of the VDM (bypassing the interface layer).</p></sec><sec id="s2_1_4"><title>2.1.4. Extension Include Views</title><p>Extension include views are used to expose custom new fields created as part of customer project implementations. SAP-delivered extension includes views (for that matter, any views) can be extended to add additional fields. The customer extension include view is created and transported as a separate DDL source.</p></sec></sec><sec id="s2_2"><title>2.2. SAP HANA Database</title><p>Although SAP S/4HANA embedded analytics is powered by the high-perfor- mance SAP HANA database, it’s essential for the computation to be pushed to the database layer to attain optimum performance. Therefore, during the activation of CDS views (in the ABAP layer), the system generates SQL runtime views in the SAP HANA database to execute the data read and transformation inside the SAP HANA database layer as illustrated in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>Please note, certain analytic features of CDS views are not (yet) supported in SAP HANA SQL runtime views; these features are computed by the analytical engine in the SAP S/4HANA ABAP application server.</p><p>The generated SQL runtime views in SAP HANA database views can also be used in native SAP HANA information views (like calculation views) for agile data mart reporting in the SAP HANA database.</p></sec><sec id="s2_3"><title>2.3. OData Service</title><p>SAP Gateway exposes consumption CDS views as an OData service, allowing SAP Fiori, SAP BusinessObjects BI tools, and third-party UIs/clients to access the consumption views directly or via the analytical engine.</p></sec><sec id="s2_4"><title>2.4. Analytical Engine</title><p>Starting from SAP NetWeaver 7.0, an SAP BW component has been included part of SAP NetWeaver ABAP installation; this component is normally referred to as embedded SAP BW. The embedded SAP BW system is responsible for OLAP functions and services for other SAP BW functionalities (like planning</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> CDS views activation</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-1730648x4.png"/></fig><p>and the SAP HANA application process designer). It also compensates for functionalities (pivoting, hierarchies, aggregations, and formula execution) not (yet) available in SAP HANA.</p><p>Upon activating consumption CDS views, a transient provider or transient SAP BEx query is created in the embedded SAP BW system. SAP BusinessObjects BI tools (like SAP BusinessObjects Design Studio) use these transient providers to query data from the consumption CDS views.</p></sec><sec id="s2_5"><title>2.5. Interfaces</title><p>SAP S4/HANA analytics provides data access using OData, SAP HANA InA, and Business Intelligence Consumer Services (BICS) interfaces, depending on the client tools. The frontend applications use mostly OData as the communication protocol inside the SAP Fiori interface. There are some exceptions, such as SAP Lumira, SAP Design Studio, and enterprise search, which uses SAP HANA InA protocols because they don’t yet have OData implementations.</p></sec></sec><sec id="s3"><title>3. Execution of SQL Queries on CDS Views</title><p>As discussed earlier, when a CDS view gets activated, a SQL-Runtime view is generated in the database. This SQL view contains all fields from the CDS view’s projection list (but not the associations and other CDS-specific metadata). Therefore, when we query a CDS view using standard SQL (such queries are translated one-to-one into an SQL statement on the SQL-Runtime view), additional features such as associations and annotations are provided on the ABAP side and translated into pure SQL queries to the database.</p></sec><sec id="s4"><title>4. Reporting &amp; Visualizations</title><p>All SAP S/4HANA CDS views are automatically exposed as ODP transient InfoProviders (in the embedded BW system) and can be used to create custom SAP BEx queries. It’s recommended to create SAP BEx queries only on SAP S/ 4HANA CDS consumption/query views. SAP BEx queries created on the ODP transient providers can be transported through the SAP S/4HANA landscape, because a transient provider is generated with the same technical name in all systems. SAP BEx queries on ODP transient providers support SAP BEx features like variables, restricted key figures, exceptions and conditions, Currency conversion, report-to-report interface and SAP S/4HANA analytics privileges.</p><p>Also the generated SQL runtime views (for CDS views) are accessible by BI tools from SAP and other commercial vendors (e.g. Tableau, QlikView, IBM Cognos etc.) to create sophisticated visualizations.</p><p>These views can also be consumed in the native HANA platform using the in-built XS Server and XS Advanced framework.</p></sec><sec id="s5"><title>5. SAP Best Practices for Analytics with SAP S/4HANA</title><p>SAP Best Practices for Analytics with SAP S/4HANA provides a comprehensive solution with guidance-supported by pre-built content to jump start embedded analytics within SAP S/4HANA. The scope covers tools for the SAP S/4HANA cloud, on-premise, and hybrid scenarios.</p><p>These best practices contents can be used for quick enablement of real-time operational reporting in the SAP S/4HANA system without any custom development. These contents can also be extended/enhanced to meet customer-specific requirements.</p><p>Best practices contents can be downloaded free of charge from the SAP Best Practices Explorer website [<xref ref-type="bibr" rid="scirp.77387-ref5">5</xref>] .</p></sec><sec id="s6"><title>6. Conclusion</title><p>As discussed, SAP S/4HANA embedded analytics empowers business users to carry out business transactions and derive insights in a single application using a single source of truth. These analytics features can also be integrated to core business processes (e.g. customer segmentation, explore cross-sell &amp; up-sale opportunity, make recommendations, planning &amp; forecasting etc.) to make better-informed decisions. Finally, SAP S/4HANA embedded analytics can also take advantage of the underlying advanced analytics capabilities in the SAP HANA platform to look beyond historic facts and figures to forecasting the future.</p></sec><sec id="s7"><title>Acknowledgements</title><p>I want to express my gratitude to Dhirendra Gehlot, Director and Robert Hernandez Jr., Vice President, Digital Business Services, SAP America for their encouragement and support in publishing this paper.</p></sec><sec id="s8"><title>Cite this paper</title><p>Pattanayak, A. (2017) SAP S/4HANA Embedded Analytics: An Overview. Journal of Computer and Com- munications, 5, 1-7. https://doi.org/10.4236/jcc.2017.59001</p></sec></body><back><ref-list><title>References</title><ref id="scirp.77387-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">SAP (2017) What Is SAP S/4HANA?  
https://www.sap.com/products/s4hana-erp.html</mixed-citation></ref><ref id="scirp.77387-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">SAP (2017) What’s SAP HANA?  
https://www.sap.com/product/technology-platform/hana.html</mixed-citation></ref><ref id="scirp.77387-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Elfner, S. (2016) TEC206: Architecture and Components of SAP S/4HANA-SAP TechEd Lecture of the Week.  
https://blogs.sap.com/2016/01/03/tec206-architecture-and-components-of-sap-s4hana-sap-teched-lecture-of-the-week/</mixed-citation></ref><ref id="scirp.77387-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Pattanayak, A. and Koppolu, R. (2016) Introducing SAP S/4HANA Embedded Analytics. Rheinwerk Publishing, Quincy.</mixed-citation></ref><ref id="scirp.77387-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">SAP (2017) SAP Best Practices for Analytics with SAP S/4HANA.  
https://rapid.sap.com/bp/BP_S4H_ANA</mixed-citation></ref></ref-list></back></article>