Vous êtes sur la page 1sur 34

Deploy RDS Models in SAP HANA Studio

for Operational Reporting


Brindha Raman

LEARNING POINTS

 Step by Step RDS models implementation


 Overview of BI reporting tools
 Best Practices and Lesson Learned at Tesoro

TESORO

Tesoro Corporation, a Fortune 150 company, is an independent refiner and


marketer of petroleum products. Tesoro, through its subsidiaries, operates
seven refineries in the western United States with a combined capacity of
approximately 675,000 barrels per day. Tesoro's retail-marketing system
includes over 1,375 branded retail stations, of which over 590 are company
operated under the Tesoro, Shell and USA Gasoline brands. The seven
refineries are located in:
 Anacortes, Wash.
 Mandan, N.D.
 Kapolei, Hawaii
 Martinez, Calif.
 Kenai, Alaska
 Salt Lake City, Utah
 Wilmington, California

HANA Overview

Pre-import configuration (HANA Studio)









Set display perspective


Generate Time Dimension
Define SAP schema
Data Dictionary Tables
Schema Validation
Authorization Roles
Schema Mapping

Set display perspective




Choose Start -> All Programs -> SAP HANA -> Studio to open SAP HANA
studio.
In HANA Studio -> Window menu-> Open Perspective and choose Modeler

Generate Time Dimension


Quick Launch tab -> Data -> Generate Time Data.
In the Generate Time Data dialog, input following values
Field

Value

Field

Value

Calendar Type

Gregorian

Calendar Type

Fiscal

From Year:

1995

From Year:

1995

To Year:

2020

To Year:

2020

Granularity

Day

Variant

K4:010

To confirm the time generation:


Check table M_TIME_DIMENSION* (Schema: _SYS_BI)
Check table M_FISCAL_CALENDAR (Schema: _SYS_BI)

Generate Time Dimension (contd)

Define SAP schema

In SLT system -> Transaction: LTR -> New

Number of Replay Jobs: The jobs that will be used to retrieve data, as a basic starting point you should configure 1 job per 20
tables

Data dictionary tables

Validate data dictionary tables and automatically generated tables


 Expand the newly created schema -> Tables
 Following tables should exist:

DD02L

DD02T

RS_LOG_FILES

RS_MESSAGES

RS_ORDER

RS_SCHEMA_NAME

RS_STATUS

Schema Validation




Schema SYS_REPL -> Tables -> RS_REPLICATION_COMPONENTS


Right click -> Open Data Preview

Authorization Roles






HANA instance -> Security -> Users


Open the HANA User you want to assign the roles
In the Granted Roles tab, click on add sign and the add role dialog pops up
Save and Deploy

Schema Mapping


Quick Launch tab -> Setup -> choose Schema Mapping -> Add
Field
Value
Authoring Schema SAP_ERP
Physical Schema
<schema>

Check table M_SCHEMA_MAPPING (Schema: _SYS_BI)


to validate schema mapping.

Import models









Download RDS package


Replicate SAP tables
SQL script
Import and Activate HANA Models
Validate Models
Configuration parameter
Delivery Unit

Download RDS package




Go to Link: https://websmp109.sap-ag.de/swdc
Navigate to:

Installation and Upgrades


Browse our Download Catalog
SAP Rapid Deployment solutions
SAP HANA Operational Reporting rapid-deployment solution
SAP HANA CONTENT V3 (or latest)
Installation
Download object

In the downloaded folder, open RDS_OA_HANA10_intro.html -> Click


Solution Details (to open PPT) -> Open attached excel on slide 43
(Technical mapping of modes/reports). These 2 tabs are very important:

Tables Needed (Required for Table replication slide)


Specific Tables (Required for SQL script slide)

Replicate SAP Table







Quick Launch tab -> Data -> choose Data Provisioning


Select: Replicate
Select tables (from the downloaded file)
Add -> Choose Finish to replicate all the tables
Monitor Status and reprocess any errors

SQL Script

SQL script for customization of HANA specific tables


(domain tables from ECC)
 Quick Launch tab -> Data -> choose SQL Editor
 Paste the SQL script (from the downloaded file)
 Replace <schema> with your schema name (ctrl + F)
 Click Execute (F8)
 Check log: Success message in black and error in red.

Import and Activate HANA Models






Quick launch tab -> Content -> Choose Import


Expand SAP HANA Content and select Delivery Unit
Click on Next, in the Import Models dialog, set the following values:
Field name
Select file
Select the filename
Overwrite inactive versions
Activate objects

User action and values


Client
*.tgz (downloaded file)
Checked
Checked

Check Job log


Running ----> Completed Successfully

Validate model

In the navigator panel, expand the schema ->


Content -> sap -> ecc

Configuration parameter




Navigation tab -> double click on schema -> Configuration tab -> filter
content
Define contect_vendor

Delivery Unit





Quick launch tab -> Setup -> Delivery Unit


Delivery unit -> Create -> Enter Name and Responsible
Assigned Package -> Add -> Select package (sap) -> Finish

Modify RDS model





In the navigator panel, expand schema -> Content -> sap -> ecc -> select
model -> right click -> open
To edit model click on Switch version -> Edit imported model
Make changes - > Validate -> Save and Activate

Modify RDS model (contd)

BOBJ configuration

 HANA Client
 HANA connection for BI reporting
 SAP BO-BI tools Overview

HANA Client




Install HANA Client


Copy "ngdbc.jar"
From C:\Program Files\SAP\hdbclient
To C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise
XI 4.0\dataAccess\connectionServer\jdbc\drivers\newdb
This will enable BusinessObjects 4.0 client software to communicate with
HANA.
(If you don't have BusinessObjects 4.0 client software, skip this step)

HANA connection for BI reporting






Open Information Design Tool (IDT) -> Create new project -> Create new
relational connection -> Enter name for HANA connection -> Click Next
Select "SAP" -> "SAP HANA database 1.0" -> "JDBC Drivers" -> Next
Enter required fields for user name, password, and server for HANA
Change the Connection Pool Mode to "Disconnect after each transaction"
then Click "Finish"

HANA connection for BI reporting (contd)





Connection will be saved as .cnx in your Project.


Right-click connection -> Publish Connection to a Repository
Select folder and Click Finish

HANA connection for BI reporting (contd)




Connection is now created under the folder you selected


This connection can be used to create following on HANA models:
universe, explorer view, analysis, crystal etc

SAP BO-BI tools

Skill and Team

 Full time resources:


1.
2.
3.

Developer: for modeling (HANA Studio)


Basis: for replication system (SLT)
Security: for roles and authorization

 Required skill set:


1.
2.
3.

SQL
SAP BW / Data Warehouse concept
Basic SAP ECC

KEY LEARNINGS




Start table replication based on size (larger to smaller)


Initiate parallel processing during replication based on number of records
 Divide # of records by 5 to decide records / package

Time generation reduce the range for year based on granularity


 By day Range = 30 years; by Hour Range = 10 years






To enhance RDS model, copy it into a different package and then make
changes
If you have less space in non-prod HANA database, you can filter the data
in table in SLT system (based on year)
Upgrade / play with BI tools before HANA implementation
Set Schema name as ECC system + client (example QC6010)

BEST PRACTICES




Have a war room for non-prod and prod implementation. Involve all teams
in every activity because responsibilities are interdependent.
Client team must shadowing the consultants during RDS implementation.
 It helps a lot in learning and understanding the HANA studio.
 SAP publish improved RDS and you might have to re-import the newer
version.
Table replication takes a week (depending on the data in source), so plan
security task in parallel with replication

THANK YOU FOR PARTICIPATING


Please provide feedback on this session by
completing a short survey via the event mobile
application.
SESSION CODE: 4003
For ongoing education on this area of focus,
visit www.ASUG.com

Vous aimerez peut-être aussi