2014 Anthology WEB BIx Enhance Rep Skills
2014 Anthology WEB BIx Enhance Rep Skills
2014 Anthology WEB BIx Enhance Rep Skills
BI Reporting Skills
Tips for Using SAP HANA, SAP Lumira,
Design Studio, and Web Intelligence
Starting with a look at monitoring SAP HANA performance with Design Studio, this anthology takes you on
a journey through SAP’s reporting landscape. Featuring some of our most respected BI Expert authors, this
collection covers the gamut of new SAP BI technology, including articles on how to choose—and use—the right
reporting tools for your business, different options for building analytical dashboards with SAP Lumira, and
using SAP Lumira with BEx query. Other articles show you how to build a mobile app on SAP HANA, what’s new
(and coming soon) in SAP BPC in the cloud, and how to leverage SAP HANA and SAP BPC.
At BI Expert, our mission is to help you build your skills and achieve the business goals of the organizations you
serve. This anthology has been curated with this guiding principle in mind—to help you advance your SAP BI
knowledge and stay on the leading edge of SAP technology.
This anthology only scratches the surface. In the full BI Expert online library, you will find a plethora of SAP BI
and SAP BW information, as well as more technical content around SAP HANA, SAP Lumira, Design Studio,
and Web Intelligence. Our content offerings include short, quick-tip articles as well as longer technical tutorials
and video content to help you do your job better and faster. All of the content is reviewed by a team of expert
technical advisors, many of whom are also contributors to BI Expert. To learn more about BI Expert, explore
license options, and give us your feedback, visit www.SAPexperts.com/BI.
www.SAPexperts.com/BI
An resource
from the publisher of
All content in this anthology is fully copyrighted and may not, in whole or in part, be copied, reproduced, framed, hyperlinked, republished,
downloaded, uploaded, posted, transmitted, or distributed in any way. You may not redistribute, reproduce, retransmit, disseminate, sell, publish,
broadcast, or circulate the information contained in this anthology to any third party.
Copying or posting is an infringement of copyright. For group rates and subscription information, call 1-781-751-8880 1
>>ANTHOLOGY Table of Contents
SAP HANA Performance Monitoring Using Design Studio....................................................................................................................................................... 3
by Dr. Bjarne Berg, Senior Director of BI, COMERIT, Inc., and Michael Vavlitis, SAP BI Associate and Training Coordinator, COMERIT, Inc.
Learn the details around the process of developing and implementing SAP HANA performance monitoring using an application built by BusinessObjects Design Studio. Active performance monitoring is a
vital measure for maintaining the stability of an SAP HANA system, and Design Studio offers the ideal capabilities to track the most important SAP HANA performance indicators.
Leveraging SAP HANA to Enhance SAP Business Planning and Consolidation’s Capabilities...........................................................................................19
by Sheldon Edelstein, Director, SAP Platform Solutions Group
SAP Business Planning and Consolidation (BPC) 10.1, along with its host environments (SAP Business Warehouse [SAP BW] and SAP HANA) provide abundant design choices to meet today’s business
planning needs. See a comparison between the various models available in BPC to facilitate appropriate model selection based on business priorities. The potential to enhance BPC capabilities by using
SAP BW MultiProviders and virtual providers to facilitate virtualized information access to data not readily available to BPC natively is explored in detail. SAP BPC’s capabilities are extended by showcasing
the various HANA function libraries that can interact with BPC data. In addition, techniques for accessing data residing in external repositories and allowing access to that data by BPC through the use of
SAP HANA table views, SAP HANA virtual tables, and SAP HANA Smart Data Access are also explored.
How to Build an Analytical Dashboard with SAP Lumira Based on SAP CATS Data............................................................................................................33
by Paulo Vitoriano, Freelance SAP Solution Architect, and Sergei Peleshuk, SAP BI and HANA Architect
Walk through a number of practical steps for setting up a simple analytical dashboard with SAP Lumira. Learn how to complete visualizations in SAP Lumira for a number of real Cross-Application Time
Sheet (CATS) key performance indicators (KPIs). Analyzing proper business performance indicators on an analytical dashboard helps you make appropriate business decisions faster. The approach
described for setting up a dashboard on CATS KPIs can be applied to any other business area with SAP or non-SAP data sources.
Administration and Implementation Tips for SAP Near Line Storage (NLS) Based on Sybase IQ......................................................................................76
by Gary Nolan, SAP BI Strategic Architect, Sapiex Associates LLC
There are challenges to implementing the Near Line Storage (NLS) solution using Sybase IQ, and pitfalls to look out for during implementation. Learn tips for how to determine what to archive, how to
segregate data, changes to the dataset, and understanding some features of the overall solution.
SAP HANA Studio-Based Modeling of BW Objects Without Transaction Code RSA1....................................................................................................... 106
by Ned Falk, Senior Education Consultant, SAP
Learn the steps needed to set up a HANA Studio user interface to access some of the BW modeling tasks normally done in BW transaction code RSA1. As HANA and BW modelers merge and overlap
tasks, the ability to model windows into each type of modelers’ worlds becomes more and more important.
2 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Learn the details around the process of developing and implementing SAP HANA perfor- >> Key Concept
mance monitoring using an application built by BusinessObjects Design Studio. Active SAP HANA presents cutting-edge,
performance monitoring is a vital measure for maintaining the stability of an SAP HANA in-memory, data-processing per-
system, and Design Studio offers the ideal capabilities to track the most important SAP formance. However, like all
HANA performance indicators. database management systems,
there are key performance indica-
Continuous, proactive monitoring of the monitored using a variety of tools such tors (KPIs) that must be tracked
status of production systems, its ser- as SAP Solution Manager, SAP HANA as part of the routine mainte-
vices, and the consumption of system studio, and the Database Administration nance. These KPIs are found in
resources is crucial to detecting prob- (DBA) cockpit in SAP NetWeaver. In several areas inside SAP HANA. In
lems early. This allows you to prevent addition, more generic Operation this article, we look at how these
or minimize service disruptions. SAP System (OS) monitoring tools such as indicators can be consolidated
HANA is no different from any other Topaz can be used to monitor the into a single dashboard monitor
system in this regard. However, the col- system from an external perspective. using SAP Design Studio.
lection and evaluation of statistical data However, all these tools have limited
at defined periodic intervals is built into insight into the memory manager within tiple systems using a single click in
the SAP HANA database. This embed- SAP HANA. SAP HANA studio. From here you can
ded statistics server or, more recently, see KPIs such as:
The focus of this article is on how to
the statistics service of the index server,
use Design Studio to develop a custom 1. Memory usage
is part of the internal monitoring infra-
dashboard application to report on
structure of the SAP HANA database.
trends and anomalies in the data col- 2. Alerts
The statistical data that is collected via lected in the _SYS_STATISTICS
3. CPU usage
internal monitoring is stored in tables schema tables. The first step in this
within the _SYS_STATISTICS schema. process is to prepare the data for dash- Due to the prevalence of disk usage
The data is periodically evaluated to board consumption by defining monitoring, we have excluded the disk
alert users of critical situations, such as calculation views in SAP HANA studio. usage metric from the dashboard. In-
when a disk is almost full, memory However, before the data can be pre- stead, we focus on the three metrics
usage has exceeded a specific threshold, pared, it must be understood, so let’s listed above. For a more comprehensive
or a server has stopped working. This review some of the key SAP HANA view of system performance, we recom-
data is stored for a configurable time performance metrics that are covered in mend adding the following KPIs to your
period which is usually set to 30 days our dashboard. routine monitoring:
by default. This information can be used
• Input/Output (I/O) throughput
to facilitate performance and stability SAP HANA Key Performance
monitoring of not only the SAP HANA • Response time
Indicators (KPIs)
database, but also the SAP HANA
application. The most important KPIs can be tracked Each system can also be monitored
using the System Monitor (Figure 1 on individually in the Overview tab of the
The statistical information collected by the next page). This is the simplest way administration editor (Figure 2 on the
the SAP HANA database may be to monitor the operational status of mul- next page). The call-outs in this illustra-
4 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
tion identify the three main metrics is reduced. • Working space where computations
available in the system monitor: Data- occur, temporary results are stored,
Now let’s take a detailed look at each of
base Used Memory (1), Current Alerts and shared-user memory consumption
these three KPIs that are included in
and Messages (2), and CPU Usage (3). occurs
your Design Studio dashboard.
For more detailed information on SAP HANA audits memory from the
memory usage, access the Memory Memory Usage perspective of the host. The most perti-
Overview by right-clicking any SAP nent aspects include:
Given that SAP HANA is an in-memory
HANA system within SAP HANA database, it is crucial to attentively • Physical memory (Figure 4 on the
studio (Figure 3). This view requires monitor and manage memory consump- next page) – The maximum amount
Monitoring privileges and SAP HANA tion. Therefore, the SAP HANA of physical (system) memory that is
Support Package Stack 07 (SPS 07), but database pre-assigns and manages its available on the host
provides memory usage information for own memory pool and offers an assort-
each host. Unfortunately, this view has ment of memory usage gauges to • Allocated memory – The memory
two main drawbacks: facilitate monitoring. pool reserved by SAP HANA from
the operating system
1. It is not possible to see an overview Memory usage of all systems can be
of memory consumption across hosts. viewed within the System Monitor. The • Used memory – The amount of mem-
memory usage of an individual system ory from this pool that is actually
2. It does not identify the working space used by the SAP HANA database
or service can be accessed within the
memory—that is, the memory used
Overview and Landscape tabs, respec- The physical memory on most SAP
for temporary computations.
tively. Memory in SAP HANA is HANA hosts ranges from 256GB to
For the most flexibility in system mon- consumed for numerous purposes: 2TB. This is implemented to run the
itoring capabilities, migrate to the new • The operating systems and support Linux OS, SAP HANA, and any addi-
statistics server implementation which files tional program that runs on the host.
is available as of SAP HANA SPS 07 SQL statements may be used to obtain
(refer to http://www.saphana.com/docs/ • Proprietary code and stack of pro- or edit memory information. There is a
DOC-4403 for enabling instructions). gram files set of predefined SQL statements pro-
This new implementation replaces the vided by SAP that are available for use.
• System-defined column and row store
separate statistics server with internal For column tables, SAP HANA some-
tables
SQL Script procedure calls from the times unloads columns that are
index server. As a result, performance • User-defined column and row store infrequently used out of memory to free
is improved and memory consumption tables up space.
6 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
8 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Figure 12 CPU use (percentage) across the hosts of a 15-node scale-out SAP HANA system
10 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Volumes of Service section displays interest when analyzing database issues. (Figure 15 on the next page). If the
specifics about the selected index SAP HANA database reduces the data-
Monitoring I/O throughput can help
server, statistics server, and XS engine. base read time to a negligible amount,
identify hardware problems with the
There are additional name server details the acceleration factor would be 2 for
SAP HANA application, such as bad
that can be displayed, including the fol- transactions with a read time of 50
lowing options: network switches or cables. Figure 13
percent of the overall response time.
shows an example of an I/O throughput
Higher acceleration can be achieved for
Volume I/O Statistics – Shows general by server date. Notice the dip in write
file I/O statistics for specific paths such transactions and reports with a higher
I/O throughput (1).
as storage, volume, and service. Aggre- ratio of database read time to overall
gated I/O statistics are also displayed. I/O throughput is captured for data, response time. The EarlyWatch Alert
The data is unrelated to the I/O buffer logs, data backups, and log backups. report can be accessed to identify
size such as the read/write requests, Figure 14 on the next page shows the reports and transactions with a high
data volume or throughput, and the total throughput for logs written-to and read- contribution of database read time to the
I/O time and speed in MBs. from disk volumes in the SAP HANA overall response time and a significant
application. total of database read time. As a result,
Volume I/O Performance Statistics – it is possible to identify potential opti-
Shares specific file I/O statistics for mization candidates for SAP HANA
certain paths such as storage, volume,
Response Time
Accelerators.
or service. I/O statistics are related to SAP HANA acceleration on transac-
the I/O buffer size; an example is the tions and reports is heavily reliant on The database response time can be mea-
number of read/write requests, process- the acceleration factor, which mainly sured directly within the SAP HANA
ing durations, and bottlenecks within depends on the percentage of database database, whether or not there is any SAP
the system. These figures can be of read time to overall response time NetWeaver application installed on it.
12 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
The statistics server records the last Developing the Design Studio selecting a universe connection that the
execution time for all SQL plans while administrator has set up and also by
also keeping a running total of total
Application
constructing queries using the Editing
execution time and count of executions. We have designed our dashboard to
Query Specification dialog box.
The statistics enable the calculation of include six tabs. The first tab is an over-
an average SQL plan execution time, view tab providing a quick view of the When creating an application using ana-
which is loosely comparable to database status of all five metrics chosen. The lytic and calculation views from SAP
response time. Figure 16 shows an remaining tabs provide detailed views HANA, it is possible to save the appli-
average execution time by host and on each metric complete with some cation in the SAP HANA repository.
Figure 17 (on the next page) shows the interactive features. Let’s dive into how With this option, runtime of the applica-
average execution time according to the we designed and built the dashboard, tion is being done strictly by the
last execution date. Note it is also possi- starting with how we connect to the
ble to view average execution time by browser so Java is not required (BI
calculation views in SAP HANA.
user. launch pad).
Note the highest average execution time Pulling Data from SAP HANA During runtime, there will be no use of
in Figure 16 is on the first node, which Business Intelligence Consumer Ser-
When SAP BusinessObjects Business
also happens to be the master node. vices (BICS). Instead, Firefly connects
Intelligence (BI) is used as the platform
This illustrates the dependency on the
for Design Studio, this means that both to the data. To use this feature, you
master node in scale-out systems and
SAP BW and SAP HANA data sources must be using SAP HANA 1.0SP7 or
suggests the master node should not be
overloaded. Rather, it should be re can be used for applications as well as newer. Any SDK that is created can also
served for temporary computations, to queries that are universe-based. A uni- be uploaded to and downloaded from
the extent possible. verse data source can be created by the SAP HANA repository.
Figure 16 SAP HANA SQL plan execution time by host in a scale-out system
14 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
to generate purpose-built OLAP analysis HANA data sources. is based on the associated HANA tables
and planning applications. Design Studio and analytic or calculation views. The
Design Studio offers a variety of graph-
also presents company- and SAP-deliv- ical options that can be implemented to Multidimensional Reporting property
ered content while offering augmented represent the HANA performance data for these views should be set to True in
support for mobile devices and SAP as desired. The data behind these graphs order to be compatible with Design
16 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Studio. Select the data source and click it can then be launched by navigating to (Figure 22).
the OK button. the Execute drop-down options and Figure 23 shows the Memory Usage
Once the application has been created, selecting Execute on SAP HANA tab of your completed performance
Dr. Bjarne Berg is the senior director of BI at COMERIT, Inc., and one of the most respected and dedicated thought leaders
in the BI market. Prior to joining COMERIT, he was a senior manager at PwC’s global data warehouse group, the director
of BI at VIP consulting, and the VP of BI at COMERIT. In these positions, he managed multi-year BI and data warehouse
projects for clients such as Ericsson, Chevron-Texaco, International Thomson Publishing, and International Paper. Dr. Berg
is an internationally recognized expert in BI and analytics, a published author in international BI journals, and a frequent
speaker at major BI and SAP conferences worldwide. He holds a bachelor of science degree from Appalachian State Uni-
versity, an MBA from East Carolina University, a doctorate in information systems from the University of Sarasota, and a second
doctorate in IT from the University of North Carolina. Dr. Berg may be reached via email at editor@bi-expertonline.com.
Michael Vavlitis has worked at COMERIT, Inc., for a year as an SAP BI Associate and Training Coordinator. He possesses
extensive experience with creating interactive applications and developing training content using the comprehensive suite
of SAP BusinessObjects tools, including Analysis for Office and OLAP, Dashboards (Xcelsius), Design Studio, Lumira,
and Web Intelligence. In addition, Michael has also been exposed to the inner workings of SAP HANA systems and retains
an acute familiarity with SAP HANA administration. Michael may be reached via email at editor@bi-expertonline.com.
18 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
SAP Business Planning and Consolidation (BPC) 10.1, along with its host environments >> Key Concept
(SAP Business Warehouse [SAP BW] and SAP HANA) provide abundant design choices to SAP Business Planning and
meet today’s business planning needs. See a comparison between the various models Consolidation (BPC) 10.1 works
available in BPC to facilitate appropriate model selection based on business priorities. The together with SAP Business
potential to enhance BPC capabilities by using SAP BW MultiProviders and virtual providers Warehouse (SAP BW) and SAP
to facilitate virtualized information access to data not readily available to BPC natively is HANA to deliver state-of-the-art
explored in detail. SAP BPC’s capabilities are extended by showcasing the various HANA
planning and consolidation
function libraries that can interact with BPC data. In addition, techniques for accessing
functionality. BPC 10.1 is able to
data residing in external repositories and allowing access to that data by BPC through the
deliver high value by providing
use of SAP HANA table views, SAP HANA virtual tables, and SAP HANA Smart Data Access
model selection based on
are also explored.
business requirements, as well as
through its deep integration with
supporting SAP BW and SAP
The Business Planning and Consolidation SAP HANA provides a wide variety of
HANA layers.
(BPC) 10.1 application running within a techniques to efficiently process BPC/
host SAP Business Warehouse (SAP BW) SAP BW information (i.e., predictive
and an SAP HANA database provides functions generating BPC forecasts). ning process in many cases without the
numerous opportunities for efficient Data from external sources can be need for hard data replication processes.
operations. The BPC application allows easily accessed using SAP Smart Data
tailored selection of modeling paradigms Access (SDA), SAP Data Services, and To take full advantage of the capabili-
to allow the best match to business SAP Landscape Transformation (SLT) ties of SAP BPC 10.1, this application
requirements. The standard model processes. This information can easily is deployed within an SAP BW environ-
allows for disengagement of the data be virtualized into BPC/SAP BW for ment that is supported by an SAP HANA
model from the non-planning SAP BW consumption or the information can be database (Figure 1 on the next page).
community. The embedded model merged directly within the SAP HANA The SAP BW system hosts the BPC
allows for significant reductions in data model. application and provides a convenient
replication. Both models are provisioned platform for data modeling, staging, and
with in-memory optimized function In mid-2014, SAP introduced the 10.1 merging all the data required for the
capabilities for fast calculations. version of BPC that includes a second planning process.
planning model based on SAP Integrated
Planning (IP) technology. Through use SAP BPC 10.1 offers two InfoProvider
The SAP BW layer provides a portfolio of these two models, as well as through models, standard and embedded. The
of delivered integration content that the use of several SAP BW- and SAP standard model enjoys a protected tech-
simplifies access to SAP and non-SAP HANA-based techniques, you can now nical name space, and all technical
systems. Through the use of MultiPro- easily optimize your planning environ- objects (i.e., tables and InfoProviders)
viders and virtual providers, BPC can ments to efficiently incorporate multiple are identified with the technical name
easily consume information directly data types, access data from a variety of prefix /CPMB/ (Figure 2 on page 21).
stored within SAP HANA. sources, and consume data in your plan- The standard model type can be used
Figure 1 SAP BPC 10.1’s two InfoProvider models: standard and embedded
20 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
of your operations, such as where the associated SAP HANA database also and 7.0). In the standard model, a pro-
most profitable or highest counts of new has several methods for modeling and tected name space (e.g., objects are
customers are located. accessing data, including information identified within the host SAP BW
virtualization via table views as well system with the prefix /CPMB/, as
as several sister products (i.e., Data shown in Figure 2) with the host SAP
SAP BPC 10.1 – The Basics Services and SLT) that can load a BW system is carved out to store the
variety of data types directly into SAP data model. Data is brought into the
SAP BPC 10.1’s planning capabilities HANA. host SAP BW system and, through the
provide a one-version-of-the-truth use of BPC data manager functions, is
environment for enterprise planning A major innovation of BPC 10.1 was copied or replicated into the BPC-desig-
collaboration and development. Be the merger of two prior independent nated name space.
cause BPC data is modeled within SAP products: BPC and IP. BPC 10.1
a host SAP BW system, BPC can has two models that can be used to For many business users, this process
access data from a multitude of SAP create planning environments: standard was highly desirable since it provided
and non-SAP data sources using the and embedded (Figure 3 on the next department-level independence and
thousands of pre-delivered SAP BW page). The standard model is based on control over the entire planning process.
information extractors. In addition, the the earlier versions of BPC (10.0, 7.5, Specifically, control was valuable in the
Figure 2 Screenprint of the technical detail from host SAP BW system for BPC 10.1 standard model and associated /CPMB/
name space objects
Figure 3 Screenprint from the BPC 10.1 web-based administration page showing the availability of the standard and
embedded models
22 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
need to be put in place to prevent non- which model to use should be based on useful because they allow very fast exe-
planning users from having access to a thorough mapping of business require- cution. Less execution time means less
these fictitious products. ments to each model’s characteristics. operator downtime waiting and more
time to focus and test alternative plan-
A more positive example is that actual To help with model selection, I have ning scenarios to optimize the overall
transaction records do not have to be assembled a comparison matrix between plan.
replicated into a BPC name space the two models (Table 1 on the next
before being consumed by the BPC page). These in-memory optimized functions
embedded model—the embedded model achieve their speed by processing the
is able to access the actual transaction BPC and SAP BW Integration calculation where the actual data is
records directly, in place, without data physically stored, as well as by elimi-
As can be deduced from the streamlined nating bottlenecks in the database-to-
movements. This ability to access
architectural view in Figure 1, BPC is application layer architecture. Prior to
records by copying them is a key
hosted within an SAP BW environment. in-memory optimization, execution of
feature of this model. Data replication
Technically, BPC components are planning functions called all necessary
activities can cause information systems
ABAP add-ins installed within the SAP data to be retrieved from the database
to become unnecessarily enlarged, can
BW application environment. As a and placed into the application layer.
raise total costs by requiring larger
result of this intimate connection, BPC The application layer (i.e., BPC SAP
systems to accommodate the inflated
is positioned to enjoy the integration BW) then executed the planning func-
data storage, and can confuse the end-
capability between SAP BW and SAP tion. Any modified or new records
user community by presenting multiple,
products (such as SAP Business Suite) were then pushed back into the data-
similar copies of datasets as potential
as well as other non-SAP products. base. In short, conventional databases
query targets.
led to significant input/output (I/O)
Transactional and master data integra-
From a data replication perspective, the traffic between the two layers which, at
tion is illustrated by the many delivered
embedded model is obviously the superior times, could result in bottlenecks and
SAP BW extractors, modeling content
solution and it also allows the direct use slow system response (Figure 5 on
(including definitions for InfoProviders,
of a multitude of standard SAP BW data page 25).
i.e., InfoCubes and Data Store Objects
modeling and data manipulation tools [DSOs]), and InfoObjects (i.e., key BPC 10.1 offers the following in-mem-
(i.e., transformations and Data Transfer figures and characteristics). The SAP ory optimized functions: dimension
Processes [DTPs]). However, as you may HANA database associated with the member formulas, top-down planning
have guessed, the standard model has a SAP BW system allows ultra-fast DSO using SAP HANA, allocations using
useful set of capabilities as well. activation times, significantly reducing SAP HANA, copying, reposting, revalu-
or eliminating data-latency problems. ating, deleting, deletion of invalid
The standard model also has in-memory Data can also be replicated into the SAP combinations, set key figure values, dis-
optimized planning function capabilities BW environment using a variety of new tribution by reference data, Generating
and is compatible with earlier versions generation data integration tools, such combinations, reposting on basis of
of BPC. Keeping department-level as the batch-oriented Data Services characteristic relationship, distribution
control on the planning process may be toolset or, for real-time data access, the with keys, and FOX formula are all
a more important business priority than SLT replication tools that are able to delivered in-memory optimized func-
being able to reduce system complexity immediately replicate data from your tions. Refer to Table 1 for additional
by allowing the sharing of data. If con- ERP system directly into the SAP BW details about in-memory optimized
solidation capability is required (the C InfoProvider. functions.
in BPC) then (as of the current release
[October 2014]), only the standard
model can accommodate BPC’s exten-
BPC and SAP HANA Integration How SAP HANA Virtualization
sive collection of built-in business logic Both BPC 10.1 models enjoy a number Can Streamline Your BPC
functions that are used to perform man- of planning functions that, when called,
Process
agement and financial consolidations. In are executed directly in the SAP HANA
the final analysis, there is no one right database. SAP calls these functions in- SAP HANA has the capacity for creat-
or best model. The decision about memory optimized. These functions are ing virtual views of datasets that can be
Master data • Master data must be copied into the BPC name space • Master data from the host EDW can be use
• Cannot use compounded master data definitions • Ability to use compounded master data definitions
Transactional data All transactional records must be copied into the BPC Transactional records can be sourced directly from the
name space host EDW
Functions • Script logic: No current plans to execute script logic • FOX formula logic: Many functions capable to
directly within SAP HANA execute directly in SAP HANA
• SAP HANA-optimized functions: Dimension member for- • SAP HANA-optimized functions: Copy, repost, revalu-
mulas, and top-down planning and allocations using ation, delete, deletion of invalid combinations, set
SAP HANA key figure values, distribution by reference data,
generate combinations, repost on basis of charac-
teristic relationship, distribution with keys, and
formula (many restrictions).
SQL push down to SAP Technically possible with custom Business Add-Ins (BAdIs) SQL code push down to SAP HANA is delivered capability
HANA
Cell locking • If two users access the same data, both users can • If two users access the same data, only the user
modify a record’s value. Any changes made are pre- accessing the record first may modify the dataset—
served; when both users exit the system the last the data set is locked. The second user is limited to
change remains in the database. read-only status.
• Last in wins • First in wins
Consolidation Full function consolidation functionality Minimal consolidation functionality; more on the
current roadmap for 2015.
User interface (UI) Enterprise Performance Management (EPM) Add-In to EPM Add-In, Analysis for Microsoft Office, BEx, and web
Microsoft Office and web
EPM Add-In • Direct access to BPC model and data • Requires a BEx query acting as a data provider to
• EPM in supported functions available: support EPM add-in
–– Disaggregation model selection • The available EPM add-in supported functions:
–– Drill through –– Drill through (on roadmap for future release)
–– Disaggregation –– Disaggregation model selection (on roadmap for
future release)
–– Disaggregation (on roadmap for future release). A
workaround is available (as of October 2014) by
using BEx disaggregation or a suitable planning
function
24 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
ments (such as industry or government Data brought directly into SAP HANA SAP HANA can also provide virtual
regulations). Using virtualized views can be easily exposed in the SAP BW access to external database information
eliminates the penalty involved with application layer using the virtualization via SAP HANA’s SDA functionality
more permanent configuration struc- concept. Data stored within a typical (Figure 8 on page 27). SDA allows
SAP HANA table can be accessed using SAP HANA to directly connect to a
tures, such as the added maintenance
an SAP HANA calculation view on that variety of external databases, both SAP
and administrative costs incurred by
table. The calculation view can then be and non-SAP. At run time, the informa-
creating and maintaining these struc- directly linked into an SAP BW virtual tion from the external database
tures, as well as the data latency effects provider so that the data can be con- populates an internal virtual table which
caused by waiting for non-virtual struc- sumed by the BPC application (Figure 7 can also be exposed into SAP BW/BPC
tures to physically load. on the next page). by creating a calculation view and an
Figure 5 A comparison of BPC 10.1 in-memory (SAP HANA) vs. conventional database function execution
Figure 6 Using SAP HANA calculation views allow minimization of data replication
You can dramatically increase perfor- written in C++ format and called to • Predictive Analytical Library (PAL) –
mance by executing complex perform data-intensive and complex A collection of predictive functions
Figure 7 Use SAP HANA calculation views to expose data in SAP BW for consumption by a BW/BPC process
26 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
that can be used to analyze datasets. • To reduce forecast cycle time by good fit of the predictive model has
automating the analysis. been achieved, they can save the newly
• SAP HANA Planning Engine –
Provides in-memory optimized plan- I created a video (for a TechEd 2013 generated dataset as a new working
ning functions execution. workshop) in which BPC data was sub- forecast. Using these techniques, highly
jected to predictive functions initiated accurate forecast plans can be consis-
• SAP HANA Spatial Engine – Pro
through a dashboard UI. The dashboard tently generated.
vides geospatial data-visualization
allowed the user to select a desired pre-
capabilities. In additional to the collection of deliv-
dictive function, set function coefficients,
execute the function, and update the ered predictive functions, SAP HANA
• SAP HANA Text Engine – Provides
text-analysis capabilities. working forecast dataset with any new includes access to the R-function library
data generated. A screenprint is shown that can be used to perform predictive
Examples in Figure 10 on page 29. To view this functions external to the SAP HANA
bonus demo video, go here: http://bit. environment. The R language is widely
Why use predictive functions with BPC
ly/1z3Cxjc. used among statisticians and data
data (Figure 9 on the next page)?
Not shown in the video are the SAP miners for developing statistical
• To identify hidden revenue and cost-
HANA predictive functions called and models. The SAP HANA’s R capability
reduction opportunities in your plan.
executed against the current BPC data. provides convenient integration for
• To improve your forecasting accuracy. When the operator is satisfied that a many third-party statistical tools.
Figure 8 Bring SAP HANA’s SDA information into an internal virtual table and expose it to SAP BW/BPC
Figure 9 Using SAP HANA predictive functions on BPC data for improved forecasting
28 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
section 6.1.1 “About SAP HANA Smart next page). Keep in mind that all the group objects such as tables, views, and
Data Access” [http://help.sap.com/hana/ virtual tables, views, and providers are stored procedures. The SAP BW
SAP_SAP HANA_Administration_ populated only at run time. This means schema contains all of the support struc-
Guide_en.pdf], for additional details on no permanent data replication occurs. tures for SAP BW. But SAP HANA can
which databases are currently enabled Finally, BPC can access the virtual pro- also store information that is not ini-
for SDA). vider in a similar manner as any other tially associated with the SAP BW
InfoProvider in the SAP BW system. schema. For example, you can have
Essentially, the table contents of the
event-streaming data, such as process-
remote database can be accessed in the
Merging BPC with Non-SAP machine data or real-time credit card
main SAP HANA instance using an
BW Data purchases, continuously loading infor-
SAP HANA virtual table. The virtual
mation into SAP HANA using SAP
table is used as a data source for an When SAP HANA is used to support
Event Stream Processing (SAP ESP).
SAP HANA calculation view (another SAP BW, a collection of tables and
SAP Data Services provides one of
virtualized view of the original data). other objects are created to logically
many solutions to load data directly
The calculation view can perform addi- store the essential information in the
into SAP HANA and is illustrated in
tional filtering, if desired, or just act as database. The collection of these objects
Figure 12 on the next page.
a pass through. The calculation view is that support SAP BW is located in a
then used as a data source for an SAP collective structure called a schema. A Once data is physically using (or virtu-
BW virtual provider (Figure 11 on the database schema is a way to logically ally using, as discussed earlier) SAP
Figure 10 Use SAP HANA predictive functions on BPC data for improved forecasting
BPC BPC BW
model
SAP HANA
Table Table
Non-BW
Data services
data source
Figure 12 Merging non-SAP BW data with BPC/SAP BW
30 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
HANA’s SDA features, the data can be An alternative method of merging SAP 13). The Import function converts SAP
easily exposed within the SAP BW BW and non-SAP BW data in SAP BW models into a fully supported col-
application layer for easy BPC access.
HANA can also be used: merging the lection of SAP HANA tables outside of
As you have seen, tables in SAP HANA
can be virtualized in SAP BW using data directly in SAP HANA itself. SAP the SAP BW schema (Figure 14 on the
calculation views and virtual providers. HANA has an Import feature (Figure next page).
Figure 13 SAP HANA modeler screenprint (import an SAP BW model into SAP HANA)
Model expert
to HANA
SAP HANA
Calculation view
Table
Table Table
BW schema Non-BW schema
Figure 14 Importing an SAP BW model into SAP HANA (exporting out of SAP BW)
Once the SAP BW/BPC model has been HANA using standard calculation calculation view with SAP Business-
imported into SAP HANA, the tables views. Analytical analysis is easily Objects business intelligence reporting
can be joined to other tables with SAP accomplished by targeting the generated solutions.n
Sheldon Edelstein is a director within the SAP Platform Solutions Group specializing in SAP HANA, SAP HANA Accelerators,
SAP Business Warehouse (BW), and SAP Business Planning and Consolidation (BPC). He has over 10 years of experience
at SAP and currently focuses on business development opportunities across a wide array of industries and product solutions.
Formerly an SAP Platinum Consultant and SAP RIG—Regional Implementation Group—Specialist, Sheldon has either
directly implemented or provided architectural guidance for numerous large-scale projects. Currently, his primary area of
focus is SAP HANA, but previously he specialized in BW-IP (Integrated Planning), BW-BPS (Business Planning and Simula-
tion), and SAP BPC. Sheldon is an active presenter at numerous events, a contributor to the SAP Customer Network (SCN), writes blogs on
a variety of SAP topics, and is an author of many guides on SAP Service Marketplace for use by the extended SAP community. Sheldon may be
reached via email at editor@bi-expertonline.com.
32 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Walk through a number of practical steps for setting up a simple analytical dashboard with >> Key Concept
SAP Lumira. Learn how to complete visualizations in SAP Lumira for a number of real An analytical dashboard provides
Cross-Application Time Sheet (CATS) key performance indicators (KPIs). Analyzing proper a view on the key performance
business performance indicators on an analytical dashboard helps you make appropriate indicators (KPIs) of a particular
business decisions faster. The approach described for setting up a dashboard on CATS business area. It focuses on
KPIs can be applied to any other business area with SAP or non-SAP data sources. gaining insights from a volume of
data collected over time to under-
stand what happened, why, and
The time-reporting process with SAP In addition, you have general rotations what changes should be made in
Cross-Application Time Sheet (CATS) such as hiring new employees and the future to optimize processes
is a relatively simple exercise if viewed employees leaving companies. The and improve performance.
from a technical perspective. However, number of new hires or terminated
that process is only a tip of the iceberg employees also affects the master data
for an organization’s project manage- maintenance workload. There are three main groups of business
ment team when it embarks on a users involved in the time-writing
“simple” time-writing project journey. Such data monitoring and quality
process. The first, and largest, group
Any organization that operates with a checks might become very time-con-
consists of time reporters. The second
critical mass of business users involved suming because every user, on average,
group consists of time approvers. Time
in the time-writing process soon realizes can easily generate three to four line
approvers are usually project managers,
many more challenges, such as a con- items per day. In other words, the ave-
but they can also be budget holders
stant need to maintain the data quality, rage business user can be working on
responsible for different projects. There-
the discipline of business users, avail- three to four projects or jobs on the
fore, time approvers need either to
ability of well-documented procedures, same date, so that generates three to
approve or reject the time reported by
and change management. four line items daily per person. It is not
the first group of business users. Only
relevant here when the data is actually
approved time can be transferred into
Based on our experience, the critical entered, such as the same day or the end
accounting. Therefore, fast action is
number of CATS time reporters that of the week. This is just to illustrate
expected from this second group.
can force the business organization potential data volume: 1,000 users times
to switch from manual controls to 20 working days per month times 3 line Finally, the third group consists of time
automated controls via a number of items per day = 60,000 line items administrators. Time administrators
developed key performance indicators monthly. On the financial side, you also take care of the master data used by
(KPIs) is around 1,000 business users. cannot underestimate the data quality; the first two groups of business users
If the internal or external rotation in the no matter if the data is used for cus- and ensure timely hiring and leaving
organization is high, that only compli- tomer projects (and therefore requires actions for HR master data related with
cates the overall picture. By internal timely resource-related billing to ensure the timewriting process. Moreover,
rotation, we mean people moving healthy cash flow) or investment proj- time administrators are responsible for
between departments in the same legal ects (to ensure timely capitalizations changing the organizational assignment
entity (or country), whereas external and cash calls for joint venture partners data for business users moved across
rotation in a global organization is within upstream oil businesses, for the organization (that indeed can be also
about people moving between countries. example). a part of HR functions).
Time reporters Rejected time is not corrected within Time is not transferred into the accounting
operational deadline. component in the same reporting period and
creates a gap between the working period and
the accounting period, complicating further
reporting and reconciliation. In addition, it can
negatively affect a cash flow due to late cost
recognition.
Time reporters Time is not approved by operational deadline. Time is not transferred into the accounting
component in the same reporting period and
creates a gap between the working period and
the accounting period, complicating further
reporting and reconciliation. In addition, it can
negatively affect a cash flow due to late cost
recognition.
Time administrators Newcomer master data is not set up for time Time writer cannot report time. No customer
writing. billing or capitalizations are possible.
Table 1 The process ownership matrix by involved user group, problem, and financial impact
PRPS Work breakdown structure (WBS)-element description (if used as account assignment in CATS)
34 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
ize KPIs critical for time reporting. This Prepare Source Data in Here is a link to the SAP HANA One
gives managers the capability to quickly SAP HANA One AWS and step-by-step instructions for
review the status of CATS processes how to launch the instance: https://aws.
and identify which departments or users We picked SAP HANA One as a data- amazon.com/marketplace/pp/B009K
have issues with processes such as time base engine for SAP Lumira dashboards A3CRY/ref=mkt_ste_hp_car_ec_
reporting, approvals, or master data in which the calculations, data aggrega- HANAOne.
maintenance. tion, and processing for KPIs can be
done. It could have been any other To import a table from a flat file to SAP
online analytical processing (OLAP) HANA One, go to SAP HANA Studio
SAP Lumira is one of the latest dash-
processor or a database engine, but SAP and follow menu path File > Import >
boarding tools from SAP that helps you
HANA performs well with large data- SAP HANA Content > Data From
visualize your data with just a few
sets and has direct connectivity to SAP Local File (Figure 1 on the next page).
clicks. However, before you start using
Lumira. Therefore, we decided to use it Click the Next button. This action opens
SAP Lumira, you need to implement
in this exercise. a screen (not shown) in which you
KPI calculation rules that are not imme-
choose a target system, schema, and
diately available in the original datasets.
A set of database tables can be updated source file. Follow the wizard steps.
We show you in a few easy steps how
automatically from any source system You have to specify a table name in
the SAP HANA platform can be used
(such as ECC or Oracle) using tools which source data is stored. In this case,
for data modeling, KPI calculations, and
such as BusinessObjects Data Services. we have stored source data in table
feeding SAP Lumira dashboards.
For simplicity, we prepared a data AA_CATSDB4.
model in SAP HANA One on Amazon
In this section, we show you how to Web Services (AWS). All CATS records
Design an Attribute View
implement some KPIs into an SAP are sitting in a table in SAP HANA One
Lumira dashboard. Table 3 includes a with the raw data imported from a flat Based on the source data in the table
summary of the KPIs to be implemented file. The flat file has been generated in AA_CATSDB4, we designed an attri-
in SAP Lumira. ECC using a standard report. bute view AT_CATS in SAP HANA
1.1 Alternative to the average The difference between CATSDB- Time writers and operational By department
number can be the maximum WORKDATE and CATSDB-ERSDA discipline (cost center) and
number of days (created on date) by period
2.0 Average number of days The difference between CATSDB- Time approvers and opera- By department
passed between data entry ERSDA (created on date) and tional discipline (cost center) and
date and time approval or CATSDB-APDAT (approval date). If by period
rejection date there is no time approval date yet,
the current actual date is used.
2.1 Alternative to the average The difference between CATSDB- Time approvers and opera- By department
number can be the maximum ERSDA (created on date) and tional discipline (cost center) and
number of days CATSDB-APDAT (approval date). If by period
there is no time approval date yet,
the current actual date is used.
3.0 Average number of daily hours Total number of reported hours N/A By department
reported within a department divided by number of time (cost center) and
reporters who reported time for by period
department X in period X, and
divided by number of working days
in period X
Table 3 A summary of sample KPIs
36 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
by month, quarter, and year. Therefore, • Approved_dt (date type) Design a Calculation View for
you need to introduce respective attri- Required KPIs
butes based on work date. Here is a list • Work_dt (date type)
of the calculated attributes introduced in • Entry_days (Entry_dt – Work_dt) In the calculation view, we aggregated
the attribute view: records from the original dataset and
• Approval_days (Approved_dt – calculated all measures needed for the
• Month (based on work date) Entry_dt) CATS KPIs defined above (Figure 3 on
• Year (based on work date) • Time_approval_disc (max over the next page). To get to the screen
Approval_days) shown in Figure 3, follow menu path
• Rows (= 1) Systems > HDB (SYSTEM) SAP
• Time_writers_disc (max over Entry_ HANA One > Content > demodata >
• Entry_dt (date type) days) Calculation Views > CA_CATS.
38 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
40 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Calculation View. Check to see if the menu bar, click File and New. In the Design Dashboards for Each KPI
APPROVAL date is blank and use today pop-up screen, select Download from It is easy to design dashboards in SAP
as an approval date for the time- SAP HANA and click Next. In the next Lumira based on the existing dataset.
approval discipline KPI. screen (not shown) enter your SAP Just drag and drop available data
HANA login credentials. elements from the left pane to the
Connect SAP Lumira to an SAP Alternatively, to keep your dashboard appropriate sections on the right (mea-
HANA One Dataset data always up to date, you may want to sures, dimensions, or trellis). You can
also change the type of chart from the
With SAP HANA One you can easily choose the Connect to SAP HANA
available list and the name of the
download the output dataset based on option instead of Download from SAP
dashboard.
the calculation view CA_CATS to SAP HANA. The server name, instance or
Lumira and use this dataset for defining port, user, and password should be Time approvers and writers discipline
dashboards (Figure 6). To download taken from the AWS panel when KPIs can be combined in one chart. To
this output, launch SAP Lumira. In the working with SAP HANA One. complete this task, click the Visualize
42 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
44 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
>> Note
The data used in this article was generated artificially and serves for illustra-
tion purposes only. The set of KPIs also represents the most simple
scenarios and is based on a number of assumptions. Real business data is
likely to require more complex logic for KPI building.
In the last step, you can share the story- share a storyboard, click the Share tab destination in which to publish your
board with other users and publish it to in SAP Lumira (refer back to Figure 9). storyboard (Publish to SAP Lumira
SAP Lumira Cloud, SAP Lumira In the screen that appears (Figure 11) Cloud, Publish to SAP Lumira Server,
Server, or to the SAP BI platform. To click one of the buttons to choose a or Publish to SAP BI). n
Paulo Vitoriano started his consulting career with Arthur Andersen Business Consulting in 1997. Since then, he has helped many global
clients on SAP implementation projects, including DHL, Carlsberg, Nestle, Shell, AXA, Electrolux, and Maersk. During the last 18 years
he has covered more than 10 end-to-end SAP implementations working on-site in 16 different countries. He has project experience with
seven different oil and gas companies, and his current focus is on SAP IS-Oil and system integration. You may reach Paolo via email at
editor@bi-expertonline.com.
Sergei Peleshuk has more than 15 years of experience implementing BI technologies for global clients in retail, distribution,
fast-moving consumer goods (FMCG), oil, and gas industries. He has helped clients to design robust BI reporting and planning
capabilities, leading them through all project phases: from analysis of requirements to building BI roadmaps, technical
architecture, and efficient BI teams. Sergei is an expert in modern BI tools and technologies available on the market,
including SAP Business Warehouse (SAP BW), SAP HANA, BusinessObjects, and SAP Lumira. Sergei maintains a business
intelligence portal at www.biportal.org. You may reach Sergei via email at editor@bi-expertonline.com.
Learn how to use an often-overlooked feature of the Excel-based reporting toolbox: formula >> Key Concept
mode. Learn why formula mode makes SAP BW’s BEx Analyzer and BusinessObjects Analy- Formula mode, a feature in BW’s
sis the preferred tools for heavy analysis users. BEx Analyzer and BusinessObjects
Analysis for Excel, takes an SAP
BW data stream and populates
The main focus of this article is about An Overview of SAP BW and Excel Workbooks with individual
how to use formula mode with SAP’s
Excel-centric products, but before I dive
BusinessObjects Reporting cells, each with a formula that
into that, it is important to note that Tools fetches (or writes) data from SAP
there are other web-based tools avail- BW. It allows the use of complex
With the acquisition of BusinessOb-
able and that there is a very big push to logic that ties local data on a
jects, SAP has amassed a huge tool set
use them as many companies don’t worksheet with data from a BW
of reporting tools. For edification, I
want to maintain PC-based software Query. This special feature posi-
have compiled a list of the options,
anymore. SAP offers a lot of tools and tions these tools for use in
along with a short description of each,
most companies don’t use every one, at complex analysis tasks better
in Table 1. The ones marked with **
least not initially. than any other BusinessObjects or
(asterisks) are licensed separately from
BEx tool sets.
the core SAP BW.
First I give a quick overview of all the
tools that are out there. Armed with Although each tool has its own fan base
these basics, as you read the article, you and target audience, you can’t imple-
will understand why formula mode ment them all at once. This means that Why Use Excel?
makes an Excel-based tool a good many companies may try to avoid Although many IT departments don’t
choice to selectively deploy to some implementing the Excel-based ones ini- like having to maintain Microsoft
users. To be clear, most SAP BW and tially, because they require more Windows applications on PCs spread
BusinessObjects tools are web based. training. However, since PCs come with around the world, it’s an uphill battle to
There are two tools that are Excel Excel installed already, I think selected convince the FI guy that Excel is a drug
based: the newer BusinessObjects Anal- analysts can use these Excel-based tools they can do without. SAP has obviously
ysis and the older BEx Analyzer, and effectively. Don’t get me wrong, I thrown in the towel. As evidence, when
these are the only ones with formula suggest you pick some web-based dash- SAP purchased BusinessObjects, exist-
mode. Although these Excel-based tools boarding tools from Table 1, preferably ing SAP customers said, “Where’s my
come with some disadvantages (namely Design Studio, to roll out for the Excel?” Rather than argue why Web
PC installation and maintenance, and masses, and maybe one other web- Intelligence could solve their needs,
the added costs of purchasing Microsoft based tool for the light analysts. Then, SAP created BusinessObjects Analysis
Office versus the free web-based ones), pick a few of your best analysts and for Microsoft Office (e.g., Excel and
the underutilized formula mode tool Excel users, and implement one of the PowerPoint).
changes the way data is extracted from two SAP Excel-based tools: Busines-
SAP BW and sent to Excel. This feature sObjects Analysis or BW’s BEx So why does an Excel interface to SAP
alone, in my mind, moves SAP’s Excel- Analyzer. Once installed, read on and BW need to exist, and what can analysts
based tools up to the top of the tool list, learn about how to use the formula do with Excel that can’t be done just as
at least for a few key users. mode feature to get the most out of easily using web-based tools? The
these tools. answer is, really not much, but some
46 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
tasks are harder to accomplish without logic thrown in for kicks. Even this use HANA database, not in the application
Excel; for example, calculating new case can be nearly eliminated by using server layer, resulting in super-fast
measures that integrate local spread- the Analysis Process Designer (APD) performance.
sheet data. via BW transaction code RSANWB.
Basic use cases of Excel (those that Logic says these methods are better
The APD targets this advanced analysis than using Excel. Why download
don’t require merging data or wacky
with a robust upload of data and fea- 1,000,000 BW records to Excel and
custom calculations) can be easily repli-
tures to merge and manipulate data. In merge them with 10,000 local records,
cated using Web Intelligence, Analysis
addition, the APD joins with the data- versus doing the opposite and uploading
for OLAP, or even well-designed dash-
mining workbench for extremely the 10,000 records with access to the
boards. However, the use case that advanced analysis capabilities. Even power of APD or the newer HANA
justifies Excel is one in which local data better, when running BW on HANA, version? Alas, as I have learned, there is
on sheet 7 is merged with data from the newer version of the APD (called an great resistance on the FI side to giving
SAP BW, then pivoted on sheet 2, with SAP HANA Analysis Process), executes up on Excel. Excel always seems to
Visual Basic for Applications (VBA) most of this complex logic on the win, at least for now.
BEx Web Analyzer A pre-delivered WAD template, with one query exposed Analysts
BEx Reports A Crystal Reports wannabe that doesn’t offer as many Casual users needing static presentation of
features as Crystal Reports data. However, since the acquisition of Crystal
Reports by SAP, no one uses this much.
BEx Analyzer An Excel-based report with links to BW Super analysts and financial users
Crystal Reports 2011** The gold standard of the formatted reporting tools Everyone (analysts and managers) needing
static data presented very nicely, but it is
not used often (especially internally)
Crystal Reports for Enterprise** A newer version of Crystal Reports with the design Casual users needing static presentation
look and feel of Web Intelligence reports of data
BusinessObjects Analysis Office** Basically a slight re-do of the BEx Analyzer, but with Analysts
(PowerPoint and Excel the needed integration to HANA and to the Business-
Objects BI Platform (to save and retrieve)
BusinessObjects Web Intelligence** A web-based analysis tool for easy design of complex Everyone—power users and IT designers
documents by power users (however, not all the
needed analysis features are built in)
BusinessObjects Explorer** An intuitive interface that can be both fast and friendly Executives and managers
for simple analysis over the web
Lumira** A new graphing and analysis tool for advanced Everyone, from analysts to managers, but
graphical analysis some complex charting features really let
it shine as a self-service tool for advanced
analysis users
BusinessObjects Dashboards A tool that easily creates dashboards with Adobe Everyone
Flash, but is limited in data volumes
Design Studio** A new dashboarding tool positioned to replace Everyone (IT designed)
dashboards and WAD – HTML5 output
SAP Infinite Insight (formerly An easy-to-use predictive analysis tool set Analysts
KXEN)**
Table 1 The current stable of SAP analysis and reporting tools
Figure 2 The data from SAP BW is refreshed, creating a problem with the calculation in Excel
48 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
line for it. No formula appears—just the might not look right, but the long cryptic The formula’s logic is based on custom
number in the cell. This is not the way string is the technical ID for the Sales Excel functions that are installed on the
formula mode works, as I show. Volume EUR key figure. Knowing this, SAP system as part of the BusinessOb-
the formula is easy to interpret. Simply jects Analysis add-in or, similarly, BEx
Converting to formula mode is easy. In
stated, the formula returns for DS = 1 Analyzer (discussed in the next section).
the Analysis tab, in Tools, click the
(my formula mode query), the total sales
Convert to Formula icon (Figure 4). To get help using this formula, select
for all customers in the United Arab
This switches the spreadsheet to formula formula help in Excel as you would
Emirates (AE).
mode. At first glance, the numbers and normally (the small fx icon at the top of
attributes look the same, but upon closer To illustrate the independent nature of the screen in Figure 6, on the next
inspection, the formula for each cell ties these formulas, Figure 5 (on the next page). This opens up the pop-up on the
the cell independently to the SAP BW page) shows the formula randomly right of the figure where you can see a
Query output, not as a collective grid of placed in another cell on the spread list of all of the SAP-delivered func-
numbers and characters as it was before. sheet. It still returns the data per its tions in a list along with other Excel
In Figure 3, the highlighted formula formula logic. standard functions. These SAP functions
Figure 3 The normal presentation of SAP BW data in cells (there is no exact cell formula)
50 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
work with BW data (each begins with (Figure 7) is the data of the formulas Formula Mode with BEx Analyzer
SAP). These functions perform tasks directly linking to SAP BW via the
The example discussed above focuses
such as returning variable values imbedded (but hidden) query.
on formula mode within BusinessOb-
selected by the user or returning the
jects Analysis. However, the older BEx
background filters assigned in the query. In this same Worksheet (Figure 7) with
analyzer tool actually has slightly more
(To find out more about these functions, the same embedded formula mode
functionality related to formula mode.
look at the topics in the Contents tab or query (Data source1), I entered in a
The functionality of converting to
use the Search tab in the pop-up screen bunch of cells manually. Make special
formula mode in the BEx Analyzer is
as you would to find out information note of the Sale Report for: DE cell in
nearly the same, except that access is
about other non-SAP functions, shown D4 and the technical names of the cus-
via a right-click context menu on the
at the bottom of Figure 6). tomers in C14 – C22. Now let’s focus
table of data versus the menu bar icon
on the formula.
Once you know about these SAP-spe- option in BusinessObjects Analysis.
cific functions and how to use them, the Select a cell on the query-returned
Although nearly the same as the prior matrix of cells that you want to convert
world is your oyster. With this new-
example, in this case I replaced the to formula mode (in this case, DE), and
found knowledge, now you can easily
hard-coded DE data and each customer right-click to open the context menu.
solve the issues presented in Figures 1
name with a reference cell. For DE you Then select the Convert to Formula
and 2.
can see the & $D$4 syntax (circled in option (Figure 8 on the next page).
To be clear, as long as the Worksheet the figure), and for the customer you Formula mode is activated just as it was
has an embedded query behind the can see the exact reference to cell C14. with the button version in BusinessOb-
scenes, there is actually no need to The customer that shows up in cell C14 jects Analysis.
display the SAP-supplied grid of data will be used, regardless of whether it’s
produced by the query when using customer number 1000, or customer Another difference between Business-
formula mode. To illustrate this, Figure name ABC Supermarkets, or AAA Objects Analysis and BEx Analyzer is
7 shows an Excel Workbook that gets supermarkets; the system does not care. that, with BEx Analyzer, the older
its data from the same query as the one This fixes the problem shown in Figure BExGetData syntax is used (versus the
shown in Figure 5, but the SAP-gener- 1, and gives the Excel designer (maybe SAPGetData syntax with Business-
ated default presentation of the data that assisted by VBA code) the ultimate Objects Analysis). Looking at the
used to be on sheet one (in Figure 5) is power in designing a super-complex differences of each, you notice that the
not shown at all. The data shown here Excel Workbook. older BExGetData syntax starts with
Figure 7 Formula mode with the cell formulas linking SAP BW data with cells that contain local data, not SAP-delivered data
Figure 8 Select the Convert to Formula option from the context menu in BEx Analyzer
52 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
that you can use to customize the display For the analysis grid there is a special When the analysis grid is rendered in the
of tables of data, as well as option you can set in the design process BEx Analyzer workbook, as shown in
customizing buttons and check boxes. called Use Formulas (Figure 10). Figure 11 on the next page, the data is
Figure 10 Select the Use Formulas check box when designing your table
Figure 11 The Use formulas option keeps the BEx Analyzer context menu navigation options
54 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
>> Note native Excel. To solve this problem (and to see the
data as it was last retrieved), click the
To learn more about BEx Analyzer, As a final note, if the Use Formulas
pencil icon next to the Dataprovider
take SAP training class BW306; to option is chosen for the analysis grid, field (on the back screen of Figure 12).
learn more about BusinessObjects the user gets an instant error message In the Change Data Provider pop-up
Analysis, take SAP training class when the Workbook is opened. This is window that opens, select the Provide
ANA010.
because the formula for each cell Results Offline check box and click the
requires a link to the server to execute. OK button. n
Ned Falk is a senior education consultant at SAP. In prior positions, he implemented many ERP solutions, including SAP
R/3. While at SAP, he initially focused on logistics. Now he focuses on SAP HANA, SAP NetWeaver BW, SAP CRM, and
the integration of SAP NetWeaver BW and SAP BusinessObjects tools. You can meet him in person when he teaches SAP
HANA, SAP NetWeaver BW, or SAP CRM classes from the Atlanta SAP office, or in a virtual training class over the web.
If you need an SAP education plan for SAP HANA, BW, BusinessObjects, or CRM, you may contact him via email at ned.
falk@sap.com.
Learn the basic steps to set up a new flavor of HANA information views, the star join >> Key Concept
graphical calculation view. Understand why it is a valuable new addition in the HANA studio A new graphical calculation view
modeling tool chest. option offered in HANA Support
Package 7.0, called star join,
allows for easy modeling of a star
Star joins are a new option in your has graphical tools (such as Microsoft
schema. Although an analytic
HANA modeling tool chest. They over- Access) to make for a more user-
view previously allowed the cre-
come the constraints that limit your friendly process for creating these
ation of a star schema, it had
options when modeling complex analyt- views. When the HANA graphical mod-
limitations involving sourcing of
ical views with measures from more eling toolset is used and views are
measures from more than one
than one table. To illustrate my points activated, the system creates the needed
fact table. These limitations are
with a real-world twist, I’m using a sce- code. In addition, these modeled content
not an issue for the new star join
nario revolving around the analysis of views are, in most cases, available for
graphical calculation view.
airline performance data. use with various reporting tools.
56 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
The single table constraint refers to the (highlighted with shaded icons) that are view where the join depicts measures
prohibition that forces the modeler from included in the output only include from more than one analytic view.
using more than one measure table in an measures from the table on the left. The
analytic view. Unlike SAP BW’s fact airlines table used in the foundation
One negative about the modeling of
table, the analogous foundation of a does not provide measures to the model.
complex star schemas using attribute,
HANA analytic view can include attri- Additionally, notice that the logical join
analytic, and calculation views is the
node of the analytic view (not high-
butes in addition to the attributes number of objects you are maintaining.
lighted) is where the attribute views are
contained in the attribute views. These Another is the fact that these views
joined to the foundation (facts) to make
are added later. However, to be clear, a drive HANA to use different software
a star schema model.
HANA analytic view’s foundation engines in the ultimate calculation. The
cannot contain measures coming from system manages this processing but it is
more than one table. In HANA before Support Package 7.0, if less efficient than having the logic done
you wanted to combine measures from in just one engine. One slight advantage
Figure 1 shows an example of an ana- more than one table, you needed to use a to this method is the clean reusability of
lytic view that highlights two tables in calculation view. Figure 2 (on the next the attribute views, but this might not
the foundation. Notice that the fields page) shows the graphical calculation be worth the tradeoff in speed.
Cube (star schema) Analytic view or new star join calculation view
58 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Figure 3 Choose the Dimension Data Category option for the calculation view type
Figure 4 The airport dimension with joined tables representing airport master data
60 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
show that the star joined cube does assemble your star schema. First point star join node. Make your selections for
not limit the sources of the measures your measures table collection (e.g., the output fields, and then move on to
(as does the analytic view, as discussed Join_1 in the Scenario section of the final step.
above) I grab measures from more than Figure 7) to the star node. Then, in the
one table. The only difference here is traditional way (shown in Figure 8), As with all views in HANA, the last
the defaulted star join node that you are add the dimensions to the star node. step is to define the semantics. After
forced to use later. The join process for You should be aware that only the selecting the semantics node, you have
the objects is identical to that of other sources of the measures (in this case, the option to tell the system a revised
nodes you have used previously in the the join) and the dimension calculation field name and, more importantly,
construction of calculation views. views can be joined in the star join determine if the field should be treated
node. After you pick the pre-existing as a measure or as an attribute. The
After you finish the modeling for the airports and airlines dimensions, semantics node is highlighted as shown
sources of the measures, you need to Figure 8 shows the join needed in the in Figure 9 on the next page.
Figure 7 A Join node of a star join calculation view (measures from more than one table)
Figure 8 Join dimensions with the measures in the star join node (along with the ability to preview the data via the context
menu on the any node)
Once you finish defining the semantics fields activate it and deploy your view Explorer, or the newer BusinessObjects
fields you’re done modeling. To use into the BusinessObjects Web Intelli- Analysis, Design Studio, or Lumira
your view containing all the semantics gence Reports, BusinessObjects visualization tools. n
Ned Falk is a senior education consultant at SAP. In prior positions, he implemented many ERP solutions, including SAP
R/3. While at SAP, he initially focused on logistics. Now he focuses on SAP HANA, SAP NetWeaver BW, SAP CRM, and
the integration of SAP NetWeaver BW and SAP BusinessObjects tools. You can meet him in person when he teaches SAP
HANA, SAP NetWeaver BW, or SAP CRM classes from the Atlanta SAP office, or in a virtual training class over the web.
If you need an SAP education plan for SAP HANA, BW, BusinessObjects, or CRM, you may contact Ned via email at ned.
falk@sap.com.
62 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
With the latest release of SAP Lumira Desktop, you can now connect directly from SAP >> Key Concept
Lumira Desktop to your SAP BW system using BEx Query connectivity. Learn the steps Until recently, SAP Lumira
required to connect to SAP BW using this new option and see how your existing metadata Desktop was able to leverage a
is supported by SAP Lumira. Universe-based connectivity
towards SAP BW InfoProviders
SAP Lumira is SAP’s newest product data from your SAP BW systems, such and a connectivity towards SAP
for the discovery and analysis area of as restricted and calculated key figures HANA analytical models when
the overall business intelligence suite. and hierarchies. Finally, I take a look at using SAP BW on SAP HANA. With
In the latest release for SAP Lumira what some of the known limitations are the latest release, SAP Lumira
Desktop, the option to connect directly for this new data connectivity option Desktop also offers connectivity
from SAP Lumira Desktop to the BEx and how this impacts your BEx Query towards BEx Queries, allowing
Queries in the SAP BW system was design. users to leverage more of their
added, allowing you to leverage a lot existing metadata in SAP BW.
more from your existing metadata.
Data Connectivity Overview
I first review the general workflow for Figure 1 shows the previously existing InfoProvider level, as well as the option
how you can connect to your BEx data connectivity, which leverages the to now connect SAP Lumira Desktop
Queries. Then I look into specific meta relational Universe connecting to the directly to the BEx Query.
64 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Business Intelligence > SAP Lumira 5. You are prompted to enter the con Roles or InfoAreas. Based on your
> SAP Lumira. nection details, such as the Client ID, drop-down selection, a corresponding
Language, User, and Password (Fig list of entries opens, as shown in
2. Select the menu File > New, which ure 5). Note that the list of available Figure 7 on page 67. In this example,
results in the screen in Figure 4 (on SAP BW servers is derived from the I choose InfoAreas.
the next page). SAP front end.
3. Select the Connect to SAP Business 8. In the next step, you can select the
6. Enter the required details and click
Warehouse option. BEx Query from the list of available
the Connect button, which opens the
queries.
screen in Figure 6 on page 67.
4. Click the Next button (not shown)
which opens the screen in Figure 5 7. In this screen (Figure 6) you have 9. Click the Create button to start the
(on the next page). the option to select either the SAP creation of your SAP Lumira report.
66 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
68 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
• You do not have access to the context Support for Existing Metadata few characteristics in the Free Charac
menus for dimensions or measures, teristics (Country, Sales Organization,
Now that you are connected to your
which means that you cannot create Sold-to Party and so on) and Rows
SAP BW system, let’s look into the
your own measures, create a custom (Calendar year and Region), and a few
details of which—and how—BEx
hierarchy, merge columns, create a Key Figures (Costs, Net Value, Open
Query elements are supported by SAP
order quantity, Open Order Value, and
calculated dimension, or create a cal Lumira Desktop. First, let’s look at a set Order Quantity).
culated measure. of scenarios in which SAP Lumira
Desktop has some limitations, and then Figure 10 on the next page shows how
Before going into any more detail about
I will summarize the support for BEx SAP Lumira leverages such a BEx
what these limitations mean for you and Query, by placing all the elements from
Queries in SAP Lumira at the end of
the potential impact on BEx Query the Rows area into the Rows, and all
this section.
design, let’s first look at the support for the Key Figures into the Primary Values
the existing metadata from your under Figure 9 shows a BEx Query based on area of the default table visualization. In
lying BEx Query. the SAP NetWeaver demo model with a addition, all the characteristics and key
70 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
figures are available in the DIMEN In this scenario, the underlying BEx Figure 13 (on the next page) shows
SIONS and MEASURES areas, and any Query contains BEx variables, so those another BEx Query—in this case, a
available hierarchy defined in SAP BW are presented in SAP Lumira when the BEx Query with two structures showing
for those characteristics are also avail data is acquired (Figure 12 on the next selections for the quarters in the Rows
able in the DIMENSIONS area as well, page). and restricted Key Figures for the
Revenue US and Revenue Europe in
here shown for Country, Sales Organi SAP Lumira does support BEx variables, the columns.
zation, and Product (see Figure 10). but there are still some limitations:
When using this kind of BEx Query in
Figure 11 shows the Characteristic Res • A selection option variable from a BEx SAP Lumira Desktop, the key figure
trictions area of the BEx Query designer Query does offer SAP Lumira users the structure is available for use, but the char
with three variables defined for a BEx ability to exclude selected values. In acteristic structure is not available (Figure
Query: Please select the Products, other words, the exclude option can 14 on page 73). In other words, as of now,
Please select a range, and Please select only be applied to all selected values BEx Queries with two structures are not
the Country. and not to individual selections. usable with SAP Lumira Desktop.
72 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
In addition to the previously outlined values when the user is being prompted. • A configured scaling factor in your
scenarios, here are some additional lim BEx Query results in SAP Lumira
itations based on specific BEx Query • SAP Lumira Desktop supports the Desktop showing the correctly scaled
scenarios: settings for displaying the Key or numbers, but there is no information
Text for the characteristics based on about the actual configured scaling
• If the underlying BEx Query contains a
the setting in the underlying BEx factor available.
hierarchy and hierarchy node variable,
SAP Lumira does not recognize the Query. Users do not have the option • The configuration option for the dis
dependency of those two variables, to make the decision about which play of subtotals in the BEx Query is
which can lead to incorrect lists of fields to use in SAP Lumira Desktop. being leveraged by SAP Lumira
Currencies and units Currencies and units are only supported in SAP Lumira Desktop using the cross-tab visualization and
are not supported in other visualizations.
Hierarchy Each available hierarchy is shown as available hierarchy in SAP Lumira Desktop and can be activated
for usage.
Key figure Key figures are available in SAP Lumira Desktop. In case a scaling factor has been configured, the
scaled value is shown, but the information on the used scaling factor is not available in SAP Lumira
Desktop.
Calculated/Restricted key figure Restricted and calculated key figures are treated like key figures in SAP Lumira Desktop.
Filter Filters are applied to the underlying query but are not visible in SAP Lumira Desktop.
Display attribute Display attributes are not available in SAP Lumira Desktop.
Navigational attribute Navigational attributes are treated the same way as characteristics.
Variables Each variable with the Ready for Input property results in a prompt during the data acquisition phase.
Custom structure A custom structure based on characteristics is not supported in SAP Lumira Desktop. A custom
structure based on key figures is supported in SAP Lumira Desktop.
Conditions Conditions are only supported in SAP Lumira Desktop using the cross-tab visualization and are not
supported in other visualizations.
Local calculations Key figures configured with a local calculation are supported in SAP Lumira Desktop.
Table 1 A list of support for BEx Query elements by SAP Lumira Desktop
74 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Ingo Hilgefort started in 1999 with Seagate Software/Crystal Decisions as a trainer and consultant. He moved to Walldorf
for Crystal Decisions at the end of 2000, and worked with the SAP NetWeaver BW development team integrating Crystal
Reports with SAP NetWeaver BW. He relocated to Vancouver in 2004 and worked as a product manager/program manager
(in engineering) on the integration of BusinessObjects products with SAP products. In addition to his experience in product
management and engineering, Ingo has been involved in architecting and delivering deployments of SAP BusinessObjects
software in combination with SAP software for a number of worldwide customers, and is an SAP Mentor for SAP Business-
Objects and SAP integration related topics. You may contact Ingo via email at editor@bi-expertonline.com.
There are challenges to implementing the Near Line Storage (NLS) solution using Sybase >> Key Concept
IQ, and pitfalls to look out for during implementation. Learn tips for how to determine what Near Line Storage (NLS) using
to archive, how to segregate data, changes to the dataset, and understanding some fea- Sybase IQ allows data to be off-
tures of the overall solution. loaded from the SAP BW HANA
system and therefore saves on ex-
pensive HANA hardware and main-
Near Line Storage (NLS) using Sybase discuss what you need to consider when tenance costs. However, there are
IQ allows data to be offloaded from the administering and implementing SAP several important things to under-
SAP BW running on HANA system NLS based on Sybase IQ. stand about implementing this
onto the NLS system. Sybase IQ is the product before proceeding.
database optimized for BI and NLS that
Choosing What to Archive
is run by Sybase, a company purchased
by SAP in 2010. Sybase IQ provides There are several things to keep in mind
assume that sales order data for the last
slower query access but does allow data when choosing which areas of the SAP
year and older have been archived to
that is not often used to be moved to the BW system to archive. Obviously, it is
NLS and deleted from the SAP BW
NLS system, thus freeing up the SAP advised to choose those areas that have
system. Then, a user in the transactional
HANA system for newer, more dynamic the most volume. Once implemented,
SAP ERP Central Component (ECC)
data. this would allow larger amounts of data
system makes a change to an old order;
to be taken off the database and moved
this would trigger a delta to SAP BW.
into the NLS system. However, it is not
By offloading the data onto the NLS Once that delta attempts to load, the
always as easy as just choosing the
system, it is possible to still have access system provides an error message in the
largest DataStore Objects (DSOs) or
to this data for query purposes but it load monitor screen (Figure 1). There is
InfoCubes when selecting what to
takes the data out of the costly SAP no way to update this data unless you
archive.
HANA nodes which stores data hot in bring this archive back into SAP BW,
memory. This move typically results in SAP BW does not allow records that run the delta load, and re-archive the
big cost savings for companies. As the have been archived to be updated via a data back to NLS. This can be a time-
NLS tool using Sybase IQ is rather new, data load change. This can cause quite consuming and cumbersome manual task.
there are some important tips to under- an issue if the data that is to be archived
stand how to optimize its use. Here I is at all dynamic. For example, let’s I recommend that non-dynamic data be
chosen when determining what kind of
>> Note data to archive. This means data that
For more information about Sybase IQ, see my BI Expert article, “Under- has little or no chance of being updated
standing SAP NetWeaver BW Near-Line Storage (NLS) Based on Sybase IQ” in the archived dataset. Some examples
(http://sapexperts.wispubs.com/BI/Articles/Understanding-SAP-NetWeaver- of this type of data would be Profitabil-
BW-Near-Line-Storage-NLS-Based-on-Sybase-IQ?id=D2A3534FB30C42DE- ity Analysis (CO-PA), invoice, and
A9BBC66DC1323C9F#.VG9-fPnF_wg). general ledger data. If more dynamic
datasets are chosen, it is important to
76 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
choose data that is older and has little Distribution of Data tion methodology is implemented. For
chance of incurring a delta record from example, if data is segregated by plant,
One decision that must be made when how much data is in each plant? If a
the transactional system.
archiving is determining which charac- DSO is used for this, it is very easy
SAP has planned (in a future upgrade of teristics to use to segregate the archived because the data can be analyzed by
NLS in SAP BW and Sybase IQ) to datasets. Typically time is used as one viewing the table contents using trans-
allow delta records to directly update partition—for example, segregation of action code SE16 and using table counts
the data in Sybase IQ. This means that data by month. However, it is often of the records.
any delta record that comes into SAP helpful to also use an additional charac-
teristic such as plant or company code This becomes more challenging if the
BW for an archived NLS data record
to segregate archives to make for smal data is stored in an InfoCube. SAP has
would simply update that record in
ler datasets and allow for better provided a tool for seeing the segrega-
Sybase IQ. This would be a great feature tion of data within an InfoCube. To use
archiving performance.
as it would allow more dynamic data to the segregation tool, execute transaction
be archived without fear of a delta record To determine what characteristics would code ST13 (Figure 2) and choose the
causing issues with the data. According make the most sense, it is useful to see tool name BIIPTOOLS. Then click the
to SAP, this was tentatively planned for how the data is stored and how much execute icon, which opens the screen in
release at the end of 2014. data falls into each archive if a segrega- Figure 3 on the next page.
Figure 1 Error message when trying to load a delta into an archived dataset
78 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
80 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Determining Run Time the query performance of data coming to use that tool to enhance the speed of
from either source, or data combined accessing data.
To determine the speed of data access for from both sources. It is possible to use
data that is stored in a near-line archive the statistics data that comes from the Execute transaction code RSRT and
in Sybase IQ versus data that is stored in query monitor (transaction code RSRT) choose a query. Choose the Execute +
SAP HANA, a tool is needed to assess in order to assess the speed. Here is how Debug option. The system allows you to
Figure 8 Statistics of data in HANA and NLS from transaction code RSRT
82 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
choose parameters for your evaluation view of the performance of each storage how much data has been moved, per
(Figure 7). Choose the two options area of the data as well as the number centage complete, sizing, and so on.
highlighted in Figure 7: Display Statis- of records in each. This is a rather large functionality gap of
tics Data and Do not Use Cache. Then
which SAP is aware. Despite this, SAP
run the query as normal. The system
Dashboard Status has not committed to any functionality
shows the statistics of the query runtime
to provide this visibility in SAP BW.
(Figure 8). An issue with the implementation and
Thus, currently the only way to find
Look at the Aggregate column in use of Sybase IQ archiving with SAP
this data is to work with someone who
Figure 8. If the value in this column is BW is the lack of visibility from the
understands administration in Sybase
suffixed with $X, this represents the SAP BW system of the status, storage,
and administration of data in Sybase IQ and try to view this administration
statistics for the SAP HANA database.
If it has a suffix of $N, it represents the IQ. For example, there is no way to see data from that system. So far I have not
statistics for the data coming from NLS what archive jobs are currently being been able to adequately provide a good
based on Sybase IQ. This provides a run, how long they have been running, dashboard of this data. n
Gary Nolan is an SAP NetWeaver BW-certified consultant and author of Efficient SAP NetWeaver BW Implementation and
Upgrade Guide and Efficient SAP NetWeaver BI Implementation and Project Management. Gary specializes in gathering
and evaluating requirements, configuring SAP NetWeaver BW, and providing project management, performance management,
and data architecture and data modeling expertise. A former platinum consultant with SAP America, Inc., Gary has more
than 20 years of SAP experience, working with SAP NetWeaver BW since version 1.2B. Gary may be contacted via email
at editor@bi-expertonline.com.
With the acquisition of SAP BusinessObjects a few years back, SAP extended its offerings >> Key Concept
in the Business Intelligence (BI) area and is now in a position to offer companies a broad SAP offers companies an SAP
range of BI products. With this larger set of BI clients also comes more complexity when BusinessObjects BI portfolio that
choosing the right BI tool based on your own specific requirements. Learn about the avail- provides a set of BI tools, each
able options and how to choose the best BI tool to meet your company’s needs. with its own strengths and weak-
nesses. Each of these BI clients is
designed with specific use cases
With the addition of SAP BusinessOb- Agile Visualization and personas in mind—none
jects BI to the overall SAP portfolio and In the agile visualization category you cover all types of requirements.
with the combined roadmap of SAP BI find SAP Lumira, SAP BusinessObjects As a result, companies must be
products and SAP BusinessObjects BI Explorer, SAP BusinessObjects Analy- mindful when selecting the best
products (e.g., SAP BusinessObjects sis, edition for Microsoft Office, SAP product to use for their specific
Analysis, edition for Microsoft Office BusinessObjects Analysis, edition for needs.
and SAP BusinessObjects Design OLAP, and SAP Predictive Analysis
Studio), companies have more choices (Figure 1). Notice that all of these These are all requirements that your
to make when it comes to determining products have one important thing in stakeholders might request when they
their BI strategies. common: they’re all designed for a describe their needs. More than likely,
business-analyst or power-user type of you can then identify an agile visualiza-
Before going into too much detail, let user and do not require IT to be part of tion category product that is able to
me first explain some of the criteria you the overall process. It is important to provide the necessary functionality to
can use to narrow down the list of remember, however, that these products fulfill these requirements. As stated pre-
potential BI clients for your audience. do have different strengths and weak- viously, the most important aspect in
I’ll also take a look at the overall SAP nesses and that none of them covers all this category is the fact that these func-
BusinessObjects BI portfolio and the of your requirements on their own. tionalities can be leveraged by the
different kind of categories that are business user without the need to
In the agile visualization category, you
available as part of the portfolio. often find requirements such as being involve IT.
able to:
SAP BusinessObjects BI • Change the view of the data in the
Dashboards and Applications
Portfolio—An Overview report. There are two main products in the
dashboards and apps category: SAP
The SAP BusinessObjects BI portfolio
• Create and edit the report by the user. BusinessObjects Dashboards (formerly
is grouped into three main categories:
• Enrich the data and merge different Xcelsius) and SAP BusinessObjects
1. Agile visualization data sets. Design Studio (Figure 2). Both of these
products offer the capabilities to build
2. Dashboards and applications • Create new calculations as part of the dashboard-style content based on your
report. corporate data and both are designed for
3. Reporting
an IT-based audience. These products
• Search in the data set.
In the following sections I discuss each are designed for the IT department to
of these categories in detail. • Ask questions. create the content, which then can be
84 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Figure 3 Reporting
86 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
products in the overall SAP Business These roles might have different names Decision-Maker Persona
Objects BI portfolio and the different in your company—for example, an So let’s start with the decision-maker
categories in the overall portfolio, it is analyst might be called a power user or role (highlighted in Figure 4). The deci-
also very important to understand the business analyst, and a decision maker sion maker’s persona requires that
different personas (roles) in your might be referred to as senior manage- information be highly visualized. In
company and how these different perso- ment or a line of business manager. addition, this information needs to be
nas are matched up with the different BI However, you will find these five basic available online, offline, and on mobile
tools. types of personas in your company devices. The decision maker needs to be
able to consume this information
Normally you find these five roles in (even if labelled differently), all with
quickly and, if required, needs to be
your company (Figure 4): different skills and different needs. It
able to analyze the information on its
• Decision maker could also be that some of these roles own without having to rely on the IT
are filled by a single person. For department to create or change a report.
• Analyst example, in your organization a Typically, the decision maker is a role
• Consumer designer and an analyst might actually found in senior management, line of busi-
be the same person. My point is that ness management, and on an executive
• Designer there are different kinds of roles in your leadership team. Therefore, it is very
company, each having different require- important that the information is avail-
• IT
ments, and each of these roles might not able visually and is easily consumable.
>> Note match up exactly to one person—
instead a single person in your company Analyst Persona
In this context, the words persona
and role are used interchangeably. might fulfill the responsibilities of more The analyst persona (Figure 5 on the
than one role. next page) is often your go-to person in
88 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
90 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Ingo Hilgefort started in 1999 with Seagate Software/Crystal Decisions as a trainer and consultant. He moved to Walldorf
for Crystal Decisions at the end of 2000, and worked with the SAP NetWeaver BW development team integrating Crystal
Reports with SAP NetWeaver BW. He relocated to Vancouver in 2004 and worked as a product manager/program manager
(in engineering) on the integration of BusinessObjects products with SAP products. In addition to his experience in product
management and engineering, Ingo has been involved in architecting and delivering deployments of SAP BusinessObjects
software in combination with SAP software for a number of worldwide customers, and is an SAP Mentor for SAP Business-
Objects and SAP integration related topics. You may contact Ingo via email at editor@bi-expertonline.com.
92 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Learn the technical requirements of the SAP BusinessObjects BI portfolio and how to use >> Key Concept
them to help you select the right BI tool. Find out how to use these new rules and apply SAP’s BusinessObjects BI portfolio
them to some sample scenarios. provides organizations with a set
of BI tools, each with its own
strengths and weaknesses. Not
Companies need to evaluate the best option to sort and filter the data in the
all these BI products can fulfill the
available BI tools to meet their needs. report interactively.
same technical requirements. As
BusinessObjects BI portfolio’s tools
Two key differentiators of the portfolio a result, companies need not only
meet some technical requirements, but
are features that allow end users to to evaluate the products they use
each tool comes with its own pros and
merge data within the BI client without but also to look at some of the
cons. I show you the differences between
having to rely on the IT team, and to technical requirements to ensure
each tool and guide your selections to
create calculations. Merging data refers they select the best possible
best meet your organization’s specific
to the capability that your end user has product based on their own
requirements.
to combine data from a different source requirements.
in the BI content without having to go
SAP BusinessObjects BI through the IT department, and without in a self-service fashion is only sup-
Portfolio Charting Options having to change some underlying data ported by SAP Lumira; Predictive
Figure 1 on the next page compares models. For example, the user can join Analysis; Analysis, edition for Micro-
some technical capabilities of the SAP data coming from SAP Business Ware- soft Office; Analysis, edition for OLAP;
BusinessObjects BI portfolio and some house (SAP BW) with data coming and Web Intelligence (also known as
typical end-user features across the from SAP ERP in the report itself. The WEBI or WebI).
complete SAP BusinessObjects BI port- functionality to create calculations in
the content is offered by almost all the Figure 2 on the next page compares the
folio. Notice that all the products offer
BI products, but the functionality that web-based and mobile-device-based
capabilities such as a drill down or the
enables end users to create calculations access for the BI products, as well as
the support for offline access. Notice
>> Note that only a few BI clients support offline
access and web-based authoring of
In my related BI Expert article, “Selecting the Right BI Tool: SAP Business-
content.
Objects BI Portfolio and Personas,” on page 84, I review the overall SAP
BusinessObjects BI portfolio and the different users who are relevant for BI In the Mobile BI access column in
project and requirements gathering. In addition I make a distinction between Figure 2 note that an X is entered in the
just consuming reports and analytics, and the role of creating content. rows for SAP BusinessObjects Analysis,
edition for Microsoft Office, SAP Busi-
>> Note nessObjects Analysis, edition for OLAP,
and Predictive Analysis. The X indi-
I sometimes refer to the SAP BusinessObjects Analysis Suite of products. In
cates that there is no mobile BI solution
this context this refers to SAP BusinessObjects Analysis, edition for OLAP; SAP
for these products. For SAP Business
BusinessObjects Analysis, edition for Microsoft Office; and SAP Business-
Objects Analysis, edition for Microsoft
Objects Design Studio.
Office, and SAP BusinessObjects Anal-
94 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
ysis, edition for OLAP, the mobile tions look for very specific visualization Figure 5 on the next page includes the
solution is SAP BusinessObjects Design options, it is important to recognize that waterfall chart as one of the composi-
Studio. In addition, both the analysis not all the BI products support an iden- tion charts. This chart has become
clients are integrated with SAP Business- tical list of available chart types. As you increasingly popular with organizations.
Objects Design Studio so that you can can see in Figure 3, most of the listed You can see that, with the exception of
automatically create mobile content for comparison charts are available across Crystal Reports and Explorer, this par-
your workbooks. Predictive Analysis the SAP BusinessObjects BI portfolio, ticular chart is covered well in the
also doesn’t have an out-of-the-box with the exception of the bar chart, overall BI portfolio.
mobile solution, but you can share your stacked bar chart, and polar chart.
content via SAP Lumira Cloud and in Figure 6 on page 97 shows the complete
that way enable content from SAP In Figure 4 on the next page you see coverage in the BI products for the
Predictive Analysis for mobile devices. the two distribution chart types avail- scatter and the bubble charts. However,
able in the SAP BusinessObjects BI Figure 7 on page 97 shows the differ-
Figure 3 compares the availability of portfolio: scatter and histogram. Note ences in the support for key performance
specific types of charts across the BI that the histogram chart is only avail- indicator (KPI) charts, such as a gauge
portfolio. As more and more organiza- able with Crystal Reports. or a sparkline.
96 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
98 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
100 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
the hierarchy nodes are functionalities Three Example Scenarios to budget along several dimensions. He
that are only supported by the SAP needed to see these measures along the
Help You Choose
BusinessObjects Analysis suite of company structures as well as compare
So far I have given an overview of the information from several sources. He
products.
technical points of SAP BusinessOb- also needed to add his own calculations
In addition to the support for the hierar- jects BI portfolio. The next step is to to answer on-demand requests from
chical workflows, Figure 13 on the next take a look at three different scenarios senior management. In addition, he
page shows the support for a set of key with different requirements, and how to wanted to leverage the information
capabilities defined in a BEx query. The identify the right BI product to meet inside Microsoft Excel, but it also
support for BEx query conditions, each organization’s needs. In each sce- needed to be available to use in a
exceptions, and the ability to leverage a nario I first outline the requirements, browser.
pre-configured zero suppression is limited put those requirements in a short list of
deliverables, and then match those back Here is a summary of the requirements:
to the SAP BusinessObjects Analysis
to the BI products.
suite. If these types of capabilities • Based on the description, the hierar-
become relevant for your requirements, chies for the cost and profit center
you need to look at the SAP Business-
Scenario 1: Financial Management
reporting, as well as the company
Objects Analysis Suite as the other BI In the first scenario I received the fol- structures, have to be leveraged.
clients do not support those features. lowing instructions from the financial
manager: • The customer structures in the BEx
The inability to support these types of
queries might have to be leveraged.
BEx query features results in far larger The financial manager for the West
data volumes than expected and can Coast region of North America needed • The reports need to be available in
lead to a bad performance, the result of to be able to analyze cost and profit Microsoft Excel and a browser-based
which is a negative user experience. center actuals toward the allocated access should be possible as well.
102 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
on mobile devices. He also stressed that with attached PDF files. • Users needed to send out the reports
each sales representative needed to be as PDF files and distribute these to a
Here’s a summary of the requirements: larger audience via email.
able to change the report as they wished
so that they can see the information by • The information needed to be avail- • For the sales manager, some simple
opportunity, product, week, and month, able on-premise (in the office), what-if scenarios would be a great
as well as other options. Actual hierar- asset.
offline (on the road), and on mobile
chies are only used in a limited way.
devices. Figure 15 on the next page shows the
Personally, as the sales manager, he
mentioned it would be of great value to • Users needed to be able to change the different BI clients alongside the sales
be able to run some simple scenarios to manager’s requirements. Starting by
report and to change the view on the
excluding some of the BI clients based
see how certain changes could impact data along several dimensions by
on these requirements, the list of
the pipeline; for example, a change in themselves. options can be quickly narrowed down:
the product cost or price. Finally, he
noted that some of his sales colleagues • There was only a limited need to • Crystal Reports, SAP Business
preferred to get information via email leverage hierarchies. Objects Dashboards, and SAP
104 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
important to also consider the audi- ence is the best possible, and therefore, Analysis, edition for OLAP, Crystal
ence—the leadership team—as a very I recommend that you exclude SAP Reports, Web Intelligence, and Predictive
important criterion. In this scenario you BusinessObjects Analysis, edition for Analysis. These listed products are not
want to make sure that the user experi- Microsoft Office, SAP BusinessObjects necessarily designed for this type of
user audience and might provide too
>> Product Roadmap Disclaimer much information and not be enough. In
this scenario I recommend that you use
The descriptions of future functionality are the author’s interpretation of the
SAP BusinessObjects Design Studio to
publicly available product integration roadmap. These items are subject to
change at any time without any notice, and the author is not providing any create an executive dashboard and pro-
warranty on these statements. vide SAP Lumira for the self-service
aspects when needed. n
Ingo Hilgefort started in 1999 with Seagate Software/Crystal Decisions as a trainer and consultant. He moved to Walldorf
for Crystal Decisions at the end of 2000, and worked with the SAP NetWeaver BW development team integrating Crystal
Reports with SAP NetWeaver BW. He relocated to Vancouver in 2004 and worked as a product manager/program manager
(in engineering) on the integration of BusinessObjects products with SAP products. In addition to his experience in product
management and engineering, Ingo has been involved in architecting and delivering deployments of SAP BusinessObjects
software in combination with SAP software for a number of worldwide customers, and is an SAP Mentor for SAP Business-
Objects and SAP integration related topics. You may contact Ingo via email at editor@bi-expertonline.com.
Learn the steps needed to set up a HANA studio user interface to access some of the BW >> Key Concept
modeling tasks normally done in BW transaction code RSA1. As HANA and BW modelers A new Eclipse-based user inter-
merge and overlap tasks, the ability to model windows into each type of modelers’ worlds face (UI) is available for modeling
becomes more and more important. BW objects when running BW on
SAP HANA. This interface is inte-
Transaction code RSA1, as most BW understand this article. With BW 7.3, grated in the SAP HANA studio UI,
users know, is the Administrator’s SAP introduced transient InfoProviders, and allows for the easy integration
Workbench for SAP BW. This is where composite InfoProviders, and improved and visibility of both native SAP
a BW user lives—where they model virtual InfoProviders by creating SAP HANA and BW objects in one UI.
InfoProviders and the ETL process as HANA-based virtual InfoProviders.
well as monitoring and remodeling and Although this is not the main subject of
almost everything else a BW user does. this article, you need to be familiar with >> Note
With BW on SAP HANA, many things these InfoProviders to understand
The transient InfoProviders I dis-
are improved. For example, it provides what BW 7.4 on SAP HANA is
cuss in this article are the ones
super-fast access and flattens cubes, and adding to the mix. Follow this link to
involving the SAP HANA database.
there are many more options for model- read more about the newer InfoPro-
ing objects that are accessible to BI viders: http://sapexperts.wispubs.com/
• Analysis Process Designer (APD) –
front-end reporting tools. In BW 7.3 on BI/Articles/Introducing-BW-7-3-s-
The transient is called an analytical
SAP HANA and even before that, with New-InfoProviders.
index
BW 7.3 running with a Business Ware-
house Accelerator, SAP introduced Transient InfoProviders • BW Workspaces – The loading of a
some of the new possibilities. file or snapshot query is the transient.
A transient InfoProvider is not a normal
One major improvement is the new (You can read more about Work
BW InfoProvider as it can be loosely
Eclipse-based (SAP HANA studio) user spaces in my BI Expert article, “An
defined as an InfoProvider that is created
interface (UI), which is an option for Introduction to BW Workspaces in
without using transaction code RSA1 (as
modeling for BW as of this newest 7.3: Increase User Flexibility with
mentioned previously, BW’s Administra-
release (SPS7 on SAP HANA with BW Central Oversight.”).
tor’s Workbench). Also unlike most other
7.4). However, it is designed for limited types of InfoProviders (InfoCubes and • Direct access to the SAP HANA ana-
functionality compared to the robust, DataStore Objects [DSOs], for example), lytic and calculation views
full-featured modeling of transaction transients do not have data cleansed via a
code RSA1. This improvement would transformation. A transient InfoProvider • The Business Suite (e.g., ERP Central
be more accurately called an optional is basically an object existing outside of Component [ECC]- or Customer
UI, as the ability to do limited modeling these more normal BW objects, but are Relationship Management [CRM]-
of BW objects in SAP HANA just like the InfoProviders you are permitted based transients).
makes it more convenient if you are pri- to directly query against.
marily an SAP HANA modeler.
The four ways to make transient InfoPro-
Composite InfoProviders
Before I continue, a review of a few viders are shown in Figure 1. They Composite InfoProviders are collections
newer objects is needed in order to include: (e.g., joins or unions) of transient
106 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
InfoProviders or other InfoProviders existing methods and within SAP HANA based object used to gather source data
that were previously only able to be studio. The concept of the composite and present this data to the user after
created in the APD, transaction code InfoProvider is shown in Figure 2. the execution of a real-time transforma-
RSA1, or as part of a BW Workspace. tion. The newest twist is that, as of BW
Creating composite InfoProviders is only 7.3, these virtual InfoProviders can be
Virtual InfoProviders
possible with an in-memory-supported linked to a special SAP HANA database
BW, which means BWA or SAP HANA. Virtual InfoProviders (or remote cubes) object called an Analytical View.
Composite InfoProviders are now have been around for quite some time. Figure 3 on the next page shows the
allowed to be built using the previously A virtual InfoProvider is a run-time- concept.
Figure 3 Virtual cubes (a pass through but not physical InfoProvider) gets data from various existing sources
108 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
The purpose of this article is not to give that if the object is created only in HANA studio, but you can display all
an in-depth discussion about LSA++ or transaction code RSA1, then the BW types of InfoProviders using this newer
its improvements in BW 7.4. Rather, team is wholly responsible for its accu- UI. To start the process of modeling in
this article’s purpose is to expose you to racy, whereas in the case of open ODS SAP HANA studio, you need to connect
the ability to model some BW objects in or composite InfoProviders that can be your SAP HANA studio UI to BW and
SAP HANA Design Studio (Eclipse- created outside of the BW environment, to the non-BW (native) SAP HANA
based UI) versus BW’s Administrator this responsibility can lie elsewhere. schemas. Once you have accessed SAP
Workbench—transaction code RSA1 HANA studio from your Windows start
(SAP Log On pad/traditional UI). Although the sub-title of this section of program your first step is to access the
my article is correct—BW Modeling in BW Modeling Perspective, shown in
SAP HANA studio (Eclipse-based
BW Modeling in SAP HANA Figure 5. Use the highlighted icon in
UI)—it is a little misleading. As I men- Figure 5 to choose the BW Modeling
Studio (Eclipse-Based UI)
tioned above, you can only create open Perspective option from the list of avail-
I am not sure why SAP does not com- ODS views and composites in SAP able perspectives.
pletely let you create all types of BW
Objects in SAP HANA studio. With >> Note
SAP HANA studio you can only create
A Perspective is a collection of little windows called views, designed for use
open ODS views, or composite InfoPro-
by a specific functional group of people accessing SAP HANA studio and the
viders, or display and change traditional
underlying SAP HANA database. For example, the Administration Perspective
non-SAP HANA-based objects. The
is a collection of views targeting the Basis people or database administra-
reason for this might be a technical lim-
tors, and the Development Perspective view is designed for programmers.
itation or just that SAP has not yet There is also a Modeling Perspective view for SAP HANA modeling outside of
finished the required code. Another BW (Classes HA100/HA300) among many other options.
reason might be more nuanced—that is,
110 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
in Figures 7and 8) to add your SAP test, and production environments each shown in the screen that appears
HANA system to the BW project. in its own project. (Figure 10 on page 113), where you
can begin the actual modeling using the
After completing both the BW and SAP Now that you have your connections, SAP HANA studio UI (versus using
HANA connection steps inside your BW select the InfoProvider folder, right-click transaction code RSA1’s BW Adminis-
modeling project, you see the folder tree to open the context menu, and select
trator Workbench or Workspace UI). To
shown in Figure 9 on the next page. New then Open ODS View. (Note that
learn this detail, please attend the
This is the combined tree of BW Info- when you’re doing these steps the only
Providers and SAP HANA database BW362 class or access help at Eclipse-
two objects you can create in this UI at
content (modeled information views), Based Modeling (https://help.sap.com/
this time are the Open ODS views and
and the Catalog (system table views). saphelp_nw74/helpdata/en/4f/13a0e3e1
composite InfoProviders. As I mentioned
This figure shows more than one BW a2428ea541b8fb0af671db/content.
previously, the actual modeling tasks and
Project, and the superset of folders from steps are the same using this UI or the htm?frameset=/en/3c/2501f075cb42b1a
BW and SAP HANA objects for each. In more traditional BW transaction code ef74b6b4e5fa9de/frameset.
this example, these projects point to the RSA1 UI.) htm¤t_toc=/en/a3/fe1140d-
same BW and SAP HANA systems, but 72dc442e10000000a1550b0/plain.
normally you could have development, You can now access the menu path htm&node_id=3).
112 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Ned Falk is a senior education consultant at SAP. In prior positions, he implemented many ERP solutions, including SAP
R/3. While at SAP, he initially focused on logistics. Now he focuses on HANA, SAP NetWeaver BW, SAP CRM, and the
integration of SAP NetWeaver BW and SAP BusinessObjects tools. You can meet him in person when he teaches SAP
HANA, SAP NetWeaver BW, or SAP CRM classes from the Atlanta SAP office, or in a virtual training class over the web.
If you need an SAP education plan for SAP HANA, BW, BusinessObjects, or CRM, you may contact him via email at ned.
falk@sap.com.
In this step-by-step tutorial for developing an Android-based mobile application on SAP >> Key Concept
HANA, learn how to expose data from SAP HANA as an OData service, how to consume The SAP HANA platform consists
data from the OData service on a web application, and how to create an Android mobile of an In-Memory database and an
application by using the PhoneGap hybrid web container. This article uses SAP HANA application platform. Data from
Service Pack 6, Android developer tools, and Cordova version 3.4.0. SAP HANA is exposed as an O-
Data service. An Android mobile
Mobility is one of the most disruptive Mobile Applications on SAP HANA”), application can be built using
technologies of the past few years and I explained the overall design for devel- HTML5, JavaScript, and Phone-
it has profoundly changed the way oping a mobile application on SAP Gap. The mobile application con-
employees interact with each other and HANA. In this article I do not cover the sumes data from HANA that is
also how day-to-day work is done. design aspect of this, but take you exposed as an OData service.
Many businesses realize the potential through a step-by-step tutorial of the
of harnessing mobile technologies to various steps involved in developing a
optimize employee performance. mobile application. If you would like to called SAPUI5. SAPUI5 is the core
Although, in general, adoption of know about the technical architecture or of all mobile-based user interfaces
mobile applications has grown expo- design aspects, please read my other (UIs) for SAP.
nentially, it has not grown at the same article (license required).
rate in the enterprise landscape. One of 3. Hybrid web container – A hybrid
There are many development techniques web container is a native application
the primary reasons is the speed at
for building a mobile application. executing locally available web
which the underlying application or
Typically mobile applications can be assets in an embedded browser.
database layer provides data to the
categorized into three different PhoneGap is a popular hybrid web
mobile application. This is where SAP
paradigms: container. It uses JavaScript as its
HANA brings in a lot of value. SAP
HANA is the new SAP in-memory controller language and HTML5 and
1. Native – These mobile applications
database and it can perform real-time CSS3 for UI definition. It provides
are built natively for each platform.
operations at high speed—in many plug-in code architecture, from
Most consumer apps are native
cases within sub-seconds. JavaScript to native code. One
applications and since they provide
advantage of using PhoneGap is that
complete control of the device APIs
In one of my earlier SAP Experts arti- it has native application wrappers
to the developer, they have the best
cles (“An Overview of Developing for various platforms. For example,
user experience.
if a mobile application needs access
>> Note 2. Web based – With the increasing to the mobile device’s camera, the
power of mobile devices, web-based user does not have to write code to
To understand the concepts dis-
mobile application development is access the camera’s APIs in Java (in
cussed in this article, you need a
also gaining traction. Web browsers the case of Android) or Objective C
basic understanding of SAP HANA
on a mobile device have the same (in the case of IOS). Using the
studio, OData services, SAPUI5,
capability as that of a desktop PhoneGap API the code to access
JavaScript, and Java. Knowledge
browser. There are many HTML5 the camera of the mobile device can
of Android developer tools and
frameworks that can be used. SAP be written once and can be re-used
PhoneGap API is also very helpful.
has its own HTML5 framework for all the mobile application plat-
114 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
forms. Not all browsers are HTML5 Kit (SDK) tools • Create an Android application using
capable. In this tutorial I use the PhoneGap
–– Android platform tools
Google Chrome browser to test the
web application. Chrome supports • Integrate the web application with the
–– The latest Android platform
HTML5 and all mobile devices Android project and deploy it on an
browsers also support HTML5. –– An Android emulator emulator
116 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
118 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
120 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
to supply a name for the service (service name of the entry for this OData to expose the data.
namespace). Usually the namespace is service. When consuming the service
Next you need to commit and activate
the name of the package hierarchy. You you do not see the table name but you
the service (Figure 14 on the next
also need to specify the table schema do see the entity name. The service def- page). To commit and activate the
and the table name that was created in inition file tells the system what to service, first select the project name
the previous step. Finally enter the expose, how to expose it, and to whom (FirstMobileApp) and then the next icon
122 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
contain the controller, .js, and view files, Figure 18 on the next page. Next you the next page) into it. (Follow this link
respectively. Once all the sub-folders are create an index.html file and cut and for a copy-and-paste version of the
created, you see the folders as shown in paste the code shown in Figure 19 (on code: http://bit.ly/1Gr9rwE.)
<!DOCTYPE html>
<html>
<head>
<meta charset=”ISO-8859-1”>
<title>First Web App</title>
<script id=”sap-ui-bootstrap”
type=”text/javascript”
src=”https://sapui5.hana.ondemand.com/resources/sap-ui-core.js”
data-sap-ui-theme=”sap_mvi”
data-sap-ui-libs=”sap.m”>
</script>
<script src=”./js/datajs-1.1.1.js”></script>
<script src=”./view/CustomerList.view.js”></script>
<script src=”./controller/CustomerList.controller.js”></script>
<script src=”./view/CustomerDetails.view.js”></script>
<script src=”./controller/CustomerDetails.controller.js”></script>
<script src=”./view/App.view.js”></script>
<script src=”./controller/App.controller.js”></script>
</head>
<body class=”sapUiBody”>
<div id=”root”></div>
<script>
OData.read({ requestUri: “http://XXX.XXX.com:8000/pkgName/CustomerDetails/
customerdetails.xsodata/CustomerDetails?$format=json” }
,
function (data) {
var oModel = new sap.ui.model.json.JSONModel();
var myData = {};
myData.CustomerDetails = data.results;
oModel.setData(myData);
sap.ui.getCore().setModel(oModel);
var myapp = sap.ui.jsview(“com.example.App”);
myapp.placeAt(‘root’);
}
);
</script>
</body>
</html>
124 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
• App.view.js (the application view; it tion object and it is set as one of the these links for copy-and-paste versions
contains both the customer list view properties of the App view. The instances of both codes: http://bit.ly/1GMy2dz
and customer details view). of all the views are created here and they and http://bit.ly/1AiElU8.)
are added to the App view as pages. The
• App.controller.js (the controller file Now you need to create a Customer-
instance of the application object is
for the App.view.js file) List.view.js file and a CustomerList.
returned back from this view. The App
controller.js file in the respective
The next step is to create the App.view.js view instance is placed at the root element
folders. The CustomerList view con-
in the document in the index.html file. tains an SAPUI5 list and the header is
and App.controller.js files in the view and
controller folders, respectively. These are Copy and paste the codes in Figure 20 called Customer List. Create an item
the main controllers of the application. into the App.view.js and the App.con- template for this list and bind the ID
The App.view.js file contains the applica- troller.js. files, respectively. (Follow and Name for this list. Later on the
whole list is bound to the root object in
the CustomerDetails data model. The
App.view.js root object with the CustomerDetails
sap.ui.jsview(“com.example.App”, { data model is populated from the JSON
service in the index.html file. This is
getControllerName: function() {
called aggregated binding because you
return “com.example.App”;
}, are not just binding one object but an
array of objects. Lastly create a page
createContent : function(oController) { and add the list to the page.
this.app = new sap.m.App();
The CustomerList.controller.js file has
var CustomerListPage = sap. the function that is called when the list
ui.jsview(“CustomerList”,”com.example.CustomerList”); item is clicked. The first thing it does
is it gets the source of the event. The
source of the event is the list item that is
CustomerListPage.app = this.app;
this.app.addPage(CustomerListPage); clicked. To get the data from the list item
all you need is the binding context. This
var CustomerDetailPage = sap.ui.jsview(“Customer
object is then passed to the Customer-
tDetail”,”com.example.CustomerDetail”);
CustomerDetailPage.app = this.app; ListDetails so that the details of
this.app.addPage(CustomerDetailPage); that object are shown in the Customer-
Details view. Both codes are shown in
return this.app;
} // end createContent Figure 21 on the next page. (Follow
}); these links for copy-and-paste versions
of both codes: http://bit.ly/1uVmNtF and
http://bit.ly/134ZAhj.)
App.controller.js
sap.ui.controller(“com.example.App”, { Next create the CustomerDetails.
view.js file and the CustomerDetails.
onInit : function() {
controller.js file in the respective
}, folders (Figure 22 on page 127 shows
the codes—follow these links for copy-
onBeforeShow : function(evt) {
and-paste versions of each:
}, http://bit.ly/1uPEbiK and http://bit.
ly/16q3rrn). The CustomerDetails view
navButtonTap : function(evt) {
is called from the customer list view.
} The onBeforeShow event is thrown just
}); before a view is being shown. This
event evt has the data that you need to
Figure 20 The App.view.js and the App.controller.js. files
display. When the application navigates
customerList.bindItems(“/CustomerDetails”, itemTemplate);
CustomerList.controller.js
sap.ui.controller(“com.example.CustomerList”, {
onInit : function() {
},
onBeforeShow : function(evt) {
},
customerListTap : function(evt) {
var data = {};
data.context = evt.getSource().getBindingContext();
var app = this.getView().app;
app.to(“CustomertDetail”, data);
},
navButtonTap : function(evt) {
}
});
126 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
to this screen it passes the event data. controller has method onBeforeShow in context is the binding context that you
Part of the event data are the Customer- which you have the event and the event passed—that means that only the
List details. The CustomerDetails has the data and also the context. The context of the data on which the list
CustomerDetails.view.js
sap.ui.jsview(“com.example.CustomerDetail”, {
getControllerName: function() {
return “com.example.CustomerDetail”;
},
onBeforeShow : function(evt) {
this.getController().onBeforeShow(evt);
},
createContent : function(controller) {
// create page
this.page = new sap.m.Page({
title : “{Name}”,
showNavButton : true,
navButtonTap : [ controller.navButtonTap, controller ],
content: [
new sap.m.List({
items : [
new sap.m.DisplayListItem({
label : “ID”,
value : “{ID}”
}),
new sap.m.DisplayListItem({
label : “Street”,
value : “{Street}”
}),
new sap.m.DisplayListItem({
label : “City”,
value : “{City}”
}),
new sap.m.DisplayListItem({
label : “Zip Code”,
value : “{ZIPCODE}”
})
],
})
]
});
return this.page;
}
});
CustomerDetails.controller.js
sap.ui.controller(“com.example.CustomerDetail”, {
onInit : function() {
},
onBeforeShow : function(evt) {
Figure continues
Now that the web application is ready, a. Eclipse (this is the Integrated
Customer List you need to put it in a hybrid web con- Development Environment [IDE]
After you have opened the index.html tainer. First you need to generate the that is used to develop Android
file in Google Chrome, you should Android application using the PhoneGap mobile applications)
if (evt.data.context) {
this.getView().setBindingContext(evt.data.context);
}
},
navButtonTap : function(evt) {
var app = this.getView().app;
if(app) {
app.backToPage(“CustomerList”);
}
},
});
Figure 22 Continued
128 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Figure 27 Create a new Android project using the Cordova Command Line utility
130 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
132 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Modify the index.html file and replace calls to the back end and display the the app, and navigate to the first page.
it with the source code (shown in pages. To respond to app.initialize() you
Next, go to the src folder and open the
Figure 34 on the next next page). (Fol need to modify the index.js file.
CustomerDetails_MobileApp.java file
low this link for a copy-and-paste
version of the replacement index.html Go to the index.js file under the JS (Figure 36 on page 135). Change the
source code: http://bit.ly/1Gr9rwE.) folder and modify the onDeviceReady() timeout value to 60 seconds (if you are
Include all the view and controller files function with the code in Figure 35 on making online queries to load JavaS-
that are needed for this mobile applica- the next page. Follow this link for a cript files from the server or make
tion. The app.initialize() code is very copy-and-paste version of the code to OData calls, then it could take longer
important—it kicks off an event when modify the onDeviceReady() function: than the 2 seconds). The default timeout
the Cordova web container is ready to http://bit.ly/1wejRNh. This new code setting is 2 seconds and increasing it to
render the HTML code and it is only at instructs the OData to read to the 60 seconds ensures that the application
that point that you would like to make service, initialize the model, initialize does not time out.
<html>
<head>
<meta charset=”utf-8” />
<meta name=”format-detection” content=”telephone=no” />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height
attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name=”viewport” content=”user-scalable=no, initial-scale=1, maximum-scale=1,
minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi” />
<link rel=”stylesheet” type=”text/css” href=”css/index.css” />
<title>Hello World</title>
</head>
<script id=”sap-ui-bootstrap”
type=”text/javascript”
src=”https://sapui5.hana.ondemand.com/resources/sap-ui-core.js”
data-sap-ui-theme=”sap_mvi”
data-sap-ui-libs=”sap.m”>
</script>
<script src=”./js/datajs-1.1.1.js”></script>
<script src=”./view/CustomerList.view.js”></script>
<script src=”./controller/CustomerList.controller.js”></script>
<script src=”./view/CustomerDetails.view.js”></script>
<script src=”./controller/CustomerDetails.controller.js”></script>
<script src=”./view/App.view.js”></script>
<script src=”./controller/App.controller.js”></script>
<body class=”sapUiBody”>
<div id=”root”></div>
onDeviceReady: function() {
//OData.defaultHttpClient.enableJsonpCallback = true;
OData.read({ requestUri: “http://XXX.XXX.com:8000/XXX/XXX/customerdetails.xsodata/
CustomerDetails?$format=json” }
,
function (data) {
var oModel = new sap.ui.model.json.JSONModel();
var myData = {};
myData.CustomerDetails = data.results;
oModel.setData(myData);
sap.ui.getCore().setModel(oModel);
var myapp = sap.ui.jsview(“com.example.App”);
myapp.placeAt(‘root’);
}
);
134 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
BI Expert Anthology • www.SAPexperts.com/BI
Integrate the Web lator. Right-click the project name (Figure 38 on the next page). When
(Figure 37) and from the context menu you click CUSTOMER LIST at the
Application with the Android select Run As and then Android top, you can navigate to the customer
Project and Deploy It on an Application. details view (Figure 39 on the next
Emulator page).
The Android Application opens in an
Now that all the setup is done, you are emulator and you can see the customer This article focused on creating an
ready to deploy this mobile app on an emu- list view on your mobile device Android application, but most of these
CustomerDetails_MobileApp.java
package com.example;
import android.os.Bundle;
import org.apache.cordova.*;
same steps can be followed to create an UI can be used as is). The ISE—Inte- have to use the Cordova Command
IOS application (e.g., the OData service grated Development Environment—for Line interface for IOS to create an IOS
and the HTML5 and JavaScript on the building an IOS app is XCode and you project. n
Vivek Sharma is a manager with Capgemini US and has 11 years of experience in SAP. He is certified by SAP AG as an
Application Associate for SAP HANA. His expertise includes SAP UI technologies, SAP HANA Application Development,
and SAP Mobile Application Development. His experience includes multiple full cycle SAP implementations spanning the
pharmaceutical, food, and media industries. Over the years he has played the roles of developer, solution architect, devel-
opment lead, and project manager. Views expressed in this article are his own and not those of his employer. You may
follow Vivek on twitter at @vivsharma20 or contact him via email at vivsharma20@gmail.com.
136 © 2015 BI Expert Reproduction prohibited. All rights reserved. Copying or posting is an infringement of copyright.
From the publisher of
A
TRUSTED
ONLINE
LIBRARY OF
INDEPENDENT
INFORMATION
SAP
THAT
YOU
GIVES
AND
YOUR TEAM
THE IN-DEPTH,
TECHNICAL,
VERIFIED
INFORMATION
YOU
NEED
TO
SUCCEED
www.SAPexperts.com/BI