Berg 2016 Advancedperformanceoptimization v2

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 53

Advanced Performance Optimization with SAP

BW 7.3 and SAP BW 7.4

Dr. Bjarne Berg


COMERIT Produced by Wellesley Information Services, LLC, publisher of SAPinsider. © 2016 Wellesley Information Services. All rights reserved.
In This Session

• Get practical tips and techniques for maintaining and cleaning an SAP BW system for
optimal performance, including PSA optimization, compression, maintaining statistical
cubes, and controlling growth, reducing log file sizes, removing DTP temporary storage,
DTP error logs, and temporary database objects

• Reduce the size of an SAP BW system by as much as 70% by taking steps such as
removing PSAs, aggregating, and optimizing InfoCubes, and implementing the new
LSA++ architecture

• See how to clean batch tables and reduce the footprints of un-needed data

• Learn how to take advantage of new performance features in SAP BW 7.3 and BW 7.4

1
What We’ll Cover

• SAP BW 7.3 performance basics


• Housekeeping tasks in SAP BW 7.3 and 7.4
• Demo: Optimal SAP BW 7.4 on HANA performance
• 12-step pre-HANA migration cleanup tasks
• Demo: SAP BW 7.4 performance monitoring
• BW optimization after HANA migration
• LSA vs. LSA++ optimization and SPOs
• Wrap-up

2
BW 7.3 (Non-HANA) InfoCube Design — Line Item Dimensions

• Line item dimensions are basically fields that


are transaction-oriented
• Once flagged as a line item dimension, the field
is actually
stored in the fact table and has no table joins

Source: SAP AG

• This may result in improvements to query speeds for cubes not in BWA or HANA

Explore the use of line item dimensions for fields that are frequently
conditioned in queries. This model change can yield faster queries.
3
BW 7.3 (Non-HANA) InfoCube Design — High Cardinality Flags
• High-Cardinality flag for large InfoCubes with more than 10 million rows
Entries in dimension
InfoCube Number of rows compared for F table
FIUC_C03 12,859,780 37%
ZGAT_C01 20,793,573 46%
FIIF_C02 68,090,967 102%
FIGL_C01 156,738,973 88%
• At this company there were 11 InfoCubes with a ratio of more than 30% of the records in the dimensions vs.
fact table
• SAP recommends for Indexing and performance reasons to flag these as “high-cardinality” dimensions.
However, it has minor impact to smaller cubes.
• In this example, there were four medium and large InfoCubes that are not following the basic design
guidelines, and subsequently had slow performance

Many companies should redesign large InfoCubes with high-cardinality


to take advantage of the standard performance enhancements available
4
BW 7.3 (Non-HANA) DSO Design and Locks on Large Oracle
Tables
In this example, many of the very
large DSOs are not partitioned, and DSO Number of Records
425

several objects have over 250 million 400


375
350
records 325
300

Millions
275
250
Additionally, 101 DSO objects were 225
200
flagged as being reportable. This 175
150
125
resulted in System IDs (SIDs) being 100
75
created during activation. 50
25
-

Combined, these resulted in frequent


locks on the Oracle database and
failed parallel activation jobs

Partition DSOs. The lock on very large DSOs during parallel loads are well known and SAP has issued
several notes on the topic: 634458 “ODS object: Activation fails – DEADLOCK” and 84348 “Oracle deadlocks, ORA-00060.”
5
The BW 7.3 DataFlow Generation Wizard

• SAP BW 7.3 has a new, step-by-step wizard that allows


you to generate data flows from flat files or existing data
sources

• A great benefit is that the wizard works


against any InfoProvider; i.e., you can
use the wizard to create loads from
DSOs to DSOs or InfoCubes

This wizard reduces the number or manual steps needed to load data. It also simplifies
the development process and makes ETL work much easier.
6
Database Performance (Non-HANA Systems)

• Database statistics are used


by the database optimizer to
route queries. Outdated statistics
leads to performance degradation.

• Outdated indexes can lead to very poor search performance in all queries where
conditioning is used (i.e., mandatory prompts)
• The current sampling rates for this example were too low, and statistics should only be
run after major data loads, and could be scheduled weekly

For many systems, database statistics are outdated and may cause database performance to
perform significantly poorer than otherwise would be the case. Sampling should often be
changed and process chains may be re-scheduled.
7
Statistics and Indexes in BW: Top-10 InfoCubes Performance
In this real example, several of the largest InfoCubes have outdated Database statistics, which
may lead to sub-optimal performance. These should be updated as soon as possible.

DB Total
Technical DB Aggregate
Name Statistics Records
Name Indexes Indexes
(Oracle) (fact & dim)
Billing Conditions PCSL_010 205,802,748
HR Costs & Allocations PCCO_010 202,781,814
Sales Analysis PCSL_001A 199,642,247
Front-End and OLAP Statistics (Details) 0TCT_C02 111,585,386
Daily Shipment Analysis PCSL_C04 94,610,212
Billing Item PCSL_018 91,959,664
Sales and Margin Analysis 4 PCSL_022 60,395,396
PCBP: Cost Object Controlling PCCO_007 53,876,090
Benefits - Historical Months 0PABN_C01 52,800,098
Purchasing Data 0PUR_C01 50,190,148

Updating DB stats can be done in a weekly job that runs ever weekend.
8
Another example: Global Cache and Query performance
Today over 40% of all queries access the
database instead of the cache. This means
that the ‘cache hit-ratio’ is only 60%.

That ratio is very low, and can be improved


upon by changing the size of the cache on
the server

In the last month, the system had 31,955 query execution, of which 12,782 queries accessed
the database instead of the cache. If the hit-ratio is improved by 20%, it would result in
almost 59 minutes of less total wait times per day for the users.

BW comes with the default setting of 100 MB for local cache and
200 MB for global cache. 9
The OLAP Memory Cache Size Utilization

• A global cache size of only 200 MB


(default setting) is too small. Most
companies increase this to 400 MB.

• The settings can be changed in


RSCUSTV14.

• Unfortunately, in this example someone


has decreased the global cache setting The decreased cache size may result in
from 200 MB to 136MB in the production lower hit-ratio, since the cache results gets
system, instead of increasing it ‘invalidated’ once the max size is filled.

10
Changing the Cache Size

The size of OLAP Cache is also


physically limited by the amount of
memory set in system parameter
rsdb/esm/buffersize_kb.

The settings are available in


RSPFPAR and RZ11.

Since the global cache size is a logical value and the Export/Import SHM gives a physical limit, and
also considering that other applications (such as BCS) might use the Export/Import SHM, SAP
recommend to set the global cache parameter maximally to 90% of the Export/Import SHM buffer.
11
Example: Query Performance of most used InfoCubes

While many SD query executions are very fast (13-14 seconds), other reports in
Finance and Inventory Management is very slow
12
Example: Query Performance – 4,300 reports per month
Current with SAP BW on Oracle BW on HANA DB
Reporting Current total
Number of Avg. Avg. Time Avg. Time Est. query
Interface time spent Savings
Query Runtime DB [sec] OLAP execution time
waiting (hrs (hrs per year)
executions [sec] [sec] [sec] with HANA (sec)
per year)
Settings: BEx Broadcaster 220 45.22 32.20 9.86 33.16 8.00 27.29
Queries: BEx Web (JAVA) 2,809 44.88 31.90 8.45 420.23 7.00 354.68
Queries: BEx Web (ABAP) 1,261 15.51 9.32 1.73 65.19 5.00 44.18
Total Hrs saved 426.15

Of the total queries executed in the system in April-May 2015, 4,075 were from end-users.
The average query run-time took 39.7 seconds, while some reports took 8-9 minutes to run.

Of the slowest interface, the reports in BEx Web Java was executed 2,809 times and took an
average of 45 seconds to execute. In an HANA environment, the same query would have
completed in an estimated time of 7 second.

Installing HANA could result in 426 hours less waiting for


reports by the business users each year
13
Another Example: Query Performance - Details
1,095 query executions took over 69.9 seconds to execute.
The daily inventory report, which is run 7 times each workday takes 2.5 min.
Number of Avg. Avg. DB Avg. Avg. Avg. Time
InfoCube Query name Query runtime time OLAP Frontend Others/
Executions sec. sec. time sec. time sec. RFC sec. Interface
YF_COPAM1 YYF_COPAM1Q_NONMETRIC_USD_TR 35 620.82 2.84 7.59 603.12 147.21
0IC_C03 Y0IC_C03Q_DAILY_INVENTORY 150 149.95 74.70 27.09 16.27 26.33
YF_COPAM2 YYF_COPAM2Q_DET_NOMET_USD_ASIS 112 131.4 42.82 6.28 38.48 62.50
BEx 3.x (ABAP)
YO_AISO YYO_AISO_SLSORDER_ITEM_STATUS 160 128.85 36.36 2.54 16.20 62.62
YF_ARLIM1 YYF_ARLIM1Q_AGING_16_REV 195 117.35 0.76 1.25 85.39 14.81
YYF_COPAM1Q_SLSTRN_NOMETRICUSD 417 69.65 2.33 4.24 52.66 20.63
YYF_COPAM1Q_METRIC_USD_TR_QV2 240 56.16 30.58 7.61 1.48 14.48 BEx Web 7.x (JAVA)
YF_COPAM1
YYF_COPAM1Q_SLSCMP_NOMETRICUSD 567 48.9 4.96 3.79 24.67 19.85
BEx 3.x (ABAP)
YYF_COPAM1Q_PASUMM_NOMETRICUSD 706 47.46 4.02 5.47 2.67 16.42
YF_COPA1 YZILL_COPA_ODS_DIR 616 41.35 39.37 1.48 0.30 -
0IC_C03 Y0IC_C03Q_009 588 39.87 12.96 21.23 1.76 2.48
BEx Web 7.x (JAVA)
YF_CCAM1 YYF_CCAM1Q_ACT_PLAN_PERIOD_QV 331 35.76 2.76 27.02 2.95 0.07
YF_COPAC7 YYF_COPAC7_METRIC_USD_TR_QV 724 33.85 3.23 12.62 1.98 13.29
YYF_COPAM1Q_GPS_NONMETRIC_USD 960 19.91 3.36 2.73 5.69 67.35
YF_COPAM1 BEx 3.x (ABAP)
YYF_COPAM1Q_GPS_NONMET_USD_TR 1,135 18.44 2.04 2.21 7.77 10.96
YF_CCAM1 YYF_CCAM1Q_CCA_TREND_PE_RE_QV 564 13.39 1.66 9.00 0.98 0.12
YYO_AISO_SLSORDER_SFA_VALV 2,592 8.3 3.72 3.30 0.37 0.15
YO_AISO YYO_AISO_SLSORDER_SFA_1 2,556 6.78 5.90 0.48 0.05 0.14 BEx Web 7.x (JAVA)
YYO_AISOQ_SO_STATUS_QV 2,556 4.23 3.01 0.43 0.07 0.24
YO_CIDEO YY0_CIDEOQ_SFA_DELV_ITM_WT 9,122 2.92 2.12 0.31 0.04 0.01
14
Temporary Tables and Inconsistencies

There are several temp tables that can be obsolete in the older systems (mostly from
previous jobs and internal reports run).

This could be cleaned up using the program SAP_DROP_TMPTABLES when users and
batch jobs are not running on the system (note: this program will remove all temp tables
except temp hierarchy tables and may stop jobs in-progress). It is therefore
recommended that this is done during a weekend outage.

Once this is done, you could consider running SAP_UPDATE_DBDIFF to clean all
obsolete temporary entries. These two efforts can reduce the BW system size and also
provide for a cleaner environment.

Details on how to remove the temporary tables and entries in


can be found in note number 1139396 15
BI Content Consistency Checks (Optional)
• If you suspect inconsistency in the
BI content, or are planning to
deploy new BI content, you can run
the BI Content Analyzer. This can
be as a transparent table or loaded to a DSO (tcode RSBICA)

• The automated BI Content Analyzer Checks include:


 Inactive Transfer Structure checks
 List of InfoObjects without an InfoObject Catalog
 Inconsistent Roles check
To help plan any
 Routines that refer to fixed, programmed structures testing, get a list of
 Query Elements with Duplicate GUIDs where the objects in
 Several Object Collection Errors the system are used
 Several Object Status checks (SAP Note: 28022)
 Many checks for Inconsistent Naming Conventions

16
SAP HANA and SAP BW 7.4
• For BW 7.4 on HANA, SAP has continued to move more of the process intensive functions
from the application to the DB server

• This takes advantage of the performance improvements of an in-memory DB


• It also reduces the need for data transfers between application and DB server
The benefits of this approach are dramatically faster data activation, data
transformations, and query executions
17
Optimized Transformations and Data Activation
• Activating data for reporting against
the BW NIRV table was a very slow
process in the older BW systems. With
some number range buffering (BW 7.0)
and package fetch (BW 7.3) this was
somewhat improved, but it was still not
extremely fast
• To speed up activation in BW 7.3 on
HANA, and transformations in BW 7.4
on HANA, more of this was moved to
the database layer
• Currently, transformations include
conversions, masterdata reads,
formulas, data mapping, and SQL
scripts using most InfoProviders and
loading to a DSO
18
What We’ll Cover

• SAP BW 7.3 performance basics


• Housekeeping tasks in SAP BW 7.3 and 7.4
• Demo: Optimal SAP BW 7.4 on HANA performance
• 12-step pre-HANA migration cleanup tasks
• Demo: SAP BW 7.4 performance monitoring
• BW optimization after HANA migration
• LSA vs. LSA++ optimization and SPOs
• Wrap-up

19
Pre-Steps — Cleaning Up Your BW System

• You can save significant amounts of work by doing a cleanup effort


before you start your HANA migration or BW upgrade project

• For example, an international company had a BW system with over 108TB, with only
38TB in the production box and the remaining data on their Near-Line Storage (NLS)
solution

• This cleaned BW system saved them potentially millions of dollars in hardware and
HANA licensing costs

It is not unusual to reduce a BW system size by


20-30% during a cleanup effort 20
The SAP_BW_HOUSEKEEPING Task List
• If you are on 7.0 SP32 or 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-assigns requests written into the incorrect PSA partition
2. Deletes RSTT traces 8. Verifies DataSource segment assignment to PSA
3. Deletes BW statistical data 9. Deletes the entries no longer required in table RSIXW
4. Deletes aggregate data via deactivation 10. Clears all OLAP Cache parameters
5. Ensures partitioned tables are correctly indexed for PSA 11. Repairs InfoCube fact table indices at Data Dictionary level
6. Ensures request consistencies in the PSA 12. Reorganizes and deletes bookmark IDs and view IDs

You first have to install the program from SAP Note 1829728 before you can
generate the SAP_BW_HOUSEKEEPING task list using tcode STC01 21
A Tool to Help Migrate and Clean Up

• SAP has created a cockpit to:


 Clean up the SAP BW system
 Reduce system size
 Conduct pre-checks (readiness
checks)
 Size the system
 Find sub-optimal code (i.e.,
transformations)
 Look at table distributions and
loads
• There are over 235 tests in this tool
These tools are thanks to SAP’s Marc Bernard and his team at
SAP Labs Canada

22
More Tips to Make the Database Smaller

• Use write-optimized DSOs as first level data stores. These can


easily be off-loaded out of main memory in HANA and save you money.
• Keep your Persistent Staging Tables (PSA) clean. BTW: The PSA is often not needed at all in
BW 7.4.
• If you are on BW 7.3 Service Pack 8 and HANA with at least Service Pack 5, the write-optimized
DSOs and PSAs are flagged as “early unload” from the HANA memory. This will help you keep
the system smaller and require less memory.
• In HANA 1.0 SP-10 we got dynamic tiring that automatically manages objects in memory/disk
• You can also flag other InfoCubes, DSOs, tables, and partition them
as “not active.” If you do so, they will only be loaded into memory when actually required.

The sizing program in SAP Note 1736976 takes these size savings
settings into account when sizing your HANA system 23
What We’ll Cover

• SAP BW 7.3 performance basics


• Housekeeping tasks in SAP BW 7.3 and 7.4
• Demo: Optimal SAP BW 7.4 on HANA performance
• 12-step pre-HANA migration cleanup tasks
• Demo: SAP BW 7.4 performance monitoring
• BW optimization after HANA migration
• LSA vs. LSA++ optimization and SPOs
• Wrap-up

24
Demo: Optimal SAP BW on HANA Performance

25
What We’ll Cover

• SAP BW 7.3 performance basics


• Housekeeping tasks in SAP BW 7.3 and 7.4
• Demo: Optimal SAP BW 7.4 on HANA performance
• 12-step pre-HANA migration cleanup tasks
• Demo: SAP BW 7.4 performance monitoring
• BW optimization after HANA migration
• LSA vs. LSA++ optimization and SPOs
• Wrap-up

26
12 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.

27
12 Pre-Steps — Cleaning Up Your BW System (cont.)

7. For write-optimized DSOs that push data to reportable DSOs (LSA approach),
remove data in the write-optimized DSOs. It is already available in higher-level
objects.

8. Migrate old data to Near-Line Storage (NLS) on a small server. This will still provide
access to the data for the few users who infrequently need to see this old data. You will
also be able to query it when BW is on HANA, but it does not need to be in-memory.

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.

28
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).

12. Finally, you can use the program RSDDCVER_DIM_UNUSED to delete any unused dimension
entries in your InfoCubes to reduce the overall system size.

29
Deep-Dive: Cleaning Up Your BW System

30
What We’ll Cover

• SAP BW 7.3 performance basics


• Housekeeping tasks in SAP BW 7.3 and 7.4
• Demo: Optimal SAP BW 7.4 on HANA performance
• 12-step pre-HANA migration cleanup tasks
• Demo: SAP BW 7.4 performance monitoring
• BW optimization after HANA migration
• LSA vs. LSA++ optimization and SPOs
• Wrap-up

31
Demo: SAP BW 7.4 Performance Monitoring

In this demo we will explore the BW 7.4 on HANA DBA Cockpit Features

32
Demo: SAP BW 7.4 Performance Monitoring (cont.)

33
What We’ll Cover

• SAP BW 7.3 performance basics


• Housekeeping tasks in SAP BW 7.3 and 7.4
• Demo: Optimal SAP BW 7.4 on HANA performance
• 12-step pre-HANA migration cleanup tasks
• Demo: SAP BW 7.4 performance monitoring
• BW optimization after HANA migration
• LSA vs. LSA++ optimization and SPOs
• Wrap-up

34
Converting InfoProviders 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 exist)

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) 35
HANA Optimized BW 7.4 DSOs and Performance Improvements

• BW optimized DSOs are now created by “default” in HANA

• This means that data activations are done much faster at the HANA database layer
• The change log is kept in a calculation view resulting in smaller DSOs
HANA optimized DSOs are also available for BW 7.3, but now they are created by
default, so do not convert DSOs to HANA-optimized. Fast activation is available for
all standard DSOs without conversion to HANA-optimized.

36
Converting InfoProviders and/or Data Flows

• To help you, the SAP Migration Cockpit also


allows you to migrate your data flows from 3.x to
Data Transfer Processes (DTPs) as used in
versions 7.0 and higher
• If you convert the data flows, you get better
automated data package DTP optimization, which
loads data faster into HANA

• You can also simulate the data flow before you do the real
conversion. When doing so, data is loaded for both versions (3.x
and 7.x) of the dataflows and the results are stored in cluster
tables. The data is then compared to verify that the dataflow after
migration calculates the same data as it did before migration.
• Since the differences are displayed separately, you can analyze the
results and changes in details
37
What We’ll Cover

• SAP BW 7.3 performance basics


• Housekeeping tasks in SAP BW 7.3 and 7.4
• Demo: Optimal SAP BW 7.4 on HANA performance
• 12-step pre-HANA migration cleanup tasks
• Demo: SAP BW 7.4 performance monitoring
• BW optimization after HANA migration
• LSA vs. LSA++ optimization and SPOs
• Wrap-up

38
EDW Design vs. Evolution

An organization has two fundamental choices:

1. Build a new well architected EDW


2. Evolve the old EDW or reporting system

• Both solutions are feasible, but organizations that select an


evolutionary approach should be self-aware and monitor
undesirable add-ons and “workarounds”

• Failure to break with the past can be detrimental to an


EDW’s long-term
success …

39
Data Design The Use of Layered Scalable
Architecture (LSA)

• Since SAP BW 7.3 SP3 we have had a


set of 10 templates to help build a
layered data architecture for large-
scale data warehousing
• The LSA consists logically of:
 Acquisition layer
 Harmonization/quality layer
 Propagation layer
 Business transformation layer
 Reporting layer
 Virtualization layer

40
Example: Current LSA Data Architecture in SAP BW
DATA CORPORATE DATA BUSINESS FLEXIBLE DIMENSIONAL
ERP BW ACQUISITION MEMORY PROPAGATION TRANS. REPORTING REPORTING

Germany Germany Germany Germany

Germany
6 LSA Layers
Europe Europe Europe Europe
(excl.Germany) (excl.Germany) (excl.Germany) (excl. Germany)
Europe
(excl. Germany)

Europe 2 Europe 2 Europe 2 Europe 2

ERP Table
Europe 2

Europe 3 Europe 3 Europe 3 Europe 3

41 total
Transferobjects
Data Source
Rule
Data
Acquisition
Europe 3
Info Source
USA USA USA
USA

USA
Americas 1 Americas 1 Americas 1 Americas 1

Americas 1

8 semantic partitions Americas 2 Americas 2 Americas 2 Americas 2

Americas 2

Asia Asia Asia


Asia

Asia
41
Example: Simplified LSA++ Data Architecture
DATA CORPORATE DATA BUSINESS FLEXIBLE DIMENSIONAL
ERP BW ACQUISITION MEMORY PROPAGATION
TRANS. REPORTING Remove
REPORTING3 LSA layers

ERP Table

41 shrinks to 9
Europe Europe Europe

Data Source
Transfer Rule
Info Source
total objects
Americas Americas Americas

Asia Asia Asia

Remove 5 semantic
partitions

42
EDW — Complex Layered Architectures
Consolidation Processes:

• This BPC on BW system was experiencing substantial load Consolidation Cube


(OC_CON)
1) Clearing
2) Load
performance issues 3) Foreign Exchange
4) Eliminations

• Some of this was due to underlying SAP BW configuration, while 5) Optimizations

some was due to the technical configuration of the data store BPC Staging Cube
(BPC_C01)
architecture and data flow inside SAP BW

GL Summary Cube
(FIGL_C03)
Production Issues included:
1) Dependent jobs not running sequentially,
i.e., load from Summary cube to Staging Conformed
cube is sometimes executed before the Reportable FIGL_D21 FIGL_D20 FIGL_D17 FIGL_D14 FIGL_D18
DSO
Summary cube data is loaded and
activated, resulting in zero records in the Write
Staging cube. Optimized FIGL_D15S FIGL_D13S FIGL_D10S FIGL_D08 FIGL_D11S
DSO

2) Long latency with 6 layers of PSA, DSOs, Persistent Staging Area (PSA)
and InfoCubes before consolidation
processes can be executed. ECC 6.0 ECC 6.0 ECC 4.7 R/3 3.1i ECC 4.7
Asia- North-America Latin-America EU ASIA
Pacific 43
Fixes to Complex EDW Architecture

• The fix to this system included removing the conformed DSO layer, with BEx flags for
DataStores that are never reported on
• Also, the BPC Staging cube served
little practical purpose since the data is Consolidation Processes:

already staged in the GL Summary cube


1) Clearing
2) Load
Consolidation Cube
3) Foreign Exchange
and the logic can be maintained in the (OC_CON)
4) Eliminations
5) Optimizations
load from this cube directly to the
consolidation cube GL Summary Cube
(FIGL_C03)

Long-term benefits included


reduced data latency, faster data Write
Optimized FIGL_D15S FIGL_D13S FIGL_D10S FIGL_D08 FIGL_D11S
activation, less data replication, DSO

and smaller system backups as Persistent Staging Area (PSA)

well as simplified system ECC 6.0 ECC 6.0 ECC 4.7 R/3 3.1i ECC 4.7
maintenance. Asia- North-America Latin-America EU ASIA
Pacific 44
EDW Data Design — Classical Use of MultiProvider Hints in BW
Problem: To reduce data volume in each InfoCube,
data is partitioned by Time period.
2002 2003 2004 2005 2006 2007 2008

A query must now search in all InfoProviders to find


the data. This is very slow.

Solution: We can add “hints” to guide the query execution. In the RRKMULTIPROVHINT table, you can
specify one or several characteristics for each MultiProvider, which are then used to partition
the MultiProvider into BasicCubes.

• If a query has restrictions on this characteristic, the OLAP processor is already checked to see which
part of the cubes can return data for the query. The data manager can then completely ignore the
remaining cubes.

An entry in RRKMULTIPROVHINT only makes sense if a few attributes of this characteristic


(that is, only a few data slices) are affected in the majority of, or the most important, queries
(SAP Note 911939. See also 954889 and 1156681). 45
BW 7.3 and Higher (non-HANA) — Semantic Partitioned Objects (SPO)

• When DataStores and InfoCubes are allowed to grow over time, the data load and query performance
suffers
• Normally objects should be physically partitioned when the numbers of records exceed 100 – 200 million
 However, this may be different depending on the size of your hardware and the type of database you use
• In SAP BW 7.3 we get an option to create a Semantic Partitioned Object (SPO) through wizards
 You can partition based on fields such as calendar year, region, country, etc.

46
Data Design — Semantic Partitioned Objects

• When an SPO is created, a reference structure keeps track of the partitions. The structure is
placed in the MultiProvider for querying.

SPO Wizards create all Data Transfer Processes (DTP), transformations,


filters for each data store, and a process chain
47
What We’ll Cover

• SAP BW 7.3 performance basics


• Housekeeping tasks in SAP BW 7.3 and 7.4
• Demo: Optimal SAP BW 7.4 on HANA performance
• 12-step pre-HANA migration cleanup tasks
• Demo: SAP BW 7.4 performance monitoring
• BW optimization after HANA migration
• LSA vs. LSA++ optimization and SPOs
• Wrap-up

48
Where to Find More Information

• Bjarne Berg and Penny Silvia, Introduction to SAP HANA (3rd Edition) (SAP PRESS,
2014).

• http://scn.sap.com/docs/DOC-35096
 Michaela Pastor, “SAP Business Warehouse 7.4” (SCN, November 2014).

• http://help.sap.com/nw_platform
 SAP NetWeaver 7.4 on the SAP Help Portal

• www.stechno.net/sap-notes.html?view=sapnote&id=153967
 SAP BI content release note for BW 7.4

49
7 Key Points to Take Home

• SAP BW 7.4 is the first release to take full advantage of SAP HANA
• Some of the functions in 7.4 are also available to non-HANA customers
• The new CompositeProviders and the Open ODS View make HANA and BW
tightly integrated and capable to support EDWs better
• You should break from the past and start designing with the new BW 7.4
features in mind
• The new monitoring features in the BW DBA Cockpit and the HANA systems
make it much easier to see what is occurring from a database level for the
non-basis team
• Before you size your system, clean it up and save hardware costs
• All customers should consider the BW move to HANA in 2016!
50
Your Turn!

How to contact me:


Dr. Berg
[email protected]

Please remember to complete your session evaluation


51
Disclaimer

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other
countries. All other product and service names mentioned are the trademarks of their respective companies. Wellesley Information Services is neither owned nor controlled by SAP SE.

52

You might also like