EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB484362: How to import data from a SAP S/4HANA CDS view into MicroStrategy


Karthik Chandran Lakshmanasamy

Quality Engineer, Principal • MicroStrategy


This article provides steps and a tutorial video for importing data from a SAP S/4HANA Core Data Services (CDS) view into MicroStrategy.

Starting with the release of Strategy ONE (March 2024), dossiers are also known as dashboards.
Core Data Services (CDS) views are built on existing database tables and views to provide an efficient way of data modeling.
There are several whitelisted CDS views pre-delivered with SAP S/4HANA Cloud which can be utilized to retrieve various kind of data from SAP S/4HANA Cloud tenant.
SAP S/4HANA Cloud also provides the flexibility to customers for creating their own custom CDS views, combining various whitelisted CDS views, to meet their specific requirement of retrieving data.
These custom CDS views can be easily exposed as OData Service(External API), which can then be utilized to fetch data out from SAP S/4HANA Cloud.
To create a custom CDS view on SAP S/4HANA Cloud, please refer to the SAP product documentation.

Workflow Example 


Here, the user has exposed the CDS view with communication arrangement (Basic Authentication).

ka0PW0000001JcwYAE_0EM2R000001Hpph.jpeg


The user has created a custom CDS view on the service, I_Product, with certain columns specific to the production creation time, date, and details about type and weight.

ka0PW0000001JcwYAE_0EM2R000001Hppr.jpeg


Now let's take a look at how the data is displayed on SAP S/4HANA Cloud.
Note: As you can see, the CreationDateTime column displays the data in a raw format, which is not ideal as an analyst presenting the data.

ka0PW0000001JcwYAE_0EM2R000001Hpqp.jpeg


Let's see how this user can utilize this specific CDS view with the Strategy SAP S/4HANA connector.

  • Log in to Strategy Web and click Create.
  • Choose Add External Data.
ka0PW0000001JcwYAE_0EM2R000001Hpr0.jpeg
  • Select the SAP S/4HANA connector.
ka0PW0000001JcwYAE_0EM2R000001HprO.jpeg
  • Next to Data Sources, click New Data Source to add a new connection.
ka0PW0000001JcwYAE_0EM2R000001HprT.jpeg
  • Enter your connection credentials.
ka0PW0000001JcwYAE_0EM2R000001Hprd.jpeg
  • Click Save.
  • Click on the newly created connection.
ka0PW0000001JcwYAE_0EM2R000001Hpri.jpeg


Now let's see how the data looks like inside this view.
Click Prepare Data. You can see a duplicated Product column.

ka0PW0000001JcwYAE_0EM2R000001Hpw9.jpeg


We can remove the duplicated column in two ways:

  • Right-click on the column Product 01 > Do Not Import
ka0PW0000001JcwYAE_0EM2R000001HpwE.jpeg
  • OR
  • Deselect the column (Edit table > deselect the column, and refresh).
ka0PW0000001JcwYAE_0EM2R000001Hptf.jpeg

After updating the table in the Prepare Data dialog, it should look like the following:

ka0PW0000001JcwYAE_0EM2R000001HpxW.jpeg

Now let's set a filter to fetch only the products that created on 2019-11-16.

  • Set a new filter by clicking Add New Qualification.
  • Choose the column CreationDate, the condition Equals, and enter the following in the Value field: 2019-11-16 00:00:00.
ka0PW0000001JcwYAE_0EM2R000001Hpxb.jpeg
  • Click OK.
ka0PW0000001JcwYAE_0EM2R000001Hpxg.jpeg
  • Click Refresh.
    The table is updated with only the rows that were created on 2019-11-16.
ka0PW0000001JcwYAE_0EM2R000001Hpxl.jpeg
  • Click Finish to save and publish the cube.
ka0PW0000001JcwYAE_0EM2R000001Hpy0.jpeg
  • Click Save.
  • From the Start your analysis dialog, click Create Dossier.
ka0PW0000001JcwYAE_0EM2R000001Hpy5.jpeg
  • Drag the attributes and metrics to create the grid.
ka0PW0000001JcwYAE_0EM2R000001HpyA.jpeg
  • Note: As you can see, only the products that were created on 2019-11-16 are displayed here. The CreationDateTime column displays the data in the correct format using the Strategy SAP S4HANA connector.

 

Before importing into Strategy:

ka0PW0000001JcwYAE_0EM2R000001HpyF.jpeg

 

After importing into Strategy:

 

Tutorial Video

 

 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

June 23, 2020

Last Updated:

March 21, 2024