Tuesday, 1 February 2022

External HANA view configuration in BW4HANA

Overview

SAP Introduced new functionality from BW 7.4 on HANA where we can generate HANA view directly from B4HANA and BW on HANA application during BW object activation, The external HANA view enables to create scenarios where data, which is modeled in the BW system, are merged with data modeled in SAP HANA with SAP HANA tools.

This document will provide you an overview of the external HANA view configuration from the SAP BASIS point of view.

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

DISCLAIMER

The content of this blog post is provided “AS IS”. This information could contain technical inaccuracies, typographical errors, and out-of-date information. This document may be updated or changed without notice at any time. Use of the information is therefore at your own risk. In no event shall SAP be liable for special, indirect, incidental, or consequential damages resulting from or related to the use of this document.

Purpose


This document tried to include all Basis steps for BW4HANA external HANA view configuration.

From BW 7.50 it is possible to generate Calculation Views for all objects if you execute the steps available (SAP note 2236064)

SAP encouraging to use inbuild FIORI URL for external Hana view configuration in BW4HANA.

External HANA View setup in BW4HANA Steps: –

◉ Take all system backup
◉ User sync and setup HANA user creation along with ABAP user
◉ External HANA view related TRANSACTION / FIORI URL
◉ Global Role for HANA external HANA view and Multi-Role
◉ Parameter setup for external HANA view setup
◉ Generate external HANA view with ADSO
◉ Sync new HANA user role from BW4HANA application
◉ Check external HANA view from Application and DB level

Take all system backup: –

As per preventive measures take full DB backup, We are only adding new configuration and no impact on system core functionality.
 
User sync and setup HANA user creation along with ABAP user :-


Global Role for HANA external HANA view

If you are using assignment type as D (Direct assignment), Need to create a global role. (More explanation under next setup)

bw2hana/<ABAP_Schema>_SAP_BW_MODEL_GENERATION is a master role and needs to create in every environment, Without this role, one can be able to generate an external HANA view from the BW system, This role should be assigned to the HANA level.

To be able to access SAP HANA views that have been generated from the BW system, you need the following authorizations:

◉ Object privilege: SELECT on _SYS_BI
◉ Object privilege: EXECUTE on REPOSITORY_REST(SYS)
◉ Package privilege: REPO.READ on the content package where generated SAP HANA views are stored.

External HANA view related TRANSACTION / FIORI URL:-

All transaction details added in previous blog, It’s a same as BW on HANA.

https://<hostname:https port>/sap/bc/ui2/flp?sap-client=<Client number>&sap-language=EN#Shell-home

Assign FIORI roles, SAP_BW4_MODELER, and SAP BW4 REPORTING USER roles to the user so that the user can access FIORI tails.

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

Under data Management Select external Hana view tail

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

Go to general settings

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

Based on SAP default setting need to give HANA package name as system-local.bw.bw2hana

It will allow the Application layer to create all external Hana views under system-local.bw package.

Check the entry in the RS2HANA_VIEW_SET table.

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

Changing an existing package is only possible if the HANA package is empty.

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

The below option can be checked based on functional requirements.

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

Assignment Type:-  SAP provides 2 assignment types on BW4hana and based on your selection external Hana view roles will be created at the HANA DB level.

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

I preferred D direct assignment as it required only one global role and additional analytical privileges will generate based on infoprovider external Hana view.

If you will use Assignment M it will generate par BW4HANA DB user role, for example, if you have 2000 users it will generate 2000 roles as below format.

bw2hana/<ABAP_Schema>_SAP_BW_MODEL_GENERATION_username :- if assignment type is ‘M’

bw2hana/<ABAP_Schema>_SAP_BW_MODEL_GENERATION :- GLOBAL Role

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

We have 2 options in BW4hana for AP generation, S and U.

Multiple BW4HANA

If multiple BW4HANA systems share on HANA instance, it is mandatory to set a different package in each system.

Generate external HANA view with ADSO

For NW 7.5 SP7 all development supported by eclipse.

This step purely for the functional team, they can follow the below link and enable external HANA view from eclipse.




Sync new HANA user role from BW4HANA application

Click on analytic privileges to remove and add HANA DB roles analytical privileges for specific BW4HANA objects.

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

The detailed analysis we can enable below expert mode settings: –

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

Check external HANA view from Application and DB level:-

Click on object name and click on check view consistency,

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

DB level check views on below location, All BW4HANA external HANA views will be created under the system-local package as we placed the parameter under RS2hana_admin.

SAP HANA Exam Prep, SAP HANA Career, SAP HANA Learning, SAP HANA Skills, SAP HANA Jobs

Advantages:-

◉ Allows access to BW4HANA data via SQL front ends.
◉ All applications that can read SAP HANA views can process the data easily for External views
◉ The advantage of running the query which is executed on the SAP HANA view retrieves the data directly from SAP HANA, without accessing the BW4HANA system at all.
◉ Data can be viewed by Excel and other tools via DB

No comments:

Post a Comment