Skip to Content

In Part 1 of this short blog post series we looked at the option to leverage an existing SAP NetWeaver BW InfoProvider and to generate an Analytical and Calculation View in SAP HANA based on the InfoProvider definition without copying the data.

In the second part we will leverage a BEx Query and generate a snapshot and import the meta-data from the existing BEx query into SAP HANA by generating an Analytical View.

Why would you want to leverage  BEx Query and generate a snapshot of the data ?

  • Because your BEx query might contain elements such as restricted or calculated key figures that are not part of your InfoProvider
  • Because you might have created formulas / calculations that are not part of your InfoProvider
  • Because you might only need a small subset of the data from your InfoProvider
  • Because you need the data from an InfoProvider that you can’t leverage with SAP HANA directly yet, such as a MultiProvider

A query result cannot be indexed if the query meets one of the following conditions:

  • It is an input-ready query. An aggregation level is used as the InfoProvider.
  • Input-ready mandatory variables are used in the query. (As indexing runs in the background, no entries can be made.)
  • The query contains a temporal hierarchy join. (The result cannot be stored in a “flat” index.)
  • The query contains more than one structure
  • Calculations in the query cannot be performed before aggregation. Indexing can be performed despite this, but the relevant key figures cannot be used in every context.
  • Local aggregation is used. The system ignores this during indexing. (The query result in the OLAP Engine is not the same as the one that the user sees.)
  • The technical name of the query is more than 20 letters long. An index ID is formed from the query name. There is a technical limitation for this.

So let’s generate a query snapshot:

  • Logon to the SAP NetWeaver BW system.
  • Start transaction RSDDB
  • Click Query as InfoProvider in the toolbar.
  • Enter the technical name of the BEx Query into the field Query.

/wp-content/uploads/2013/05/blog02_01_221923.jpg

  • Click Release Query as InfoProvider

/wp-content/uploads/2013/05/blog02_02_221924.jpg

(sorry – German message even though I was logged on with Language = EN)

  • Click Continue   .
  • Click Create  

/wp-content/uploads/2013/05/blog02_03_221925.jpg

  • Click Activate and Fill Index
  • Click Immediate.
  • Click Save.

Now the resultset of the BEx Query is being generated in form of a snapshot inside SAP HANA and we can generate the model in SAP HANA Studio.

  • Start SAP HANA Studio by following the menu Start > All Programs > SAP HANA > SAP HANA Studio.
  • In the left hand panel use a right click and select the option Add System.

/wp-content/uploads/2013/05/blog02_04_221926.jpg

  • Enter the system details for the SAP HANA environment:

/wp-content/uploads/2013/05/blog02_05_221927.jpg

  • Click Next.

/wp-content/uploads/2013/05/blog02_06_221928.jpg

  • Enter you SAP HANA credentials.
  • Click Next.
  • Click Finish.
  • Select the SAP HANA System that we created previously
  • Select the menu File > Import.
  • Open the Folder SAP HANA Content.
  • Select the option Import SAP NetWeaver BW Models.

/wp-content/uploads/2013/05/blog02_07_221929.jpg

  • Click Next.

/wp-content/uploads/2013/05/blog02_08_221930.jpg

  • Enter the SAP NetWeaver BW Server details.
  • Click Test Connection

/wp-content/uploads/2013/05/blog02_09_221932.jpg

  • Click OK.
  • Click Next.
  • In the next screen select the SAP HANA System entry you created previously.
  • Click Next


/wp-content/uploads/2013/05/blog02_10_221933.jpg

  • Navigate to the InfoArea.
  • Select the entry for the query snapshot.
  • Click Add.
  • Activate the option Include Display Attributes
  • Activate the option Overwrite existing objects.
  • Select the package for the model.
  • Click OK.
  • Click Finish.

After the import has successfully finished, check if the model was been imported.

  • In the left panel open your system entry.

/wp-content/uploads/2013/05/blog02_12_221934.jpg

  • Open the folder Content.
  • You should find in the package now 1 Analytical View following the name of the imported object

/wp-content/uploads/2013/05/blog02_13_221935.jpg

In the first two parts of this series we took a BW InfoProvider and a BEx query and generated analytical views for it inside SAP HANA.

In the next part we will then leverage the SAP BusinessObjects BI tools with the generated model.

To report this post you need to login first.

3 Comments

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

  1. Shanthi Bhaskar

    Thanks Ingo for Document which helped me a lot.

    Does SAP has any upgrade plans to support Non-cumulative BEx Reports into SAP HANA studio.

    Thanks,

    Shanthi.

    (0) 
  2. Former Member

    Hi Ingo,

    sounds interesting.

    Question:

    Is this a one-shot approach or what happens if the BW data is updated? Is this automatically transfered to HANA, or how would this work?

    Thanks

    Harald

    (0) 

Leave a Reply