Skip to Content

SAP S/4HANA Embedded Analytics – A detailed Walkthrough (Part 1)

Hi All,

 

S/4HANA is steadily gaining shape in the market and so is the S/4HANA Embedded Analytics.

 

Part2 of the Blog can be found here –>

http://scn.sap.com/community/s4hana/blog/2016/03/11/sap-s4hana-embedded-analytics-a-detailed-walkthrough-part-2

 

Part3 of the Blog can be found here –>

http://scn.sap.com/community/s4hana/blog/2016/03/20/sap-s4hana-embedded-analytics-a-detailed-walkthrough-part-3

 

Part4 of the Blog can be found here –>

SAP S/4HANA Embedded Analytics – A detailed Walkthrough (Part 4)

 

Part5 of the Blog can be found here –> SAP S/4HANA Embedded Analytics – A detailed Walkthrough (Part 5)

Part6 of the Blog can be found here –>   https://blogs.sap.com/2017/06/30/sap-s4hana-embedded-analytics-a-detailed-walkthrough-part-6/

Part7 of the Blog can be found here –>  https://blogs.sap.com/2017/11/23/sap-s4hana-embedded-analytics-a-detailed-walkthrough-part-7/

 

Introduction:

What is S/4HANA Embedded Analytics?

It is a set of Analytical Features integrated in SAP S/4HANA, that enables users to perform real time analytics on the live transactional data. It comes with a set of inbuild representations of operational data, called VDM (Virtual Data Models) which will allow users to arrive at better decisions from the available data.

 

It doesn’t require a separate installation or implementation or any other licenses. It is a part of the S/4HANA Software and is generally available with the new S/4HANA releases.Customers can extend the existing CDS Views VDM’s and build new ones.

 

Please be informed that SAP S/4HANA Embedded Analytics will not replace any existing SAP Solutions and S/4 HANA has an Embedded Analytical engine, but certain steps/activation needs to be done for making this engine to work.

 

Most of the operational reporting can be done with S/4HANA Embedded Analytics.BW would be required for EDW, which will help to analyze the historical data, data consolidation from multiple sources.

 

SAP Best Practices for Analytics with S/4HANA: (RDS now be renamed as Best Practices) (Available in SMP since March 7th 2016– http://service.sap.com/analyticswiths4h) (V1.0)

 

SAP Best Practices for analytics with SAP S/4HANA provides a comprehensive portfolio of analytical content based on SAP S/4HANA. It provides guidance on how to get started with SAP S/4HANA embedded analytics and how to integrate with best in class analytical platform and solutions from SAP for ex: SAP BI platform, SAP BW etc.

 

3 Options/Scopes:

1) Embedded Analytics with SAP S/4HANA (Mandatory)

–> Set up of SAP S/4HANA Embedded Analytics with CDS views and various analytical apps based on CDS views.

 

2) Integration between SAP S/4HANA and SAP BO (Optional)

Enhance analytical use cases by integrating between SAP S/4HANA and SAP BI platform. Pre-built reports and content built in SAP BI client tools ex: Design Studio 1.5 (Ex: –> Core Finance, P2P, O2C), Webi (Ex: Sales revenue, Sales Analysis), Crystal Reports can be leveraged and extended based on business use cases. (Based on BI 4.2 Version, works on 4.1 aswell).

Procurement of a separate License for BO platform would be required, the Best Practices would have only the configuration content.

 

3) Integration between SAP S/4HANA and SAP BW (Optional)

Consolidate data from SAP S/4HANA in SAP BW and build analytical use cases based on enriched data environment from other data sources in SAP BW.(using SDA Concept)

 

 

My Personal opinion here is with SAP S/4HANA Embedded Analytics, SAP BW (Embedded BW) has got a lot of significance.

 

 

Now we will go through the various S/4HANA Embedded Analytics options:

 

1)  QUERY BROWSER

Launch into a Fiori Launchpad of a S/4 System.

 

/wp-content/uploads/2016/03/3_901237.png

 

You will have a tile called Query Browser, which basically displays the available CDS Views. The CDS view output can be accessed through “Open in Design Studio”.

 

/wp-content/uploads/2016/03/4_901238.png

/wp-content/uploads/2016/03/5_901239.png

 

/wp-content/uploads/2016/03/6_901240.png

In some Cases, you might face some issues while trying to open the Design Studio Flavor of the CDS.,

You will have to activate an object in the Embedded BW System to make this work.

Please follow the below document for the same

–>  Solution for 0ANALYSIS Issue while trying to access ‘Open in Design Studio’ option of S/4HANA CDS Views

/wp-content/uploads/2016/03/7_901241.png

Once your Analytics is completed, you have the flexibility of saving the same as a Tile as well.

 

If you want to explore the CDS code behind, Double click on the View name, to see more details.

/wp-content/uploads/2016/03/8_901242.png

 

Go to the Annotation tab

/wp-content/uploads/2016/03/9_901243.png

 

Take the SQL View name from the Annotations tab.

Go the Backend system in the SAP Logon PAD.

Take SE11 –> Provide the SQL View name in the Views part and click display.

/wp-content/uploads/2016/03/10_901245.png

/wp-content/uploads/2016/03/11_901244.png

 

Double click the Package name to Open the Package Hierarchy

/wp-content/uploads/2016/03/12_904229.png

 

Remember this name and open the Backend System in HANA Studio ABAP Perspective.

/wp-content/uploads/2016/03/13_901247.png

 

Right Click on the system and click “Add a Package”.

/wp-content/uploads/2016/03/14_901248.png

Select the package name that we took earlier and click OK.

We can now find the CDS View definition within the Data Definitions  Folder

/wp-content/uploads/2016/03/15_901249.png

Alternately, You can use the Following Button in ABAP Perspective to directly navigate to the CDS View.

Untitled1.png

 

Untitled2.png

Double Click on the same and the CDS View definition is displayed.

Here you can note that the CDS view C_DAYSSALESOUTSTANDING is a consumption VDM CDS View and it contains a annotation @Analytics.query: true.

Also, this CDS view is built on top of another CDS named as I_DAYSSALESOUTSTANDING

CDS COnsumption.png

If we open the CDS View I_DAYSSALESOUTSTANDING, we can see that its a COMPOSITE VDM CDS view and it contains a annotation @Analytics.datacategory : CUBE.

CDS_Composite.png

Also, please note that an CDS View with Annotation @Analytics.datacategory : CUBE, will create a Transient Provider with the naming convention 2C<SqlViewName>

 

Also, note that an CDS view with Annotation @Analytics.query: true, will create a Transient Query with the naming convention 2C<SqlViewName>

 

The query name you can use everywhere where a query name is required, e.g Transaction RSRT.

 

In case if you want to preview the data, please do the same by right clicking(Context Menu) on the CDS View.

There are many other options in the context menu, which is out of scope of this blog.

/wp-content/uploads/2016/03/preview_1000421.png

 

Sometimes, you might get the below error.

Untitled2.png

The above issue is seen mostly on the older versions of HANA Studio. Upgrade the studio to solve this issue.

 

Since we have defined the view with Parameters, the CDS view will prompt for the  parameters(as shown in the below picture). Provide the necessary values and proceed further.

Untitled3.png

 

The Following screenshot shows the Data preview of a CDS View.

Untitled4.png

 

 

2)  MULTI DIMENSIONAL REPORTS

Multidimensional reports are based on Webdynpro grid application that we have as a template. It renders all sorts of analytical CDS queries. All queries can be rendered in the same way. Functionality is the same for Analytical reports.

 

Example: Incoming Sales Orders

 

/wp-content/uploads/2016/03/17_901252.png

 

/wp-content/uploads/2016/03/18_901256.png

 

/wp-content/uploads/2016/03/19_901257.png

 

 

/wp-content/uploads/2016/03/20_901258.png

 

 

 

Thanks for going through the Document. Do let me know your Reviews and Suggestions.

 

 

BR

Prabhith

41 Comments
You must be Logged on to comment or reply to a post.