Customer Relationship Management Blogs by SAP
Stay up-to-date on the latest developments and product news about intelligent customer experience and CRM technologies through blog posts from SAP experts.
Showing results for 
Search instead for 
Did you mean: 

With Hybris Marketing Cloud you are able to import own SAP HANA Segmentation Views by using the SAP Fiori App “Add Custom View”. You require own SAP HANA Views if you need additional calculated attributes and key figures within the segmentation. This blog will tell you which steps you need to carry out to export SAP standard views into your own SAP HANA Database.


Prerequisites: SAP HANA Database with Schema ABAP

In order to build SAP HANA views for segmentation you need an SAP HANA Database with schema ABAP. You can create yourself a SAP HANA Database in your SAP HANA Cloud Platform (HCP) Trial Account. See blog post Setup of SAP HANA Database in SAP Hana Cloud Platform Trial Account to build Segmentation Views for ... on how to setup your SAP HCP account accordingly.


Prerequisites: SAP Fiori App “Add Custom Views”

SAP Hybris Marketing Cloud offers the SAP Fiori App “Add Custom Views”. The app is part of business catalog “Extensibility – Marketing” (SAP_CEC_BC_MKT_EXT_PC) and business role template “Administrator – Marketing” (BR_ADMINISTRATOR_MKT). You can download the table structure of single tables as well as delivered SAP HANA views for segmentation with their corresponding table structures beneath.


Downloading SAP HANA Views and Table Structures

  1. Open the app Add Custom Views.

  2. Choose tab Export View.

  3. The data source alias are shown. For the segmentation profile "All contacts" the base data source is SAP_CE_CONTACT_IA_ERP_CUSTOMER. Therefore select the data source alias SAP_CE_CONTACT_IA_ERP_CUSTOMER.

  4. Press Load View. You see a list of all related views.

  5. Press Export View. A zip file is downloaded to your local machine.

  6. Unpack the zip file. The folder will contain a folder sap, which contains the calculation views for segmentation, and a table_def.txt file, which contains table structure information.


Import Table Structures to your SAP HANA Database

  1. Open the table_def.txt file with an editor and copy the whole file content.

  2. Logon to your SAP HANA Database with Eclipse.

  3. From the context menu of your SAP HANA database, choose Open SQL Console.

  4. Paste the file content of the table_def.txt file and Execute it.


Import SAP HANA Views for Segmentation

  1. Go to File Import

  2. Select SAP HANA Content Developer Mode and chooseNext.

  3. Select your SAP HANA Database.

  4. Choose your extracted folder as Source Folder Location.

  5. Expand the folder Content and ensure that sap is the root node. Select sap and choose Add.

  6. Choose Finish.

  7. The calculation views are imported inactively. You can see them by expanding the Content folder:

  8. Choose Activate from the context menu of folder hana-app. On the upcoming popup press Activate.

  9. You can now copy the standard view CA_C_CONTACT_IA_LOCAL_CUSTOMER to your own package and start adding your own columns and key figures.