Professional Documents
Culture Documents
Implementing SAP
HANA: Planning,
Scoping, Staffing,
Budgeting, and
Execution
Dr. Berg
Comerit
© Copyright 2014
Wellesley Information Services, Inc.
All rights reserved.
In Part 2 of The Session
1
What We’ll Cover
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
2
Background
HANA projects should think big and act small. After the installation project
is ended, what do you plan on deploying in terms of new capabilities?
3
Inside SAP HANA — In-Memory Computing Engine
(ICME)
Load
Replication Server
Controller
Inside the Computing Engine of SAP HANA, we have many different components
BusinessObjects Data Services
that manage the access and storage of the data. This includes MDX and SQL
access, as well as Load Controller (LC) and the Replication Server.
4
What We’ll Cover
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
5
Tables Inside HANA Viewed Using HANA Studio
We can view table definitions and data inside HANA Studio. This
includes SAP BW tables, ERP tables, and tables we created ourselves. 6
Creating an Attribute View
7
Adding Table Joins to More Customer Information
Sometimes, we don’t
want to give access to
everything available in
the tables.
We can then decide
what fields are
available to the users
(these are flagged
with orange balls)
10
Validate and Activate a View
11
Creating an Analytical View
12
Data Foundations and Logical Joins
• The resulting
models in the
view can be
further refined by
controlling what
is exposed to the
end users
• We call the
transaction-
oriented data the
“data foundation”
and can link
other attribute
views to this
13
Adding a Calculated Field to an Analytical View
14
Multi-Currency Handling
15
The Resulting Analytical View
Views are found in the navigator section of the modeler inside HANA Studio. You
can preview the results and also view metadata about the view and its definition.
16
Deploying Analytical View in BO Explorer
The SAP
BusinessObjects
tools can easily
access the views
inside HANA
17
Accessing the View Through an Information Space
19
HANA Development Demo Step-by-Step
In this demo, we will look at our example in more detail and also see how to load data
to our HANA system using SAP Data Services
20
SAP HANA — Some of the Front-End Connections
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
22
New Business Content Optimized for BW on HANA
Using the new Operational Data Provisioning (ODP) we can also remove the
need for PSAs, thereby simplifying data architectures and reduce data latency24
SAP HANA and BW 7.4 — Open ODS View
• For BW 7.4, we get a new object called an Open ODS View
• This new object allows us to include external data models in BW and
to query BW and non-BW data in a single BEx query
In the past, BW has been criticized for the complexity to integrate non-BW data in an EDW.
The new Open ODS view and the new CompositeProvider solves most of these issues. 25
Cool New Feature: Automatically generate HANA
Models from BW
Others are
available
for
traditional
RDBMs
This is an
overview
of what is
available
for HANA
and non-
HANA
BWs
27
• For more on this and an in-depth view of the new BW 7.4 features,
join me at:
28
What We’ll Cover
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
29
The SAP_BW_HOUSEKEEPING Task List
• If you are on 7.0 SP32 of higher, you can generate an SAP BW Housekeeping task
list and get automated help in cleaning the system weeks before upgrading it
1. Checks BW metadata with DDIC 7. Re-assign requests written into the incorrect PSA partition
2. Delete RSTT traces 8. Verify DataSource segments assignment to PSA
3. Delete BW statistical data 9. Deletes the entries no longer required in table RSIXW
4. Delete Aggregate data via deactivation 10. Clear all OLAP Cache parameters
5. Ensure partitioned tables are correctly 11. Repair InfoCube fact table indices at Data Dictionary level
indexed for PSA 12. Reorganize and delete bookmark IDs & view IDs
6. Ensure request consistencies in the PSA
You first have to install the program from SAP Note 1829728 before you can
generate the SAP_BW_HOUSEKEEPING task list using tcode STC01 30
The SAP_BW_BEFORE_UPGRADE Task List
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
32
Pre-Steps — Cleaning up Your BW System
1. Clean the Persistent Staging Area (PSA) for data already loaded to DSOs.
2. Delete the Aggregates (summary tables). They will not be needed again.
3. Compress the E and F tables in all InfoCubes. This will make InfoCubes
much smaller.
4. Remove data from the statistical cubes (they start with the technical
name of 0CTC_xxx). These contain performance information for the BW
system running on the relational database. You can do this using the
transaction RSDDSTAT or the program RSDDSTAT_DATA_DELETE to
help you.
5. Look at the log files, bookmarks, and unused BEx queries and templates
(transaction RSZDELETE).
6. Remove as much as possible of the DTP temporary storage, DTP error
logs, and temporary database objects. Help and programs to do this
are found in SAP Notes 1139396 and 1106393.
34
12 Pre-Steps — Cleaning up Your BW System (cont.)
9. Remove data in unused DSOs, InfoCubes, and files used for staging in
the BW system. This includes possible reorganization of master data
text and attributes using process type in RSPC.
35
12 Pre-Steps — Cleaning up Your BW System (cont.)
10. You may also want to clean up background information stored in the
table RSBATCHDATA. This table can get very big if not managed. You
should also consider archiving any IDocs and clean the tRFC queues.
All of this will reduce the size of the HANA system and help you fit the
system tables on the master node.
11. In SAP Note 706478, SAP provides some ideas on how to keep the
Basis tables from growing too fast in the future; if you are on Service
Pack 23 on BW 7.0 or higher, you can also delete unwanted master
data directly (see SAP Note: 1370848).
36
A Tool to Help to Migrate and Clean Up
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
40
BW Transformation Finder
• Some custom data transformations in SAP BW can be sub-optimally
written and have negative impact on HANA performance
43
BW 7.4 DSOs and Re-Conversion of DSOs
44
Converting InfoCubes and/or Data Flows
• While not required, InfoCubes can be
optimized further for HANA performance
• This basically means “flattening” the
data structures and removing the
dimensions in BW from the physical
layer (they still look as if they exists)
Many refer to this optional step as a “functional migration” and do this after the HANA
migration has been completed, often as a separate initiative (see SAP Note 1849497)
PS! Optimization of DSOs are no longer reccomended 45
Converting InfoProviders and/or Data Flows
• You start the upgrade by The Direct Migration Option (DMO) for
executing the transaction upgrading BW and moving to HANA at the same
/ASU/START (see SAP Note time also uses these task lists and the ASU
1000009) Toolbox. DMO is an option in the SUM tool.
47
What We’ll Cover
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
48
Direct Migration Option (DMO)
DMO is a key option in the Software Update Manager (SUM), for those with
older, out-of-date, BW systems that want to migrate to HANA. 49
Creating a DMO Migration Run-Book
• The best way to approach this is to start with
the sandbox system and create a runbook with
step-by-step lists on how each problem and
software task are created. It is not unusual to
have a 90-100 page word document with screenshots and
documentation at the end of this first migration.
• The “runbook” is the key to success. You should build on this when
you migrate to the Development and then the QA and the Production
systems
• DMO started supporting Unicode conversions at the end of 2013 and is
now in “controlled availability,” but with SAP approval you can use it
now
5.3
Unicode checks in DMO
Re-check consistency between DB & DD
13
14
is already in-place. Thankfully, SAP provides 5.4
5.5
Run report UCCHECK
Conversion of customer-defined code pages
14
15
programs to help you with these to check the config. 5.6 Pre-conversion correction of table data BDCP* 16
5.7 Consistency check for cluster tables 17
5.8 Check installed langauges 18
5.9 Check tables TCPDB and TCP0I 18
5.10 Run Program TWTOOL01 to find Match Code IDs 18
5.11 Run report RSCPINST 19
• If
we want to make changes to the shadow
6.16 Error with DB view ZCUST_SALES 62
6.17 Migration uptime phase 66
6.18 Prepare for downtime 70
• After
the tables have been created in the 6.13
6.14
Extend tablespaces
Extend PSAPTEMP
58
58
6.15 Post processing phase 60
• We now have to lock down the system and stop all jobs and access
6.0 Software Update manager (SUM) and Direct Migration Option 35
6.1 Extract SUM-DMO 35
6.2 Create a softlink to HANA Client 35
6.3 Configure SAP Host Agent 35
6.4 Adjust DMO parameter file 35
6.5 Launch SUM-DMO 36
6.6 Extraction phase 37
6.7 Configuration phase 42
6.8 Check BW standard RFC 43
6.9 Check whether DMO created schema on HANA 47
6.10 Checks phase 52
6.11 Error with Partitioned DSOs at DB level 54
6.12 Error with inactive transfer rules in RSUPGRCHECK 58
6.13 Extend tablespaces 58
6.14 Extend PSAPTEMP 58
6.15 Post processing phase 60
6.16 Error with DB view ZCUST_SALES 62
6.17 Migration uptime phase 66
6.18 Prepare for downtime 70
6.19 Suspend batch jobs program BTCTRNS1 70
6.20 Check users in AL08 71
6.21 Check jobs running 71
6.22 Confirm backup 72
6.23 Confirm prepare completed 73
6.24 Starting migration 73
6.25 Error when RFC dedisnation for FINBASIS is not available 74
6.26 Error for D version update rules 76
6.27 Error during execution of RDDEXECL 77
6.28 ASCS Switch 82
6.29 Adapt soft links on the ASCS server 82
6.30 Switch logmode & backup HANA database 83
6.31 Errors reported when restarting SAP 85
6.32 Downtime finished message 85
6.33 PSA post processing has shortdump 86
6.34 DMO Post-processing 87
6.35 Restart RDA DAEMON 88
6.36 SPAU 88
6.37
6.38
Error in DB Check
Update finished
62
89
91
A 108 Step Example of a DMO Migration Runbook (cont.)
this phase.
6.21 Check jobs running 71
6.22 Confirm backup 72
6.23 Confirm prepare completed 73
6.24 Starting migration 73
6.25 Error when RFC dedisnation for FINBASIS is not available 74
6.26 Error for D version update rules 76
6.27 Error during execution of RDDEXECL 77
6.28 ASCS Switch 82
6.29 Adapt soft links on the ASCS server 82
6.30 Switch logmode & backup HANA database 83
6.31 Errors reported when restarting SAP 85
6.32 Downtime finished message 85
6.33 PSA post processing has shortdump 86
6.34 DMO Post-processing 87
6.35 Restart RDA DAEMON 88
6.36 SPAU 88
6.37
6.38
Error in DB Check
Update finished
66
89
91
A 108 Step Example of a DMO Migration Runbook (cont.)
• We
are now ready to access the HANA system and all post-
processing tasks have been completed
6.0 Software Update manager (SUM) and Direct Migration Option 35
6.1 Extract SUM-DMO 35
6.2 Create a softlink to HANA Client 35
6.3 Configure SAP Host Agent 35
6.4 Adjust DMO parameter file 35
6.5 Launch SUM-DMO 36
6.6 Extraction phase 37
6.7 Configuration phase 42
6.8 Check BW standard RFC 43
6.9 Check whether DMO created schema on HANA 47
6.10 Checks phase 52
6.11 Error with Partitioned DSOs at DB level 54
6.12 Error with inactive transfer rules in RSUPGRCHECK 58
6.13 Extend tablespaces 58
6.14 Extend PSAPTEMP 58
6.15 Post processing phase 60
6.16 Error with DB view ZCUST_SALES 62
6.17 Migration uptime phase 66
6.18 Prepare for downtime 70
6.19 Suspend batch jobs program BTCTRNS1 70
6.20 Check users in AL08 71
6.21 Check jobs running 71
6.22 Confirm backup 72
6.23 Confirm prepare completed 73
6.24 Starting migration 73
6.25 Error when RFC dedisnation for FINBASIS is not available 74
6.26 Error for D version update rules 76
6.27 Error during execution of RDDEXECL 77
6.28 ASCS Switch 82
6.29 Adapt soft links on the ASCS server 82
6.30 Switch logmode & backup HANA database 83
6.31 Errors reported when restarting SAP 85
6.32 Downtime finished message 85
To use the tool, you will have to be on HANA 1.0 Service Pack 5 and BW version 7.3
Service Pack 6 or higher. More details are available in SAP Note 1663501.
68
After Migration — Optimize Database with
Secondary Indexes
While HANA is much faster than a traditional database, it also can be performance
tuned even faster (this is not normally required as part of typical HANA migration)
69
After the Migration — Table Consistency Checks
• The BW Migration
cokpit also
provides
information on
new updates,
documentation
and also
additional
information links
for SAP HANA.
71
What We’ll Cover
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
72
An Example of a Mid-Sized (10 TB) HANA
DMO Migration Plan
Nov-13 Dec-13 Jan-14 Feb-14 Mar-14 Apr-14 May-14 Jun-14 Jul-14 Aug-14 Sep-14 Oct-14 Nov-14 Dec-14
12-May
19-May
26-May
10-Mar
17-Mar
24-Mar
31-Mar
16-Dec
23-Dec
30-Dec
11-Nov
18-Nov
25-Nov
11-Aug
18-Aug
25-Aug
15-Dec
22-Dec
10-Nov
17-Nov
24-Nov
10-Feb
17-Feb
24-Feb
15-Sep
22-Sep
29-Sep
14-Apr
21-Apr
28-Apr
13-Oct
20-Oct
27-Oct
13-Jan
20-Jan
27-Jan
16-Jun
23-Jun
30-Jun
5-May
14-Jul
21-Jul
28-Jul
4-Nov
3-Mar
3-Nov
3-Feb
1-Sep
8-Sep
2-Dec
9-Dec
4-Aug
1-Dec
8-Dec
2-Jun
9-Jun
7-Apr
6-Oct
6-Jan
7-Jul
Project
BW/HANA Transformation
Install PCA & SAP notes
BEx Queries 3x to 7x
Analysis Authorizations 3x to 7x
Project DMO
Setup Go / No Go
DMO
Migration Prep
Test 1
DMO Functional & Technical
Test 2 Tests
DEV Migration BWD BDH DEV Functional & Production
HANA & CI Prep Migratio Technical Tests Go / No Go
Delivered
Foundation QA Migration BWQ BQH Functional & Technical User
HANA & CI Prep Migratio Tests cut-over
Delivered
Pre-Prod PRD BHH
Migration Delta Cutover
HANA & CI Dry #1 Perfor. Test
Go / No Go
Delivered Migratio PRD
Delta
PRD n Prep Dry # 2
HANA & CI
Migratio PRD Oct Decommission
Delivered Delta
n Prep Migratio close Oracle landscape
This
DataMart other sources
Data
Transformation Design To-Be Transformations
Conversion
73
An Example of a Very Large (40 TB) HANA Migration Plan
Jul-13 Aug-13 Sep-13 Oct Nov-13 Dec-13 Jan-14 Feb-14 Mar-14 Apr-14 May-14 Jun-14 Jul-14 Aug-14 Sep-14 Oct-14 Nov-14 Dec-14
12-May
19-May
26-May
10-Mar
17-Mar
24-Mar
31-Mar
12-Aug
19-Aug
26-Aug
16-Dec
23-Dec
30-Dec
11-Nov
18-Nov
25-Nov
12-Aug
19-Aug
26-Aug
16-Dec
23-Dec
11-Nov
18-Nov
25-Nov
16-Sep
23-Sep
30-Sep
10-Feb
17-Feb
24-Feb
16-Sep
23-Sep
30-Sep
14-Apr
21-Apr
28-Apr
14-Oct
21-Oct
28-Oct
14-Oct
21-Oct
28-Oct
13-Jan
20-Jan
27-Jan
10-Jun
17-Jun
24-Jun
5-May
15-Jul
22-Jul
29-Jul
15-Jul
22-Jul
29-Jul
4-Nov
3-Mar
4-Nov
2-Sep
9-Sep
3-Feb
2-Sep
9-Sep
5-Aug
2-Dec
9-Dec
5-Aug
2-Dec
9-Dec
3-Jun
7-Apr
7-Oct
7-Oct
6-Jan
1-Jul
8-Jul
1-Jul
8-Jul
Project
BW/HANA Transformation
USF CAT
Structured
Walkthru
Project Planning Migratio Optimized Data model - SD4
Dev
Build in Dev DD4
Migratio
Hana Appliances:
#1 15TB Appliance Pa DEV DD4 + PSU ZD4 + DR (assuming not Hot Standby)
This very large 110+ TB system with NLS and substantial complexity
was moved in less than 5 days in the final test migration 74
What We’ll Cover
• Background
• The standalone HANA project: Creating views and tables
• SAP NetWeaver BW 7.4 on HANA – New features
• Preparing for the BW upgrade and HANA migration
• Cleaning up existing BW system and reducing HANA size
• BW transformation and HANA optimization
• Demo of non-BW HANA development
• The Direct Migration Option (DMO) for BW
• Project execution examples
• Wrap-up
75
Where to Find More Information
• www.sap-press.com/products/SAP-HANA%3A-An-Introduction-
(2nd-Edition).html
Bjarne Berg and Penny Silvia, SAP HANA: An introduction, SAP
Press; 2nd edition (May 1, 2013)
• http://www.saphana.com/welcome
SAP’s main page for all SAP HANA related information
• http://www.saphana.com/community/try
Powered by HANA demos Dr Berg: I wasn’t able to see
the BW powered by HANA
• http://scn.sap.com/community/netweaver-bw-hana
demo at this site. Can you
double check? Berg: Fixed
SAP NetWeaver BW Powered by SAP HANA Community
76
7 Key Points to Take Home
SAP, R/3, mySAP, mySAP.com, SAP NetWeaver®, Duet™®, PartnerEdge, and other SAP products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and
service names mentioned are the trademarks of their respective companies. Wellesley Information Services is neither owned nor controlled by SAP.
79