Skip to Content
Technical Articles
Author's profile photo Eileen Koehler

Export SAP HANA Views from Hybris Marketing Cloud

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 Hybris Marketing Cloud 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. /wp-content/uploads/2016/07/7_997300.jpg
  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 /wp-content/uploads/2016/07/2_997325.png Open SQL Console.
  4. Paste the file content of the table_def.txt file and /wp-content/uploads/2016/07/3_997326.png Execute it.


Import SAP HANA Views for Segmentation

  1. Go to /wp-content/uploads/2016/07/1_997334.gif File /wp-content/uploads/2016/07/2_997335.gifImport /wp-content/uploads/2016/07/3_997336.gif
  2. Select /wp-content/uploads/2016/07/1_997334.gif SAP HANA Content /wp-content/uploads/2016/07/2_997335.gif Developer Mode /wp-content/uploads/2016/07/3_997336.gif 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. /wp-content/uploads/2016/07/8_997357.jpg
  6. Choose Finish.
  7. The calculation views are imported inactively. You can see them by expanding the Content folder:/wp-content/uploads/2016/07/9_997367.jpg
  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.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Jean Schurmans
      Jean Schurmans

      Thanks for this interesting info


      Author's profile photo Joyca Vervinckt
      Joyca Vervinckt

      I get an error "View SAP_CE_CONTACT_IA_ERP_CUSTOMER does not exist" when exporting...

      Author's profile photo Joyca Vervinckt
      Joyca Vervinckt

      Is there perhaps a file available that has some default mock data? Like a bunch of

      INSERT INTO CUAND_CE_IC_ROOT VALUES(data,data,data...) etc? Like this blog but then SAP Marketing Cloud specific.