Professional Documents
Culture Documents
tutorialS
•
•
Like a cup of espresso coffee, Espresso Tutoriais SAP books are concise
and effective. We know that your time is valuable and we deliver infor
mation in a succinct and straightforward manner. lt only takes our read
ers a short amount of time to consume SAP concepts. Our books are
well recognized in the industry for leveraging tutorial-style instruction and
videos to show you step by step how to successfully work with SAP.
Ili e.sores.s0
.. tu1or1a1s
ISBN: 978-1-5191-6894-8
URL: www.espresso-tutorials.com
AII rights reserved. Neither this publication nor any part of it may be copied or
reproduced in any form or by any means or translated into another language
without the prior consent of Espresso Tutoriais GmbH, Zum Gelenberg 11, 37130
Gleichen, Germany.
Feedback
We greatly appreciate any kind of feedback you have concern1ng this book.
Please mail us at info@espresso-tutorials.com.
Table of Contents
Preface 9
3 The 81 case study and the top two SAP transaction codes 37
3.1 SAP BI consulting method and system auditing 37
3.2 Different ways to conduct system audits 38
3.3 Transaction code analysis concept 40
3.4 How to use ST03n, SM 19, and SM20 40
3.5 Using BAPls to extract utilization data 46
5
TABLE OF CONTENTS
6
TABLE OF CONTENTS
B lndex 145
C Disclaimer 149
7
Preface
Visual data representation is a hot topic in the age of big data. 1 would
like to take a step back and ask (with apologies to the German philoso
pher Schopenhauer), do visual representation concepts follow sufficient
reason? Honestly, has it ever occurred to well-informed SAP consultants
why so many reporting-related tools seem to surface and then disap
pear? 1 am sure you have come across more than one ingenious SAP
demo where you see nice screens for reporting tools, only to realize not
too long after that a new tool is already in the works. ln this sense, Scho
penhauer, who is notorious for his complex but appealing theories about
will and representation, has some commonalities with SAP- things are
complicated. ln this book, 1 will review the reporting from a higher level
and use an investigative style that puts the reader in "discovery mode."
This is designed to help cross-functional consultants survive the jungle of
tools and utilize core SAP functionality, which is close to the transactional
level. Hence, you will not find the traditional walk-through demos in this
book but rather a concept that will help you understand the data and cre
ate a framework that you can use in your own projects. This small library
of skills can be leveraged better than dozens of tools that fail if just one
connection is not in order.
1 will focus on the source of data and its path to the visual representation
in a report or dashboard. How can you find the data in SAP? How can
you train yourself to create a repetitious concept to analyze transactions
in SAP for reporting? With this focus, 1 will expand the scope to connect
with common BI tools and also relate to SAP HANA. 1 will walk you from
SAP ECC transactions to BI tools and transaction codes to Business
Object Universes. Finally, 1 will show you how all of these connect in SAP
HANA without losing track of the core concepts. 1 will also share a BI
Consulting method that focuses on a data audit versus solely focusing on
BI Edge and the tools currently included with this product.
9
PREFACE
Personal Dedication
1 believe real knowledge can be found beneath the surface where it ena
bles us to form new ideas instead of following the old ones. 1 dedicate
this book to my wife and kids who lead me down new paths every day.
Tips
Tips highlight information concerning more details about
the subject being described and/or additional back
ground information.
10
1 lntroduction to SAP BusinessObjects
Business lntelligence (81), Edge
edition
"We have the answer, but the relevant question has not been asked
yet." While this sounds a bit funny, it highlights a core element of
modern analytics. Vou have to know what questions to ask before
you can select the right data sources and dig into the data to get the
answers in the form of information that you need. ln SAP 8usi
ness0bjects 8usiness lntelligence (81), Edge edition (81 Edge) terms,
this would mean first defining the semantic layer, then configuring
the data, and finally utilizing the business layer. These are the ele
ments of the so-called "universe" (more about that later).
So what does this have to do with SAP 81 Edge? For starters, 81 is trying
to capture information based on the questions that I asked. Is it possible
to extract new information from the "universe" of data that can enlighten
us even on the questions that I did not ask?
Don't worry, 1 will not drift off into a metaphysical discussion. However, 1
do believe there is power that can be unleashed once the problems are
identified by asking the right questions and then delivering a process that
employs the tools that are part of the SAP 81 Edge suite.
ln the following sections of this book, 1 will identify the key problems
faced with SAP 81 projects. Then, 1 will explore an accelerated implemen
tation process to leverage the value in SAP 81 Edge tools.
11
lN'T'RODUCfION TO SAP BUSINESSÜBJECT'S BUSINESS lNTELLIGENCE (BI), EDGE EDITION
ln this book, you will learn how to use BI Edge tools and gain an under
standing of the key problems that are common to BI projects within the
context of SAP ECC implementations.
Modern ERP systems evolved from the idea that a centralized system
can manage processes better than disparate "islands of data." However,
a centralized approach often comes at a cost for the end user. The rea
son is that an integrated ERP system can only provide value if all of the
departments and users continuously enter and update the data they pro
duce. Users often perceive this requirement as a constraint that limits the
freedom and creativity previously found with Excel, for example.
From a C-Level perspective, though, this looks a bit different. The unified
infrastructure allows for strategic management of the enterprise where
data is effectively summarized, grouped, and analyzed to drive decision
making.
There is another problem. SAP end users are conditioned to praise SAP,
driven by the tear that they will be labeled as incompetent if they do oth
erwise. This unofficially establishes a shadow theme, which means that
users officially support and are happy with the system. Unofficially, h o w
ever, users feel paralyzed by data entry tasks and the inability to get in
formation out of the system for analysis. When users only utilize the tools
provided and stop creating their own methods to improve business pro
cesses and efficiency, then the shadow theme is at work. lt means that
the organizational structures are not optimized to leverage the creative
input from employees, and consequently, productivity may be sacrificed.
12
lNTRODUCT'ION TO SAP BUSINESSÜBJECrs BUSINESS lNTELLIGENCE (BI), EDGE EDITION
To further dive into this topic, review the theory of complex responsive
processes. 1 This theory attempts to explain the dynamics, or inclusion
exclusion, used by human agents. The theory states that there is an in
herent level of uncertainty within the organizational life of companies.
The standards imposed by systems such as SAP ECC, SAP CRM, etc.
can inhibit this essential dynamic process and lead to unwanted results.
Consequently, the key challenge with modern ERP business solutions
and 81 projects is to include a process that allows for dynamic change
and integrates the requirements that are yet unknown in the form of a
flexible process.
What are the core problems with 81 implementations? The project phas
es to implement 81 tools include the traditional phases from requirements
definition to implementation and live operation with maintenance. The
project plan aligns the budget with the milestones that achieve the busi
ness value. So far, this looks good. The reality, however, paints a differ
ent picture. Due to massive infrastructure requirements, as well as the
very dynamic structure of 81, projects are delayed. Numerous tools and
platforms accumulate in a jumble of technologies and tools, which in
stead of providing a clearer image of the data, does the opposite
creating an additional layer of obscurity.
The 81 Project break-even analysis in Figure 1.1 shows the ideal project
investment in red and the value of the project in green. Please note that 1
indicated the maximum value line. This is meant to highlight that only a
certain level of value is reached with the 81 tools. Due to the problems
related to the shadow theme, the value gained from the 81 implementa
tion is limited.
1
Complexity and Group Processes: A radically social understanding of
individuais. Brunner-Routledge, London 2003.
13
lN'T'RODUCfION TO SAP BUSINESSÜBJECT'S BUSINESS lNTELLIGENCE (BI), EDGE EDITION
User Value /
lnvestment
j
Max,mum Value
Trad it ional BIIBW ---------------- ---------- - ----------------- - -
--+ Time
GoLrve Competftlve Edge
A closer look reveals that the SAP BI Edge suite includes a full set of B1-
related tools. The high-level schema graph (see Figure 1.2) shows the BI
tools included with BI Edge. Note that the BI tools are independent of
SAP ECC.
14
lNTRODUCT'ION TO SAP BUSINESSÜBJECrs BUSINESS lNTELLIGENCE (BI), EDGE EDITION
The 81 consulting method I introduce in this book utilizes the tools in
cluded with SAP ECC, including SQVI, lnfoSets, etc. and aligns their use
with a strategic deployment of the 81 Edge suite. The priority is to get
immediate production use out of each tool while unleashing the trapped
potential within the organization and translating it into usable reporting
apps.
15
lN'T'RODUCfION TO SAP BUSINESSÜBJECT'S BUSINESS lNTELLIGENCE (BI), EDGE EDITION
The reporting requirements can then be divided into strategic and opera
tive (daily) reports. While the strategic reports are commonly run from
within SAP B1/BW, there are a significant number of reports that need to
be run on a daily basis. Predominantly, the shadow themed requirements
may surface in the form of operative daily reporting requirements.
The strategic reports will be implemented using the BI Edge tools and
may use the BW infrastructure where data is summari zed, grouped, and
ready for analysis. The operative reports may require real-time analysis
and may also need to mix and merge with information available outside
SAP and within SAP. 1 will establish agile project groups that are ready to
identify those requirements and translate them into reporting apps with
immediate results.
BI Consulting Method
-----------,11 '1·-----------
1
1
'
1
Value Potential
•':-----------
1 1
Utilizat ion Analysis Agile Teams uncover 1
1 1 Reporting Apps Design Cycle
Key Data Sou rces 1 Shadow Themes
1 1
1
61 Success Factors : lmplementat1on 1 Live Operat1on
1
lclentify core requ irements
1 1
1 Start using reports as early a s Manage Production and Re lease
Define umque requirements to possillle 1 Upgrades
1 1
manage competitive advantages 1 Start integrating wilh real data ASAP 1 Encourage Reporting App
lclentify GAPS using SAP usage 1 Establ ish Change Management and 1 devel opment
repolts 1 slralegic d irection 1
1 1
1 1
16
lNTRODUCT'ION TO SAP BUSINESSÜBJECrs BUSINESS lNTELLIGENCE (BI), EDGE EDITION
User Value / f
lnvestment
- -
----- -
,::r
Maximum Value
Acceterated 81 ------------------------ Accelerated ,,
81
''
:' Traditional
Max, mum Value :' 81/BW
Trad1l1onal 81/BW
- Time
GoL,ve Reporting Apps
Competitivo Edge
During the course of this book, 1 will review the available tools that come
with SAP 81 Edge and position them within the portfolio with regard to the
current task, as well as the user skills required. ln addition, 1 will take a
criticai approach to analyzing the use and implementation of the 81 Edge
Suite, which differs from the commonly found marketing information you
may find on the Internet. The point is that I will add a new and practical
angle to using these tools. ln summary, the book will shine light on info r
mation blurred by marketing information that does nothing more than
feed a business placebo with new products and technologies.
ln Chapter 2, 1 will review all of the products and tools available in the 81
Edge toolset. This includes the positioning of the most criticai products in
a diagram. 1 will also briefly discuss the published roadmap with rele
vance to the existing product versions and new releases. Furthermore, 1
17
lN'T'RODUCfION TO SAP BUSINESSÜBJECT'S BUSINESS lNTELLIGENCE (BI), EDGE EDITION
will review some important installation and setup tips for 81 Edge with
SAP ECC.
ln Chapter 3, 1 will introduce a case study. This case study forms the core
of the 81 consulting method, which I introduced in Chapter 1. ln essence,
1 will establish a practical approach that guarantees fast results and re
solves the delayed break-even point on larger 81 projects. ln this chapter,
1 will further position the 81 Edge tools and try out them out as part of the
case study. 1 will also define the core elements of a strategic reporting
framework.
ln Chapter 4, 1 will explore the query and reporting tools that are built-in
to SAP ECC 6.0. These tools form the platform for efficiently using 81
Edge tools.
18
2 lntroduction to BI Edge 4.1
ln this chapter, 1 will review the BI Edge Suite tools available from
SAP. These tools are updated regularly. That is the primary reason
why focusing on tools is not as effective as focusing the process.
The 81 Edge suite includes a full set of reporting tools that can be orga
nized by function and complexity. For example, there are end user tools
with lower levels of complexity, such as 81 Launchpad and Xcelsius. The
value of these tools is highly based on the infrastructure available to the
project team. This infrastructure is designed with server-based tools that
may be more complex, but are primarily designed for use by technical
admins. For example, the Universe Design Tool creates the semantic
layer and data connections in a hierarchy to publish relevant information
in a business layer. The business layer data can then be consumed by 81
Launchpad and Xcelsius applications. ln the case study, 1 will configure a
full information workflow example. Figure 2.1 highlights that there may be
many tools and layers involved in generating a report that is embedded
within a corporate reporting strategy. For some, this graphic may also
highlight the jumble of tools and interface technologies within the solution
architecture.
Figure 2.2 shows a partial view of the technologies and highlights the
process from semantic to data and the business layer in red. You need to
keep in mind that these three layers are at the core of the 81 Edge con
cept; they are essentially the building blocks of the universe concept.
Therefore, if you want to create a report in 81 Edge, you very rarely just
create a query and use the reporting tool to create a list and/or graphical
visualization. The idea is that you can utilize a complex network of data
sources, which you would connect on the lowest level called the seman
tic layer. 8y semantic, 1 mean the logical language established for re
ports, which will be represented by the data sources selected for the re
porting infrastructure.
19
lN'T'RODUCfION TO BI EDGE 4.1
.._, __
·---
81 l,1unch Pad
..
Bfx\Veb Appllcadons
)--�-IIC.o
'
1
t • • . ' •
--·-·
____ ,,,,
-
·
·-·-
lNllnftCObt«U
Profll�s
This selection will define the scope of data to deal with in reports. How
ever, these data sources may have different representations of data and
multiple areas of business focus. For example, there could be manufac
turing and CRM data from various sources that may have unique column
names for data. On the data foundation layer, this data is organized and
prepared for business use. Then, in the third layer, the data is logically
aligned with a business focus so that it can be easily understood by func
tional consultants for reporting.
While at first glance this may sound like a lot of overhead, the concept
makes sense when you have complex data sources with multiple layers
of privileges for user groups and departments. However, you are right
that, for a simple report and ad hoc reporting, this concept may be p e r
ceived as a headache for a user who just needs to create a quick report
in Excel. However, in the long run, the problems you face creating a
mess of quick and dirty reports will be resolved with the organizational
structure of the layered concept introduced with the universe.
20
lNTRODUCnON TO BI EDGE 4.1
Objects
Ovtafo4Jndat10n: .df>c
Publish •
► CMC Licensing
► lnformation Designer
► Universe Designer
► Crystal Reports
21
lN'T'RODUCfION TO BI EDGE 4.1
► WE81
► Query as a Service
► 81 LaunchPad
► Xcelsius
22
lNTRODUCnON TO BI EDGE 4.1
Figure 2.3 shows the BI Edge toais and also lists the lnfoSet as part of
the SAP ECC 6.0 built-in toais. As part of an accelerated BI implementa
tion, a core aspect of the reporting strategy includes built-in reporting
toais to help drive the BI Edge reports. The lnfoSets will also be used
during the case study. ln fact, the first report created will use the lnfoSet
concept in SAP ECC 6.0.
2. CMC Licensi ng
3. lnformation Designer
4. Universe Designer 81Edge
5. Crystal Reports (Filter)
6. WE81
7. Query as a Service
8. 81 Launch Pad
9. XCelslus
23
lN'T'RODUCfION TO BI EDGE 4.1
�
Add Key Addl
DT!OH-NT'MVOOG-JXJSA9M·2ACT86T-O (Product code) Deletel
3 OCOOZ·WCYMIOG-TNVHH9N-5ASOOWC·70 (Product code)
f DP104·VUP3B38·2P2HN9Y·MACT861 ·PR Product code
•
Selected Key Total Ucenses
J
ltimed Users: ll'llimited O
concurrent Users: lrlimited [ O
Processors: o
Elq>ires: 201+03·1 3
The following 81 Edge editions are available. Please note that these
packages may change as SAP makes updates.
24
lNTRODUCnON TO BI EDGE 4.1
When you install 81 Edge, you will run through the standard installation
wizards. However, there are a number of things that you should be aware
of. Keep in mind that this information may change as SAP updates its
products. Therefore, 1 have chosen to focus on the core aspects that may
apply across versions.
25
lN'T'RODUCfION TO BI EDGE 4.1
When you log on to the BI Edge installation using the CMC), you have a
drop-down menu to select the type of authentication. lf you do not have a
specific enterprise setup, you may want to log in to the installed instance.
lf the CMS option is not available, you may proceed to create a custem
parameter file.
User Identifícation EJ
Univ erse
�
Design Tool
SAP BusinessObjects·
Enter your name and password to log in.
,��-
MI System 1BISAP:6400 .:]
b its.exe
Shortcut
User Name: 1Administrator
Password:
1 Authentication jEnterprise
OK ! Cancel j Help 1
The problem you may encounter is that the drop-down does not offer the
CMS option. This problem may occur with various BI Edge tools when
trying to log in. ln that case, you may also consult the parameter files.
26
lNTRODUCnON TO BI EDGE 4.1
◄ �
Reody ú.
ln order to set the defaults for each application, you can consult the
parameter files in this directory:
For example, you could create the file "Bllaunchpad.properties" that can
include custem configuration parameters to allow you to connect with the
CMS.
crrs.default=servernarre:portnurrber
crrs. vi si ble=t r ue
Note that, once you create a parameter file, you need to restart the
Apache Tomcat Services.
You can parametrize the user experience for each 81 Edge tool using this
type of parameter file. T his includes custem products names in the login
window, etc.
27
lN'T'RODUCfION TO BI EDGE 4.1
--
§--
1 Date modified 1 Type 1 Size
1
Name •
The transport files will install the necessary drivers and files that will
allow the SAP ECC system to connect with the SAP 81 Edge tools. lf you
do not install these transports, then you may experience connectivity
issues or other related problems.
The transport installation in the SAP ECC system 1s done us1ng the
transaction code STMS (see Figure 2.9).
28
lNTRODUCnON TO BI EDGE 4.1
········�.. rf "1iVS
••••••••••••► A 1,... -.:it:1r1t:.;1; � "li .'I ,, ..
-:11- :il 7"'
►••···• )ºSTE.111
....
You can consult the file transpor t s_EN. t xt , which explains which type
you must instai!: ANSI or Unicode. The ANSI version is for SAP Basis
systems earlier than 6.20. The Unicode version is for SAP Basis 6.20
and later. You then copy the folder cofiles in usr \ sap\ t rans\ cof i I es
and data in usr\ sap\ t rans\ data. To import the transport, you must
use the STMS transaction ( see Figure 2.1 O).
@ Q..eue Edit Goto fteq.,est [Ex11,is Eni,orment � l:!eb
�Reque:st.s for
==-- 1211112013 oe,11,21
e,
- - e,
- e,
e,
.- e,
-
· - o
o
- - e,
- e,
e,
.- e,
-
· - e,
e,
e,
29
lN'T'RODUCfION TO BI EDGE 4.1
From the menu in Figure 2.10, select OVERVIEW and then IMPORTS.
Double-click on QUEUE. Then, in the top menu, select EXTRAS • ÜTHER
REQUEST • ADD. From the drop-down menu, select the request. Now you
will find the request in the queue. Repeat for all transports as necessary
(see Figure 2.11 ).
�1�1 � � �
Import Queue: System EYP
Q1 8 w � ®. � 'j 61:, ���� ÍIB �
- - - - - - - - - - - - - - -- - - - - - --
@Import Transport Request )(
1
Transport Request Freight
Target System System EYP
•
Target Cl ient 1001 Cl ent
i for BP Activation
�,
0At Start Time
1
Planned Start � [04/14/20141 0 13: 12: 321
No Start After 1 0[ 1
0After Event
Event 1 j
Parameters J_ j
� ���
You can run the transports immediately to make sure that your SAP ECC
system is prepared. These transport integration steps are commonly ran
1
by your SAP admin. However, want to mention the steps here so that
you are aware of them.
Once you have the parameter files and the transport in place, you can
still run into a situation where you want to select and connect to an exist
ing SAP system. Some 81 Edge tools use the SAPLogon.ini file. You may
30
lNTRODUCnON TO BI EDGE 4.1
have to adjust the environment variable and modify the saplogin.ini file
on your system where the BI Edge tools are running.
You can also create the environment variable SAPLm N_I NI FI LE. This
environment variable points to the .ini file, which is commonly placed 1n
the following path (see Figure 2.12):
1 ,._. ·-
TEMP ¾USERPROFILE¾\AppData\Local\ Temp
TMP ¾USERPROFILE%\AppData\Local\ Temp
Variable Value
PROCESSOR_LE... 6
PROCESSOR_R.•. la05
C:\W indows\system32\WindowsPowerS...
.
, . ....J
SAPLOGON_INI. .. C:\Users\Administrator\AppData\Roami...
..:..1
New ... Ed it. .. Delete
1
OK Cancel j
Variable value:
,__o__
K _.,I Cancel
Make sure the saplogon.ini file 1s saved ,n UTF-8 format (see Figure
2.13).
31
lN'T'RODUCfION TO BI EDGE 4.1
Organize • Newfolder :: .. fJ
• Name • l Date mo<iied
11
No lems match Y<JU" sear<h.
Downloads
'I:I Recent Pl,.,es
A Ubraries
Ê:) Dorument<
.J, Music
� Picrures
8 Vídeos
; Ccmpute,
t. Local O.Sk(C:)
� O.:.�A OrivP-{í)•) ..:J
Fi le narne: sapbgon.ini •
Save as type: lrext Documents (•.txt) ..:J
• lide Folders1 Encod,ng: IUTF-8 � Cancel
..,..,.,,
,o,Ng
::-
----=�=, ,.._ ___,
_ - --' Ú,
- - - - - - - - - - - --+-
-- --<unicode
-
Unicode bi endian
8y using this setting, you can be sure that your 81 Edge tools can identify
existing SAP systems and connect properly.
The 81 Edge product versions deserve a special note. lf you are starting
a new project, you may opt to implement version 4.x within the 81 Edge
suite. This will enable you to utilize the new information designer func
tionality. However, keep in mind that a previous version may be more
suited for production use based on the overall requirements and system
complexity you have to cover.
One reason for this is the fact that a major release upgrade from version
3.x to 4.x also includes new concepts and technologies that may have to
be established before they are ready to be used within the enterprise
solution landscape.
32
lNTRODUCnON TO BI EDGE 4.1
You can picture the BI Edge tools in a graph based on the analytical skills
required and the level of end-user friendliness. While this portfolio seems
complete, it also uncovers a big gap for end user tools. The most com
mon platform for end-user analytics and reporting today is Excel. How
ever, Excel is basically not covered, or only indirectly covered, using the
available tools. 1 am sure many SAP enthusiasts will disagree and claim
that there are many ways to leverage Excel. However, none of the avail
able options can stand its on their own, as Excel requires some other
infrastructure to be in place to be usable.
We will revisit the chart in Figure 2.14 a few times during the course of
this book with additional information.
Analytic Skills
BI LaunchPad BI Studio
XCelsius
Crystal
Cube
lnformation Designer
BI Workbench
lnfoSet
Backend Setup
End User
Frlendly
The relevance of any roadmap for SAP products must be considered with
SAP HANA in mind. 1 am suggesting this because SAP HANA may be
the most groundbreaking SAP platform since the introduction of R/3.
Therefore, you can expect that many of the tools discussed in this book
33
lN'T'RODUCfION TO BI EDGE 4.1
The 81 Edge technologies will evolve into the open Eclipse platform and
be merged with the SAP HANA (Design) Studio.
You can find details about 81 Edge products on the official roadmap
page: http://service.sap.com/roadmap.
8efore I move any further with reporting tools, let me quickly clarify the
types of reports commonly looked at in an enterprise. The reports can
largely be organized into strategic reports, which will often be covered by
8W; ad hoc reports; and operational reports, which need to be run by
users without further consulting 8W.
With the information provided thus far, you may conclude that the strate
gic reports are mostly the ones that utilize 8W and require that the infor
mation be treated and massaged accordingly to be ready for analysis by
subject matter experts.
34
lNTRODUCnON TO BI EDGE 4.1
The operational reports may require more direct access to data to short
en the journey from data source to analysis. Therefore, 8W may not nec
essarily be consulted as a data source but rather connect with the SAP
ECC system directly. lt depends on how much delay you can afford when
evaluating the value of the information presented.
ln addition, there is a set of requirements that are not part of the defined
requirements. These are the day-to d - ay requirements that need to be
covered. The users need new reports quickly and every day to analyze.
ln order to avoid feeding into the shadow theme, a strategy is needed to
address these. ln particular, 1 will utilize the 81 consulting method intro
duced in Chapter 1 in the case study to arm users with the necessary
tools to achieve their ongoing reporting requirements.
Finally, it is important to note that more data and better analytics does not
equal better information. lt is important to define a 81 strategy that en
sures that you ask the right questions.
81 Edge products can effectively cover your reporting and analytical re
porting needs. However, 1 want to ensure that the end user perspective is
not neglected in this book. ln particular, how the 81 Edge tools can help
the common SAP user resolve their daily reporting needs must be de
termined, without having to undergo a large reporting and 81 project to
establish the relevant infrastructure. As mentioned previously, this is
largely an organizational aspect. During the initial scoping of the 81 pro
ject, it must be ensured that a platform is established that allows users to
define and implement their reporting requirements on a daily basis.
Those reporting solutions will evolve as reporting mini-apps, which will
then be used as part of the ongoing refinements to optimize the enter
prise reporting architecture. For example, a new departmental report that
was created as part of a reporting mini-app will be used as a requirement
to define new universe structures that can then be leveraged across the
enterprise outside the limits of the department where the reporting mini
app was designed.
35
3 The BI case study and the top two
SAP transaction codes
ln this chapter, 1 will introduce the tools needed by power users to
translate their requirements into manageable mini-reporting apps. ln
order to gain a solid understanding of this process, 1 will share a
detailed case study.
The case study in this book has two components. The first part focuses
on the BI consulting method and the idea that system utilization is an
indicator for how users navigate and accomplish their tasks. lt forms the
basis to identify utilization exceptions, which surface either in the form of
unused features and/or missing features.
1 will review basic auditing methods to obtain this information. Once this
is done, 1 will continue in Chapter 4 to create actual reports for the
ecommerce example, which forms the second component of the case
study.
First, 1 will walk through the toais you need to structure reporting re
quirements for your SAP system using the concept of system utilization
analysis.
You can then follow the sarne steps when it comes to your own require
ments. During the course of the case study, 1 will also introduce the most
two most important transaction codes in SAP. You may wonder-what
are the most criticai transaction codes in SAP? l'11 share more about the
top two candidates later in this chapter.
37
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
The SAP audit features track the use of the system. The technique al
lows you to reference the tables used by the transactions and then ap
propriate this information to determine how the system is used versus its
intended use. ln addition, the information collected forms one of the
building blocks to dynamically generate a reporting system.
Let's briefly review the different ways to audit SAP system usage. 1 will
cover the different system usage types via transaction code, function
module, table access, and BAPls. This way, you as the reader will under
stand the options you have available to interact with SAP. lt will clarify the
scope and limitations in later chapters where I will utilize direct table ac
cess for reporting. How does it clarify and limit the scope? Based on the
system utilization audit, it can be determined what transaction codes the
users are employing. This determines and limits the data model that is
relevant for the reporting strategy.
38
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
8ased on this information, conclusions can be drawn that are relevant for
81 reporting, user training, and system customization.
ln addition, the transaction code and report usage can provide insights
into discrepancies between the system features and how the system is
used. Relevant user groups may require re-training in cases where fea
tures are available but remain unused.
Often, powerful features in SAP ECC remain unused because, during the
initial implementation phase, a go-live date had to be achieved, and the
infamous Phase 2 tasks were never implemented. For example, Material
Requirements Planning (MRP) is a candidate for this. MRP functionality
is included with SAP ECC, but remains unused in many systems. These
types of areas can be identified with the transaction code analysis.
Therefore, the transaction code analysis can also lead to new blueprint
39
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
The transaction code utilization audit can be done using various ap
proaches in SAP ECC. This is not uncommon with SAP ECC, as there
are various angles you can approach the system from. For example,
while in some instances you may want to use a transaction code to get
the relevant information, you may find that you want to collect data over
time to drive detailed analytics against the data, which is sometimes not
initially possible using a transaction code. ln this instance, you may opt
for a BAPI interface that uses a set of BAPls from within the SAP system
against selected instances. ln addition, the available tools in SAP are
constantly changing and being improved, and there is a good chance
that you may find a different tool in SAP Solution Manager that may
promise to resolve the task. However, keep in mind that the true value
from the SAP ECC system comes from the very core of it. Consequently,
you can always count on the ability to get the job done using transaction
codes and BAPls, which is exactly what those other tools available in
Solution Manager are doing. ln addition, the more you learn about the
SAP ECC system, the more you will find out that many features that are
available via new SAP products were already built into the core SAP
ECC system. For example, BI, MRP, and forecasting and web services to
connect with externai systems are part of SAP ECC.
There are various methods available for auditing the system. However,
the best option to identify what transaction codes a user has employed is
to run the SAP transaction ST03n. This will open the Workload Monitor.
You will have to activate EXPERT MODE.
As shown in Figure 3.1, once you have ST03n open, select TOTAL and
then USER AND SETTLEMENT STATISTICS. ln the submenu, select USER
PROFILES. Within this transaction, there is also an alternate method you
can reach via choosing TOTAL and then selecting BUSINESS TRANSACTION
ANALYSIS. This will then show the sarne result that you would get via the
STAD transaction code.
40
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
$ 1ST03rJ
L
• � Wcrkload
•W Sv,stem 10
Total
•
· Is Business Transaaíoo Analygs
Last Mil'"lJte's Load
1
Figure 3.2 shows the transaction codes used in this system in the TRANS
ACTION column. ln arder to activate the system log file to continuously
capture required log information, 1 will utilize transaction SM19 (see Fig
ure 3.3), which allows me to configure the type of data that will be col
lected.
41
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
Systea:
===-- Ntmber ot RFC:s which cesi,onded (vithout error:,):
Analysed tiu: 04/21/2014 / 16:22:00 - 04/21/2014 / 16:32:00
1 ( 1)
D 't? mi 'lí'
_/Static Confi,;iuratio"j;"OynamicConfigurati
,./Filter 1 V Filter 2
42
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
The audit profile has options for filtering out only those events that you
want to track in the auditing process.
ln this example, 1 have activated all of the criteria. ln Figure 3.4, you see
the area REREAD AUDIT LOG. This allows you to read the current audit log
and view the results. This is identical to the area described in ST03n,
which shows the sarne result as STAD.
An•/ysls ofSecurlty Audlt Lo11
Reiead Audt LOQ Reclsplay ONy Read Al.dt LOQ FIie Statlstlcs
lf you want to identify the location of the audit files, use the top menu
path GOTO• FILE LIST as shown in Figure 3.5.
@ Security Audit -
Log -E dit I Goto ] Environment S'l_sten
... DigJlay Statistics
Fi le Stªtistics
Analysis of Securi/Jj Eile List Shift+F7
43
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
Once you click on RE-READ AUDIT LOG or call the STAD transaction,
then you will see a result similar to the one shown in Figure 3.6. The
TRANSACTION column shows the transaction codes used by users. Note
that this analysis also shows the PROGRAM, which is an essential part of
our later effort to develop the custem data model for this particular SAP
ECC implementation.
@-f;dl l""'!iOCO--�
e • <1 g e0e Qlle& oa�� lãllll ci>•
SAP WorldoMl:Sln{lle Stlti,t/u/ll«ord, --
- \lJJcS" • • � �-- !iiS&- x,..,.,., <11
_•
$pto,: n1 ....._, of JUt. �di rot...-,6td l'ntbout. ,aGU): 1 ( 1)
,.•
..
An&lJMd �,: 04/18/:01$ / 15:)4:00 • Wlt/2015 / lS:44�N
,u.u,ue
..., ....
OUplqo IJOOI: 111 CteO 't4'� Mtt.44 b7 UM
• • • •
"'""' .. ..
• • o
•
lS:)4 :1 7 llld:.t,De T O U.PST S l l
u,m
•' •'
lS:)4: 11 4()1.0C Ctu.arf> i: 1
• o u,m
••
o
.. ..
lS:)4: to
<teum rmcncs a u,m
••
15:)4: l:O c.u.t> __ t
1S:l4: l:O ltS.... - -S 1$ !.I.PS'T'S
1$:)4: 2 S SESSIOl_uDQ:fl S.UUl'!ll_JI.Ylc..LTIC9' o ou,e o
" •o
........
15:)4 :)1 fl'AD ltSSTAT2' O •1• O 18
1$:)5:02: fl'� ftSff.l.Tt:6 D IOlt O
,,.,.
"'
4
"''
'·º"
4
•o
-
lS:'5:14 A UOI O
•'
..
lS:)S:to SESSIOI_UJM.D. S.Utsr!a_Jl'Yt'4TICS D GlOI O 10
,umo
--- --
" "'
1$:)5:20
- . ......
U:35:?0 <tCUlUI na:rtor CAU>
15:)5:20 ibSICRít
•s •" ' ••
o
......
U:)S:to "
.."'••, ,
<amo
--- ......
18
•o
1$:)5:U
o
.. .,..".
--
.,.
U:SS:21 tt&\Tal_lal'ft'._fNI'_11_,u,1.ioç
15:,S:U
.......,. • • •o
- ·-·
......
..........
lS:)S:tt
...... ,,",
1$:)$:,0 <».>ISPU.C:C,, l l
......,.
...• ,,.•
U:)5:)6 D 1-SOI O
15:)5:,t
......,. o
•o
o
-
15:)5:SO
---
lS:)5:St
-
U:H:1 1 a.r.,,. T O l l
-
•o
1$:)6 :1 1 4CLOC CL&Ut!t> • l
!Umo o
- - -··-·-·
...... ... ... ..
U:H:U
...' ,'
1$:)6:21 4CU1D rmcnor au.-,.
15:H: U s "
1$:)6:'1 o
15:)6:'1 - m: • 1
.,,
... ,'" .. o
o
•
1$:)6:)4
'• •
U:H: )4
1$:'7:U
- - m:
<teu.rc ,menor CAU> ? l • o
o
• •,
.
t; EYP (l) 1 CO • CS<8AP CMl
Figure 3.6: SM20 shows the transaction code when you read the log files
Transaction code SM20 reads the log file content and allows you to view
the content. Now that the relevant information is available, the process
needs to be automated.
There is a program in SAP that can be executed and return the results
seen when running the transaction code STAD. lt is called RSAU SELECT
EVENTS and is a report built into SAP ECC. lt allows you to obtain the
information I discussed above via a report. For these purposes, the re
port needs to be automated so that it runs every day and exports the
data to a database automatically. lt is possible to do this, but it is not a
very straightforward process.
44
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
You can run reports and programs manually using transaction code
SE38. Once you run the report, you can schedule it via SM36.
1
Program :RsAu_SELECT_EVENTs
l
!QJ [D Create
Subobjects
@Source Code
ovariants
0Attributes
0Documentat ion
QText elements
�
[
Display J li:? Change
45
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
What is a BAPI?
The SAP ECC system offers BAPIS. BAPIS are Busi
ness APls (BAPI). The acronym BAPI stands for Busi
ness Application Programming Interface.
There is a transaction code in SAP that allows you to test and run a B A
PI. This way, you can identify what input data is required, and you can
determine if the result meets your goal. ln this case, we will utilize trans
action code SE37 (see Figure 3.8). This allows you to run BAPls and
provide the sarne input that you would later provide in your own applica
tion. SAP provides various BAPls focused on system utilization and sta
tistical data analysis. Once you have SE37 open, you can enter the
name of the BAPI SW-,.C_CXl..LECTCA_CET_AG:REGA.TES.
When you run this BAPI with the correct parameters, you will see the
result tables. ln Figure 3.9, see the highlighted area USERTCODE. lt
shows 36 records. lf you click on the icon next to 36 ENTRIES, you can
see the details for each entry.
46
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
...
•"•"Lokele Schn1tt.stelle:
,.. IMPORTI«G
PERIODSTRT OS/18/2014
1 SUJOClRY ONtY I
P'ACTOR 1,000
1
Tablu ValW!:
TASKTYPE o tntne.s
Til!t:S
R.esu.l t:
Re5Ult-: 1 8 Lntc1e�
fll O tntdu
16 Enales
0 Entr.1e:S
DBPROCS
EXTSYSTlll
Rc�t:
Result-: 1
B
40 Entdcs
o tnt.nu
o tnu:ie-s
o tntue.s
TCOET
FRO!ffl:ID
P.uult:
1 2 tntxiH
1111 O tnu1e:s
o Entne.s
o tnuie.s
l!EBORY
SPOOLACT
P.uv..Lt:
Rea:ult:
1 1 tn;,ry
lill O i:n,.n..
36 ?ntL1é.S
O tnu-1e.s
2 Ent.uea
TABLlRl:C Ili o tnuie:s
tlSERTCODE
RFCCLNT
R.esul t:
R.esul t:
1 36 Enta:iea
o tntne.s
13 ?nuic:.s
o rnuu.s
6 thtrus
RP'tCLNTDE ST ■ O tnt.r.le:s
47
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
Therefore, you cannot get data via direct table access. You have to use
the BAPI to extract the data.
You can evaluate the structure of the MONI table using transaction code
SE11 (see Figure 3.10).
e ISEll
@Database table
0View
0Data type
0Type Group l ]
0Domain
Osearch help
0Lock object
Click on DISPLAY to view the structure of the MONI table, which will reveal
that it is a cluster table (actually cluster column) as shown in Figure 3.11.
Tables in the SAP database may have cluster columns. ln this case, you
cannot directly use SQL queries to extract the information.
48
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
1!0111
L.
ln the meantime, 1 have gathered the required information to run and test
BAPls. With this information, you can now use SAP GUI to test the pa
rameters needed to produce the required output for your application. ln
this case, 1 used the S\,1'11\C_CX]_LECTCR_C:ET_Acnl:GA.TES function mod
ule to get the required statistical information based on transaction code
use.
ln order to run BAPls, you need to define the interface and programmati
cally provide the data via C++ or ABAP programs. However, 1 am using a
solution that enables the user to first find a BAPI, then identify the inter
face elements and finally, provide the required input data via a graphical
user interface. The solution is called BITS and leverages BAPls.
The BITS interface shows a graphical interface where you can organize
your tasks and design the workflow. The green boxes represent direct
table access. The yellow boxes are BAPls that take input and produce
output (see Figure 3.12).
49
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
º�""',,._
,,._
---��,,e,,.,to.,;
llll'P�
111TP<OUe
e- e.--
• J
---
SAPlll'Cwt
.m.... Síne
i,00 .,1 1-l 'l , ... ...
;-��.....
i:- ······· · · ··· ········�············ ·- · · · · ········
.C:.- Moa-llf. «I
.,, f!í,....,,.,.c;r»io.. 'I
.
.,,
·--
...,
,,
�--
::;-,:-_
•Cl1.,__==-
fte
;. »t. €:ii:iiiiiiZtt:1
.,,
fl!__
-CI,.�
'"'e1lblt
ª
11
B 1
o...,_,
,, B ICCltCI'
.,...... "I
.., '"':rz1
ei.,._
......
���
..... .. . . ...
sg--
,__
,o-tt
W•• .., .
n··--·••f...................
-g��w..
IF'tdw.1._W
,.." .......
i:-"s,,Ndlr-.cllk
»-.fit
·
The BAPI explorer interface allows the user to search a BAPI by keyword
and then view the interface elements. This essentially provides the func
tionality available via SE37. You can search, find, and test BAPls using
this interface. l n Figure 3.13, you can see the BAPI I searched for and
the required input fields, just like you see in SAP SE37. However, now
you can work without the SAP GUI to automate the task.
""""'"'" - .
.....
,\l'IC.IIIOnI\Ofllt
W,M\Átlltllt
HMdl,t.U.:
r
ib-COl l.t(lCft_ Cifl..,lG(iR(<i,All;S
r ,-«flsrri'(IOOl'tdll'IJ:
5l.tt'NAAV.Ot-l.V
Jl'ACTOR
r ônfflorft!Uv-: � - - - lASf:.TVPf (IA81L]
TASKTIHES f!A8lf]
""""'
TI "5
""""'"
[T-"")
[T-"")
""""'""'
.""_...
P•.wnat•
TC OET
[TABlE]
(TABI.E]
l'tRIOOTYP!:
FRONTE>D
POUOOSTU '""º'" [l""I
[l""I
!POOIACT f!A81L]
�Y.ôNLY
50
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
Using this concept in BITS, you can easily automate data extraction from
SAP ECC using BAPls and function modules. Later in this book, 1 will
further expand on this approach and will use BITS to drive the SAP data
model to build the platform for SAP 81 Edge.
With the following concept, you can understand the SAP system and
structure the relations of tables, procedures, etc. ln the SAP GUI, enter
SE93. This transaction code allows you to maintain transactions. For
example, you can enter the transaction VA02 and click on DISPLAY (see
Figure 3.14). The result will show the transaction name CHANGE SALES
ORDER. You can also just enter a * in the transaction code form field.
Then you can press ( F4) to see the full list of transaction codes by de
scription and transaction code. Note that because there are a lot of
transaction codes, this list will only show a filtered preview. However, for
now, you may understand the key value of SE93. The subsequent screen
also shows the PROGRAM NAME that is used internally by SAP to run
VA02.
@ Maintain Transaction
SE93
0 1
jMaintain Transaction
6Ó � � ê].. li M Cõ �
51
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
DlsplilyD/iJ/011 TrilnSiJCtlon
7 -
� ......1
Transactlon code
Package
e [SEBO
[
jgMIME Repository
1
�Repository Browser
[
� Repository Information System ,1
l!EJT ag Browser 1
!�Transport Organizar 1
[
� T est Repository 1
IProgram B
lsAPMV45A 1...1�1
[ç:, 1 ,l[�l,jl@)�l�[�,I� �
Object Name
• [J SAPMV45A
• l'él Dictionary Structures
1lleso1:ltion
Sales Order Processilg 1 1�,
•
• *CCDATA
• *COBL
• *FPLA
• *FPLAD
• *FPL T
• *FPLTD
• *MTCOM
• *T691K
• *TGSBT
• *TVAK
• *TVAP
• *VBADR •
• *VBAK �
◄► ◄ ►
Figure 3.16: Use transaction SEBO to see dictionary object and tables
52
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
ln order to better utilize this concept, keep in mind that SAP transaction
codes have a common structure. The suffix "1" usually indicates that this
transaction code is used to create transaction data. The suffix "2" is used
to indicate that the relevant transaction code is used to change already
existing transactional data. 1 have noted a rough categorization of this
concept below. You can use this information to better identify the relevant
tables. You can also group the tables involved using this filter.
53
THE BICASE STUDY AND 'T'HE TOP T'\XIO SAP TRANSACT'JON CODES
complexity of the SAP ERP system, there can be very different structures
in place with regard to tables and data, depending on your SAP configu
ration. Therefore, the SAP system audit method has been established to
analyze the system and determine how it is used by users.
To summarize these efforts, see Figure 3.17 for an overview chart of the
tools I used in this chapter. You can use it as a guide for your own pro
ject.
-----
STAO Aud,I Report: RSAU_SELECT_EVENTS
SE38- Run Report I Create Report Variants
SM36-Schedule report
,
"- 1 Metadata table
1
DD02L. SAP Tables
0005S- Foreign Key Fields
..
DD09L-Technical Setlings oftat>les
0026S- Ba.se tables and FKs
Structure Tables • Cluster Tables - Transparent Tables
Figure 3.17 shows the path your data takes from the lower database lev
ei where data is stored in tables. The tables can be used in direct que
ries, and in that case, are called transparent tables. Cluster tables have
content that will be prepared by the application server once read. There
fore, the user cannot query this data directly. ln order to find tables with
54
THE BICASE STUDY ANO THE ·rop T\X10 SAP 'T'RANSACf!ON CODES
information, you can use transaction code analy sis and auditing. Using
transaction codes will allow you to determine the tables used in SAP. You
will use SE93 and SE80 to do this. The relevant dictionary information is
the basis for your custem SAP data model, which we will further explore
in the Chapter 4.
55
4 Connecting to SAP ECC 6.0
When writing reports against SAP ECC, it is criticai to identify the
relevant information objects. ln order to accomplish this task, a data
model is most commonly used. However, with SAP ECC, the underly
ing data model is so complex that it is not available in a simple for
mat. The data models you can obtain are usually oversimplified, too
complex, or not accurate. The reason for this is that SAP ECC has
thousands of tables, and based on the configuration, there may be
different table structures.
ln addition, not all tables are meant to be read by the user directly. To
recap, SAP uses different table types to store data. The different table
types are:
► Structure tables.
► Cluster tables.
► Transparent tables.
When I say that SAP has a lot of tables, it is really true. There are more
than 50,000 tables in a standard SAP ECC system. However, users can
only employ the transparent tables for queries. The structure and cluster
tables are used by the SAP application server to assemble data dynami
cally as the user works with SAP via the GUI or another interface.
Keep in mind, though, that all the tables are rarely needed to obtain
meaningful transaction data. Most SAP systems use a common set of
functionalities. The common areas are grouped by the modules that are
configured for that particular SAP system. The subtle variances in con
figuration make all the difference when trying to get your queries to run
with SAP ECC. Those will be captured with transaction code utilization.
57
CONNECfING TO SAP ECC 6.0
► Localized tax settings can have a big impact on how tax calcula
tions are dane. They may be different from country to country
and can sometimes also be undocumented. 1 mention this be
cause, in some smaller countries in Eastern Europe, the tax re
quirements are unique and are often adapted by local experts.
Depending on how fast the relevant laws and regulations
change, the relevant tables, programs, etc. may be undocu
mented.
Please note that this concept can be entirely automated up to the point
that you generate the repository. ln this book, 1 am using N20NE Bits to
accomplish these tasks. But, what if this approach does not get you to
the information you need? ln this case, you can use the concept of SQL
tracing.
As part of BI Edge, you get the toais to connect with SAP ECC. Whatever
toais you use to collect the data, it is important to keep in mind the desti
nation and the potential user group. Hence, the data sources you create
have multiple layers. ln SAP BI Edge, these layers are represented in the
universe concept via the data layer, the semantic layer, and the business
layer.
58
CoNNEC'nNG TO SAP ECC 6.0
ln the meantime, 1 will further focus on the toais provided by SAP in SAP
ECC. As I mentioned before, the SAP ECC system already includes
many toais. ln fact, the more you learn about SAP, the more you will real
ize that many products that evolved from SAP to address certain market
needs already existed in SAP R/3 and SAP ECC. This fact also leads to
the conclusion that a bare banes SAP ECC system is often a better
choice than having additional products in the solution architecture.
Therefore, 1 will focus on the query toais that are built in with SAP ECC.
You can use these query toais to create direct table queries, create que
ries against the logical database, etc. These toais are important because
you can use them as a data source in SAP 81 Edge.
1 will discuss the benefits and limitations of these toais in this chapter. ln
addition, 1 will add more information to the case study, which will continue
to describe the steps required to develop and fine-tune your own data
base model with SAP ECC access.
To get started with SAP queries in SAP ECC, use the transaction code
SQVI to open the QuickViewer. lt is, in essence, it is a landing page for
all of your SAP queries.
59
CONNECfING TO SAP ECC 6.0
-..._,
COG:>0 cP Q)1n bael,:ao.n:i �savedl.lSU
-
\\'ck:omc (O 1hc
"'-·ickV,ewc,-
'1 .� Eielp toptel : 0.11 IOIIU'CC H � , t..t fidSH � , SoftHs-c.,dt.Sn.«100 ,ln 100Ckfsoo�
.OKM:uclde<'l>OII�,Qu d:1.--, $eed.. .:.
.=J
ln Figure 4.1, you can see that there are two main sections of the screen.
On the left side, there is a brief explanation of the features available in
this section. As discussed previously, most SAP transaction codes are
categorized by a suffix, which identifies the purpose of the transaction
code with regards to create, change, and view functionality. ln this case,
the relevant transaction codes are available via the links on the main
SQVI page. For example, if you click on SAP OUERY, you will go to a new
screen, which you can also reach directly using transaction code S001
(create). The other relevant transaction codes are S002 and S003.
You can see that the increasing suffix identifier structures the expected
workflow. 1 designed the query, then I assigned a query to an lnfoSet.
Finally, 1 assigned a security context for the lnfoSet.
60
CoNNEC'nNG TO SAP ECC 6.0
8ased on the description above, you can see that an lnfoSet uses a que
ry, which then can be employed by users who have access to the securi
ty context assigned to the lnfoSet. ln other words, you can only run an
lnfoSet if you have the proper privileges. This is a crucial detail because 1
will utilize lnfoSets as data sources for 81 Edge later in this book. There
fore, you can see that the data we use in 81 Edge can be defined in SAP
ECC using query toais that are already built in to your core SAP ECC
system. The execution of lnfoSets outside of SAP require that the user
executing them have the relevant privileges assigned. The new 81 Edge
version includes a new option that allows the user to connect with SAP
ECC using lnfoSets. For this reason, you can utilize this concept to cre
ate Crystal Reports in 81 Edge. lf you already have preexisting queries
and lnfoSets, you can also leverage this fact and use them in Crystal
Reports as a data source. However, as mentioned previously, you need
to make sure that the relevant user has the required privileges.
4.4 SQ01/SQ02/SQ03
��[00)[00,� .J �8ª9 �
Quenes of user grc,.p /ISUPS/a-1 : /� Organizational Manage
Name Title lnfoSet Logal Database T;lJefVrew/- !nfoSet Tltle
61
CONNECfING TO SAP ECC 6.0
Before I continue to create a query, 1 will briefly review the other transac
tion codes involved in this process. Transaction S002 transaction allows
you to create an lnfoSet, which you can do by assigning a query and the
security context (see Figure 4.3).
lnfoSel Í [□ er..,.
Transaction code S003 is the interface for the user to create and assign
security limitations and groups for the lnfoSet (see Figure 4.4).
With this in mind, 1 can continue with the query creation process by se
lecting the type of data source that I will utilize. ln SAP ECC, you have
the following options for selecting the data source:
► Table.
► Table join.
► Logical database.
► SAP Query lnfoSet.
62
CoNNEC'nNG TO SAP ECC 6.0
UserGroups:Initia/Screen
1D � � � Additiona l funct ions
l.9
User ,;iroup _[isAPQUERY10DI Chan,;ie 1 _
._ID cr _ea_te _,
_ _
1 1� 1
1�
Display Description
l 1'1'
User Chan!JB
InfoSet 1 Change
63
CONNECfING TO SAP ECC 6.0
QulckV/ewer:Inlti•I Screen
lô � fl <f>l (l,w«h v.nnt q,1n backg-o.rd *5aved Llsts
Vckome to the
ickViewer
1. Emer a name and choose
1 [im:s Jl LORDS
_ 1 1 I.? Change 1 �I íl =º==C=
re=
•t•==--J
reate D
J. Cboose a title and
lo& SAI' Q.Ery J (<l> Execute 1 '--'*l __o _s...
i ola'-y __,
emarks
. Emer lhe na.meofa Data
uru . 1bis can� a
ble, a logical databasc, a QJcl<Vlew II 2 lS_ A LO�
_
·oi,, or anllik>Sct íiom
Tltle Sales Orders
APQuery.
. Use la}-OU:mode @ to Conirnents 'This wil sh:Jw hJw to extract Sales Oder Information
)'OUI yourQu.:k View
pbically. Cboose basi,
li,node !ê wbc,..,..,-you 1. Data scuce:
,-.n1 t o dÍtcctlyCJ<pOrt tbe
,port fields sdected.
Tál:te
Tatle 8
Tatiepn
Click ontbe b)perlr,k to� Logi:.11 database
to me correspondmg ropic in SAP Q.Ery rnroset
tbe onlne docu-nerution
64
CoNNEC'nNG TO SAP ECC 6.0
Once you have selected the data source TABLE JOIN, you will see an
empty area with an icon-based menu system (see Figure 4.6). Select
INSERT TABLE. Select carefully because it is advisable to connect tables
from left to right. ln fact, if you do not follow this paradigm, the system
may give you an error when you check the validity of the connections.
"'1 !•i.rnser
lo t �Alias �:a, concitlorlS m� El. (;a
tal:Ê (Snft_.Fl)
Navigation
65
CONNECfING TO SAP ECC 6.0
These are transparent tables that hold business data. The tables are
connected with key fields called primary keys and foreign keys. For ex
ample, the VBAK table holds sales document header information. The
primary key in this table is the VBELN (evolved from the German word
Beleg Nummer) column. This table connects with the VBELN column in
the VBAP table, which holds the item data of the sales orders. Subse
quently, all the tables are connected by single key columns or a combina
tion of key columns. The relevant logic must be developed based on
business logic and required target result.
Please note that the core transaction tables are the sarne for all SAP
ECC systems. However, there may be subtle differences based on how
the system is configured. For example, when you create a query to get
sales orders and pricing for items, then you will have to consider that
different tables may contain the relevant data based on how the particu
lar pricing system was implemented. VK13 is the transaction code to
configure the pricing structure in SAP ECC. Depending how this pricing
structure is implemented, different types of tables hold the data.
When you add the tables in the right sequence, the primary and foreign
key connections are made for you automatically. You can also update the
join conditions by selecting the tables you want to join and then select
JOIN CONDITIONS in the icon based menu. An additional aspect makes
this method of creating your reports user friendly is that the table name is
accompanied by the table's long description. When I mention user friend
ly in this context, 1 mean that the intent of the design seems to have been
to be "user friendly." You decide for yourself if that is really the case or
not.
66
CoNNEC'nNG TO SAP ECC 6.0
I �"" ....._1
Crem QukkViewNU_SAi.._ ORDS: Choo•e Dm Somee
60 C•, O ,.-
,._ l!l � � �
·- -- ... .
. - -----
- .....,.......,,_
-.....-·-- ---
'
_ ...
, .....ª.............
.,_, ,
........... ='----•
-
°"""'
--
.._
"°"'
•
A""� ,f'4(1N
-- --
....�
..., A-
'°°'
......,__,.,�--
,fPOSJ«
"""'
�I!- ...,,_
�.,_. .,w«-..w..
"""" """'
...
~·
'"''"
Mulh--1Q,w,lilr
--
,c...,10.,,,....,.0,,.;1,
s.-_,..,..�----
a-u,,,J-.-
����iiii"' """"'!
---· --...._
�r-�;;������ - = �--ti . . . . ..... . =----... .
�
� � �
................�
....,,_ L ,,.........fí..-í,- 3
-
-
""" • ._.,_, """'
tfvew.;
""'' .,.,.,,.
�o.o-
......�..... .c;.w.
'"'"' ... ......,
w-
-·
-
(
..
�I N-1
°"""•,..�-e
.............
SOdtc:VIWWu,....,.
,wcr u..,..i
......
i;oo.o.--o-,
""" ,.... ..:....-.. -""""'
OtlOI 0t.-
'1Slll
"""
KGI O
......
i.t •C. .
,.,..(P.-.P
....••..
•
• O... ......
�- ..,...,,,..
u.�-.i """'
........
U.N�1�CII-
As you add more tables and connect them, you may come across a situ
ation where there are multiple columns that have to combine to achieve a
proper link. ln this scenario, it can get complex quickly, and you may
have trouble managing the complexity. 1 recommend that you create a
group of manageable queries and table links and then combine those to
create a query hierarchy.
The SAP ECC table join manager also assists with this issue with the
CHECK TABLE JOIN CONDITIONS feature. lnterestingly, this feature checks
the join conditions from left to right. Therefore, the way the tables are
organized on the screen has an impact on how the logic is tested. For
example, in this scenario, there is a message that indicates TABLE LIKP
MUST BE THE RIGHT HAND TABLE IN A JOIN (see Figure 4.8). While this is ra
ther counterintuitive, it can actually be helpful at times.
67
CONNECfING TO SAP ECC 6.0
1m.1
"""" ,._
-- i _,,......,.,..._,,....
-�-
-----
... --
tweAll'1 t..10.C-,1-•111•
(1.-ctllo,re:ti!:::1 '-
.
1 •._.,..,._'"t.:a=-.... 1::
UPl,IIINC
"'"'"'
---
.......
....,.......
[
�"'""" --
--
- ....
..._
-�-......... --
'
..... I
,.,..... !,
"'°"" !!
..... R"""WgC,. �Oo,c,wt-1 ,....
""'""" .........
_....,...,.,..t '""' o.1-,l 'lff
l l
"""'
wos ...;-...i11oa.,..f/_,,,.
_
"'= """"
""' .., ,_ ,.w..< """ ...,.._
"°"'a,,-..iq,.,,,.,
..,.,._
�li�•�
.,.,.,
.............
...""""
""'"'il•,Mt.cft .,....,,..._. Muri,I
,�.,
_..,.,_... ,.............. ......,
......
·--
o-,on..,,,... ___ .,..,,OI),____
...,., _,... CHAA<l
.....
�wt.�
,_,.....
/
,.,,.,
"'"" "'"" .....,_...., 0.-�-c-...
......
(D11119.-«i>H Mill..W�
'""' �-fw$lllil......_
"'"'
--
e...u.i.,..........
��._o,.
..,,,,, "'"j ..._f/_i.
-
S<•�h...
TIM)G
�E ' • _i • •
--·- ,. - .....
-- __
lPAI ,._....... e.-,.. __ "
.. /
--· _-· -
.
-·,....,
,.,,,..,
.......
.L..1te k1•111 1......,..........
TeclllllC:iilJ&we ......
,_
.....,
IT---!Nw I�•-
...... _,,.. .
-- --
I
. -,f-
....,.,,,�..-o.-
'-"A-.UI .H
..... """'
�t+
...... I
e.,,,,,.,
......,. ,, ...
""""
,,..
.,,.., lt"'°'"•C '""" ,.
,...,_..,.._
..... .,. ,._n(..°°"' ......
0-,.,(lft...
'""
()lltfOI
""" ��...,..,._. wo,o
..... .........
�-""" .._
W-r'n•
�,.;,1/,t,,""4-
f'I
l'J
1.
�
'
...,�,..
,f "
Once the table is moved a bit to the right, the TABLE JOIN checking fea
ture approves (see Figure 4.9).
c,..te (}ulc.Vkw N2J_SAL._ OIIDS: Choa•• D•t•Source
_ ,
-.... -�--...............
-- ...
-·.......... --
....
,,..,, -
..........
··· -
°"' -
.. , ....._..._.,..._....
,fY. a.ak..í ,_.,......._._
---�
VW11J11
...
,...,_._..__
• Jt 1- A"'"'
.-
-
A"'"'
M
í
-........... ,__,___
-,
A,..., o... .,......,•..,....� A- • ·••c.-11- A....,.
.... __,"
"''"' ...........
.... .,_..�....
,,,_
,,,,.,_
.....
,,.,.. ,._,,,a...,_....
o-...,...........,
-·
""·,
"'
M/llt�
,snv � nl!l4 "6,;,I...._
..�,
..... ...
N_tl._.....0._,
�"'011"'-MllfM
c,..,,
�IIIMII/I.......li•.wlltol ,,,
_.. ..,..,--�
........ ,_,
N
..
, ll'Mo\m
..,., o.......,�---
...... �...,-.....·......... ""'"· """"""''�
...
Dto........�-"''
"""ui."•
0--•�lwc-..llt
�o ....ou-•-.-.
,_ ...... __
/rl\A l(L
so...,,_.;..,....., _,,..
..........
l
,.,..
""'°" ,,.,.t11t11
1 ....
' ..,ov � ""'n!I
• ,}
�·___,, ...-,,,
.............e..-...... " --
JllDtlO..
_....._...........
-
-·....., --
1m.1,._; , e_,_
_, ...
A Wllli o.a,. ..,
e..._
-o• ..
,.. ,..,_
,flO.tffl C-t�I EflMirl,\ "_,,,.._ .....
,.....,
__ ,.,.,
, ......... .•
o...... ��w.c
.....
<,ltl•I
11o1,o1e
.. s.o.,--
"""" ..,., �......., .......
t.,....((uo-.�o,Çw o,,a.-,'""
...... "' •
V..., g
,..n
HMo.........._ SI
' .
Figure 4.9: Transaction code SQVI -table joins positioning
68
CoNNEC'nNG TO SAP ECC 6.0
Customer Table VBAK: Sales Header LIKP: SD D lvry Data VBRK: Billing Header
KNA1 VBAP: Sales ltems LIPS: SD D lvry ltems VBRP: Billing ltems
i
,l'1Ml.N
�
...,. .....
U'
,Wf
o...._._._o.
-· �..... W'fl,�....-.,.......�
oe-
...
�- ..._o_.
Qo-�--�"'- lJ.t».t
'
to-- .,_,,.,,,
-_
�-=· .. .. .:.
< ..................
,�
•·"-"'-·--·=. ,.
- -�
"'
.:,: ,
<• •-........l
... , _,..,_.,.._ .• ...... ... -
--- -
,i I.U'I"°
e,....,.. ...
' .,_ ...T
w�•
.._ ._
...
�
,_, "
...
''"'., ._........ ,--.- i ., ..,,.
r - ,;-,.
_ ..
.-·....· ...............
�-
.......-...... .....:i.-
l'l,n;o:
........._.,..,..__.._ -
,i...:1151"'
""'''li: ..,,,,,
j-
-- ,i �
...,.___.,#___
---· ,..
-- --
....... �....---<,,,.,-.
.,....,. ---�--"·
""' ""'"" '-·"- _
�-... ----
....-,1--<-,,-
... s.,_-........._.'"""'._tb....,.
lllllO
"'"' ,�-
. -- ..,.._
a....... ....._,._c,
...,.. --J-
t.... . . ,.__. _ ._ l'\l.Hl
�..
....�·....··-�li!
- �,. .,. :--...........o--
mw
- "' •
.....-••-u--":/'--
�
�
'-�·• •o,
• -
Once all the tables you require for your query are selected and connect
ed properly, you can proceed with the next step. Select the columns from
the selected tables that you want to display in the query result. Keep in
mind that, up until now, you only selected the tables, and the logical way
they are connected is by Primary Keys (PKs) and Foreign Keys (FKs).
Now you can select the relevant columns. This is achieved by reviewing
the DATA FIELDS section in the top left corner. Once you click on the arrow
next to the table name, all of the columns for this table will be displayed,
and you can select them. The selected columns will be displayed in the
right hand section FIELDS IN LIST (see Figure 4.11 ).
69
CONNECfING TO SAP ECC 6.0
-
QulckV/ewer:InltlalScreen
rnla'yrut mxkl <:i>Exerute 60 00 00 fi
Dat afiefds USt •••
• T )Jl"l
• 8Sa1es0ocunent: HNCler 1
4
1
Title Sales°'"""
• B0mera1 Data ri Custuner 3 Conments TI-is M show how to ext,act Sales o-der lnformat ion
► BSM00a.ffll,rit: lttm OII o
• Dso dxunent: Oeherr : u o
o
• Bso ocw:t.ment: DeMry 1-11 'SAPUstVlow9< ·I
-'
._,.,
• Bea,g Doo.rnent: ltem CM o
Ust lld. selec t . Scrt seq,.ence Selectlcn felct o.ata Souce
Doo.rnent: 1-eader o
---
so cfoct.mlint tittQ(lry
[ill \,a"ISaetJOn �o.e>
• • • • •• �
SaltsOOCl.ll"llt"lt Typo
uic1cV,ewer-Fie1d aelection Odet reason (reason for tt
Choose the f�lds you w:u1t to
· ,-pby in th,e list Cclectoe ourt>e< (SO)
o selec:1, dek on� �.,,the toble Dehertblxl<(doc.,,...,th •
oncrolonthe r;lt anel choose ◄ . Blro tlock hSO docunerr •
o destlcct. cOCk on thettltl)'illhe ◄ •
•
ble comoion tbe leli anel cOOOse
•
�l>woo ►
ou chlnge tbe tieli scquenc:e usir:ig lhe
◄ • ◄ •
IP'-it>uttom
• • a.d •.
on6dis and �lttti:m tields can�
aftd onW appropriatt �s
ln other words, this is a visual query designer where the forms and fields
completed will determine the resulting query logic (see Figure 4.12).
70
CoNNEC'nNG TO SAP ECC 6.0
Data fields
I
1 • ffflGenerai Data in Customer
1 List ...
3
Qui ckView jN2l_SAL_ORDS l
• Customer Number 1 b!J ... Tit le Sales Orders
o
E
• Country Key Comments This will show how to extract Sales Order Infc
• Name 1 ,/
.
• Name 2
o
�
• C ty
i
• Postal Code o Exportas JsAP List Viewer ...]
• Reg on (State, Prov nce,
i i o List fld. select. Sort sequence /Selection fields ½
Sort field o
• House number and stree
o
• First te ephone number
l
Fax Number
o
o lãl.l ds in list
You can also test the query as you progress through the process. Once
you test it, you can save the query. To initiate the test, click on the EXE
CUTE button as shown in Figure 4.13.
71
CONNECfING TO SAP ECC 6.0
l••-••
Data fields list •.. QuidcView _jN2l_SAL_ORDi_J
• llfl General Dat a in Customer 3 •
Tiije
• Customer NUmber 1 � •
• Cruntry Key O ccmnents _Jrt-is will show how t o ext,act sael s Order Informati:ln
·Nanel liJ
• Name 2 liJ
• City 0
!SAP List Vlewer
• Postal Code 0 Exportas :]
• Region (State , Pl'ovince, e O
Us t fld . select. SOrt se(lJer v::e SelecticV1 fie l ds Data source
• Sort fteld 0
• House nunber and street O
• First te lephone number O Availabl e fiel:ls
• Fax Numbe, O Field Descript. Fiel d Oescript.
Eil. El}
• Indi cator: Is the account
Row �
O j
. . Sales Document l'mH:h Record wa,
•
• Ad:lress O ◄ :
��:� ��
J
• Search term fcr matchcoc . . Customer Nu mber 1
•
O : Y
• Search T erm for Matchco, O ... Name 1 ame of Person who Creab
• Search term fcr matchcoc O
3
4
[Ij -r._
... Name 2 uotation/lr-.:iuiry is va licl frc
-'
·Title O :
. 0
Cl _f
7 ---ioate unti wh ich bid/quotat
[◄◄J
OC!
f�:::.:�.;�;�/
• r,..,...+,..,1 ,..�,..,. 1-J.-..rl, 1.,-.,. .- , ..
◄ ► ◄ ► ◄ ► -
- �
- - ��-
QuickVie\ver-Field -
selection -
-. ri5I __;
� ,
Cboose tbe fields you want to
Tr ansacti on group
display w tbe list 1
_y;ales oocument Type
o select, click on tbe entty in tbe table
-,Order reason (reason for t�
ontrol on tbe right and cboose ◄ .
o deselect, click on tbe entry in tbe -t uarantee date
ble contrai on the left and choose Collective nurrber (SD)
ushbutton ► . Oelivery b lock (cbccment h •
ou change lhe field sequence usingthe 1smrg !:rock n SD documen ...
i
ushbuttons ,... and "". • ◄ ►
Sort fields and selection fields can b e •
naiatained o nthe appropriate pages ◄ ► ◄ ►
Figure 4.14 shows the additional options available to design the query
using table-based forms in SAP ECC.
The last step in the process will save the query with the name you as
sign. By doing so, you can call this query again later using the parame
ters you defined. With reference to SAP 81 Edge, this means that the
query will be available in Crystal Reports only if you create an lnfoSet
based on the query (see Figure 4.15).
72
CoNNEC'nNG TO SAP ECC 6.0
QuickView J
T i tle
Comments This wil l show how to extract Sales Order Jnformation
QulckV/ewer:Inltiilf Screen
(t:J� o <til <l,w.th va1.llt (t>Jn badq°""' .,.,...,,..uru
-
Wdcomc to thc OutckV,cwcr ..:.
1. Enter amme and cboosc Creatc Q
2. Choose
Qud<Vlew lâ1_SA.L_ORDS
1.:1
°"""" l (D o- 4
--. 1 _,,. : Oesooc:ion .,
a ta� am ter'tW'k:s.
3 . Eaerlhe m.me oh Oat:a Source
J'biscanbc a table, alogi:aldatabasc, líii � '1 §, ))
a joil, or anln&:&t iomSAP Q ucry .
ou1c1ev1ev:• toe uuc: BUTIR
4. Use layour rmde til t0 la)'OUI )'Our
6'< -
g..__. �.,
�u,::k \/,ew s,aphó:aly. Choose buis
1
1 WoSet
1
. ,@. wbcnc,'Cr you wam to d..cctly T�liOln t>loSettilte
the rep01t 6c:1b
: sclected. sã;êsQde's VSAK ...
test 19CT • . •
Clickonlh< b)pe,ld< togo
to tbc conespond.ilgtops: n
tbtonline doctrnemaUO!l
.
Figure 4.15: Save the query so that it appears in the query /ist
73
CONNECfING TO SAP ECC 6.0
The SQL tracing method requires that you activate the trace using trans
action code ST05 performance analysis. Select SQL TRACE and click on
ACTIVATE TRACE. Next, open another session with SAP GUI and perform
the transactions you want to later run reports on. For example, enter a
sales order while the SQL trace continues to run in the background.
Once the transaction is complete, click on DEACTIVATE TRACE and then
run DISPLAY TRACE. The trace collected contains all of the SQL transac
tions performed by the transaction (see Figure 4.16).
1
e lsTos
L 1
Performance Analysis
1
1 �SQL Trace Activate Trace
74
CoNNEC'nNG TO SAP ECC 6.0
ln the trace window, click on the line that relates to the transaction you
want to analyze. Then, in the top section, select EXPLAIN. ln SQL terms,
this means that the SQL transactions are explained in detailed SQL nota
tion. Essentially, you get all of the SQL commands that were performed
during the SAP transactions while the SQL trace was active. ln other
words, by analyzing the SQL commands, you can reverse-engineer the
SAP transactions and identify the tables that were used to write the data
during the transaction. Hence, you get the relevant tables and the prima
ry key and foreign key relationships most of the time. lf you utilize this
method, you will also understand that there are often many transactions
in SAP ECC that are not relevant for a specific SQL trace. Therefore, you
need to develop a good understanding of which record to select in the
trace window. ln addition, you have to adequately set the proper filters
when you start the trace (see Figure 4.17).
Tr•t:e u,t
� OO IC --1 1
�E,plan (3- Ili Q'\ 8 �
Ttanuc:uon 1 IVoc:1C Pc:�.. no ulrroc. 1'ypf: sc;olcuut. 1ool1Ju.r JQ.I.TUIneblWIP waouixAJe ru1eJsJoois$PU:J001 loe.tf: OS/23/l0141
'
ptoeus no O Proc. Type ou cuent 1oo 1o.su 05/23/20141
l
=
lkl t
l
Dutttlon Ob) , nlM •· Rec1, RC lt.ett atnt 1•
,..,. [OU•IR Otl!N
;
S ILICT IIHtPZ " HUU:" • ' 1• P):SlPlSV.ut: 11f;; T:1'1U>IR '/ /º\ll"IC, cd, •t
'",. l'RMR
dTru •IR
r!TCH
OP!r.t
1
O !l!L!CT IMtRt ··1u.,v;·· • ' 1• P)i SU
. UVAP: l )4416 T :TPblP /ºune. rd. 0/
,..,,•• IR OP!N o
O
( l'Rl>IR oO CO IVU-T
/
.
Jl;TCH
IX!CIT.t.
'! EL!CT lii'XtRt . . NllCt" • /•une. td.
'º' ....,.
IR /º Pl151Pisv.ut:11��4 T:'nl>IR 0 0
1
/ /
�
Ll r!TCH
...... OPIUI O Sll.ltT lllitRE "ft.Ul)T'' • 1 UI) -,.Zl,IV • t AD •Sln'rv • 1 .uro '"SRrn" >• 1 Rll IY '"rwwr'' , "IU:UD" ,"SRTn>'" ,"Slttn"
... AOU>B
iOlbl mtH o
AOU>II o
..
FITCH 1) o
521 AQlbl o
, AOWI "'"'"
mtH
""'"
1)
1) o
••• AOLTS
17 .\OU>B
10&l�OLTS
OP!N
1
SJ
o
O S!L!CT Wt:RE �JUJll>T"' • ;, � - c u., - • ;, r Jl3:5.\PlJ.OI! X::S:46.?.? T:lOLTS •t 1•unc. td,•/
o
---
rl:TCH
..
''· ·-· · . - - - •---• T• • . - ---·,· ·-· · .,
/•une. rd. •/ 1
- -
•� n -•.
108.356,�,
.. OP!lí O SlL!CT ffflERE T 00 •"ILIJ:lr" • 1 /' R3:/18CDW/SA,LIQ000000000027:449 T:VBAK •/
14 V84X mtH o o
When you identify the correct record and click EXPLAIN, then you will get
a full SQL statement (see Figure 4.18). ln summary, you can use the
information to:
75
CONNECfING TO SAP ECC 6.0
Parameters: From SAP/SQL tiace, used for executlon of already complled staternent
Therefore, you can use the SAP GUI to run the transactions you want to
report on. Enable the trace and then analyze the trace result using the
method described above.
As this task may evolve into a tedious process to go through all of the
tables and identify their name, columns, and links to other tables, 1 rec
ommend an organized approach. For example, if you want to trace a
single transaction, you can easily use the method suggested here. How
ever, if you have a large set of transactions, it requires that you organize
and structure the project.
An example toai you can use to organize the queries and data in a way
so that you can easily maintain it and use it in 81 Edge is the N20NE Bits
SQL Designer for SAP ECC. This toai is built in with the core N20NE Bits
interface. You can easily find a table by its table name and then see the
table description and the links to other tables. lt makes the task of going
through many SAP transaction codes with multiple sessions much easier
and reduces it to a single interface where you can immediately test and
adjust your queries even without a SAP connection (see Figure 4.19).
76
CoNNEC'nNG TO SAP ECC 6.0
ri-OHLtJ!;ii#t\1itl11Hi#Ml111rli
e, B /. e:,; ~• a, ·1 ► ■ l.i) s tt ti C\ !il
--
,,._
e El""""'
- ,....., - -
,,,.....,
ln� - Qut-ry bcJlld,rt (�)
--
·-
�-: l<t�d.:t4bsseq.,e,y>
... °"'
HTIP � «um,
�·
..,,__,
SAP�Cc.el
--
�□- ):::.SI _V6# A(;iOer,dtoZSI
-..............
°""""""""
COffllMscipor«ed -� Addtiotlalo.taaNSOOOC\
--
_ 3GZYBAP �Têlef'Of'CEM04t•í
heetêle
□-• bttlL't8AP -�('()fSale$
□--
º'°""
Tnl.)_V8J4> �'l!.Al>ffan Offllf'ie
!
'
º""""
► S.SDoo.ment: Jtem0ot4
--
--
[J,s-,,w_CN
º""-
Vef'SIIOn: 5-s�: ne
--
□-"'
º"""°
º""....
PmnJAetcfctte�
n ....
na.
--·- -· ,.
•
ln Figure 4.19, you can see the table VBAP selected on the right side. 1
can easily identify the table using a direct table search or by entering a
search key for the table description. This searches the SAP table reposi
tory and returns a list of matching candidates. You can drag the desired
table to the center and then continue with related tables. You can also
generate descriptive documentation that makes the resulting code easy
to read. This is especially important when you design complex queries
and need to update them or have third party team members who need to
make updates to existing queries. Please also note that you can further
add BAPI integrations to obtain data from SAP ECC based on transac
tions.
77
CONNECfING TO SAP ECC 6.0
You are now armed with the toais and techniques to conquer every SAP
reporting challenge using the existing SAP ECC toais. Combined with the
additional toai N20NE Bits, you can leverage these steps and automate
transaction code utilization. With the standard SAP business models,
which are organized by business function based on modules, you have
all of the required information needed for your specific project.
SAP has standard transaction tables that are used to collect business
transactions. Based on your specific configuration, collect the transaction
codes used by department. Using the concepts presented in this book,
you can identify the tables used for the transactions. Given the nature of
the tables involved, you can use direct queries for transparent tables. For
other business data, you have to leverage BAPls, which can be auto
mated using the N20ne Bits solution.
ln this chapter, 1 reviewed the techniques and toais you find within SAP
ECC for query design. 1 utilized SQVI and related transaction codes to
design a business query. ln addition to the already described methods to
analyze SAP transaction code use, 1 also discussed the SQL trace meth
od to identify tables and columns used internally by SAP during the exe
cution of transactions.
78
CoNNEC'nNG TO SAP ECC 6.0
Finally, 1 briefly explored an alternative tool, N20NE Bits for SAP ECC,
which makes the overall query design easier and more efficient to man
age.
ln the next chapter, 1 will expand on these concepts and will then define
the dynamic SAP ECC Data Model for your specific ECC configuration.
ln fact, you already have the tools and the knowledge at this point to
identify how this may work. You can review your own system to see how
to create your dynamic data model.
79
5 lnfoSets i n BI Edge 4.1
"Great minds think alike!" is a famous quote that is meant to be in
spiring. lt means that great minds think alike in the way they think
differently from others. Therefore, what it really means is that "Great
minds think differently! And inspire new thoughts."
So far, you may have realized that we are not following the mainstream
SAP marketing books. Regurgitating marketing brochure content that
would just follow the current marketing wave to advocate a new product
for each and every trendy demand is not the goal of this book. lnstead, 1
want to encourage what the new SAP CEO called the simplification of
SAP product line. 1 agree with this notion and find that the simplest way
is when you use the concepts and technology that is already built in with
SAP ECC. Therefore, 1 am not exploring products alone, but I am touch
ing on the concepts used to build products such as BOBJ BW and SAP
HANA and using those concepts to design my own reporting framework.
ln this book, you are learning some of the core concepts that are used by
BOBJ and SAP HANA to integrate with SAP. ln particular, this book is
discussing the SAP ECC meta database that comes with SAP ECC,
used to extract table logic. ln this chapter, 1 will expand on this concept
and use it to create our own meta database model. lf you combine this
with the transaction code analysis, it is possible to achieve a data model
that accurately represents your requirements based on actual system
usage.
The main question you may ask is "Why would you need BOBJ BW,
then?" You may find your own answer. However, there are some im
portant factors to consider. While you can create your own data ware
house database and run reports and analytics, you can indeed benefit
from BOBJ BW content. For example, if you have a multinational SAP
system rollout and require a full 81 infrastructure, the predefined BW con
tent in BOBJ BW can provide guidance and a starting point for a larger
corporate reporting strategy.
Nonetheless, you can utilize the concepts introduced in this book to im
plement a specialized data warehouse without the overhead of the larger
content that comes with BOBJ BW. ln this sense, you introduce different
81
lNFOSETS IN BI EDGE 4.1
thoughts and this can serve as an inspiration for your business intelli
gence.
ln this chapter, we will utilize the lnfoSet concept. This will add another
layer to our current set of toais. At this point, you are able to identify ta
bles in SAP and also know how to create lnfoSets in SAP ECC. With this
concept, you can essentially group your queries into functional groups.
The queries are assigned privileges and are hence integrated with the
SAP privilege concept.
First, 1 will discuss how to run lnfoSets outside of SAP ECC. For this ex
ample, 1 will utilize Crystal Reports. ln Crystal, you can use the lnfoSet
data source, which will allow you to connect to the lnfoSets in SAP. H o w
ever, the settings must be correct. You will learn how to make sure the
lnfoSets actually show up in the Crystal Reports data source. 1 will use a
set of screenshots to highlight the areas where you need to focus.
You can create many lnfoSets and organize them by functional module
area. You will see an example framework in the form of the company
repository. 1 will then use this example to touch on the limitations of this
concept. Finally, 1 will challenge the limitations and identify solutions to
overcome them.
The lnfoSet concept allows you to group queries within SAP ECC, assign
a name, and then restrict access by allocating the lnfoSet to a user
group. The user group is employed to restrict access.
82
lNFOSET'S IN BI EDGE 4.1
You can see how to structure this type of model. On the left side, you can
see the organizational chart. Here I employ the commonly used organi
zational information objects that are part of every SAP implementation.
lndeed, these information objects are very different from system to sys
tem. Of course, there are crucial differences in the way the system 1s
configured and operates.
► Countries
► Companies
► Subsidiaries
► Address locations
► Company codes
► Controlling areas
► Logistics: Werke and Fertigungshallen (factories and manufac-
turing sites)
► Sales and Distribution: sales offices, sales groups, sales district
► Material master: Material master records and storage locations
Based on the organizational aspects that determine how the system op
erates, the actual master data collects and manages data to enable the
administration of the company processes within this organizational con
figuration. The master data and transactional data is the basis for report
ing. The reporting data uses key figures to measure the business perfo r
mance.
ln order to limit the scope of our reporting, 1 use the business process
consulting based on the transaction code analysis. 1 identify the scope in
which the SAP system is used and identify how the future system utiliza
tion can be improved to better use the investment made in SAP ECC
(see Figure 5.1 ).
83
lNFOSETS IN BI EDGE 4.1
11
Figures 1 Login Oepartments
Address
Companles Subsldlarles
location
1
Company TCode
Employees
Codes Trending
Controlling
Areas
01 Werke Fertigungshallen
1 Customers
01 11 1
Sales
Sales Offices Sales Group Sales District
:1
1
Sales Orders
Employees
01 11 1
1
Werke 1 lnventory
Lagerort 1 GAP Analysis
1 Master
1
--------------
Unused Features such as
----------------------------------► MRP
1 Key Figures
lnfoSets can be used as a data source with SAP 81 Edge Crystal Re
ports. 1 will look at an example and review how you can make sure the
lnfoSets show up in Crystal Reports when you connect the lnfoSet data
source (see Figure 5.2).
84
lNFOSET'S IN BI EDGE 4.1
Oala
Browse the data source for the tables pou want lo add.
(Note: to edil the aias f0< a table . select lhe table in the 'Selected Tableo ' ltee and cicl< onl °'
p,ess lhe F2 key)
Ava i ab
l le Data S01.1cet: Selected Tables:
IE e:J My Connection, El ···6 10.10.30.58
EI EJ Oeate New Connec:t ion � SALESORDERS
í±I C)Acce,s/E,o::e l (DAO)
1±1 e:JADO NET �ML)
1,±1 O Database Fi les
ffi e)Java Beans Connect iv ily
!ti 0JOBCIJNOI)
1±1 CJ ODBC (ROO)
1±1 e:JDLAP
1E � OLE 08 (ADO)
� CJ 01acl e Seive,
D
1±1 Salesforce.com
1±1 SAP 8W MOXQuei
!E
l.!I SAP Operational Data Store
ltJ CJ SAP Tab le . C luster. or Funclion
eJ
1±1 Univ.,.es
1±1 C)XML andWeb Services
IE e:J Repository
@ CJ More Data S01.1ces
85
lNFOSETS IN BI EDGE 4.1
t
lll E)AccewExcel[DAO)
lll E)AOO.NET [XML)
� EJDatabate Ae.s
lll E)Jova Bean, Conneclivi;y
1
lll e)JOBC IJNOI)
lll e)ODBC{ROO)
Usemame:
lll l::)OLAP
lll ElDLE 08 (ADO)
ffi E)Oracle Se,ve,
lll E)S• l-.com
lll SAP BVI MDX Quer
,e1,
8 OSAP lnfo
t, Make NewConneciion
. .
-/-�==;;,�= Click on "Make New Connectlon"
Once you log in, you get a list of lnfoSets that can be used as a data
source. However, if your required lnfoSet does not show up, you may
have to configure the security groups in SAP that your user is assigned
to. 1 will review this task in SAP briefly.
ln the SAP GUI, use transaction codeSQ02 to access the initial lnfoSet
screen. First, select the name of the lnfoSet. ln this example, the name
of the lnfoSet is SALESORDERS. Then, select ROLE/USER GROUP As
SIGNMENT (see Figure 5.4).
86
lNFOSET'S IN BI EDGE 4.1
e JSQ021
e -
InfoSet: Initi11I Screen
[!) � ffi 61, $ i;b Trash Adt:ltonal
l functlJns
'l 1
lf:c [�
Cillll•� Oesc(,Ptien
11 1
�
1 Role/us,,·G,oup Asslg"ment 1
��[l!lll� � ��l [@J
SI... lnfoSet Oescríptien Data SO..ce Aulhor
•
•
-
�
Once this assignment is complete, make sure that the user group has the
relevant user assigned. For this step, use transaction code SQ03, which
will take you to the USER GROUPS transaction (see Figure 5.5).
Once these settings are complete, your lnfoSet should be available in the
Crystal Reports lnfoSet data source if you choose the appropriate user.
87
lNFOSETS IN BI EDGE 4.1
UserGroups:Initi8/Screen
Cõ � liil � Addit ional functions
1
Query area Global Area (Cross-client)
User group -1 -
..........
, ['9 Change
] [D (reate
* Display ] [ª'
[�------� Description
User
1 -
F [
.:? Change
1
InfoSet 1 1 [# Change
= SAI.ESORDERS.VBAK-ERNAM
= VBAK-ERNAM
ca VBAK-EROAT
= SAI.ESORDERS.VBAK•VBELN
= VBAK-vBELN = SAI.ESOROERS.TEXT_VBAK__AUAAT
= TEXT_VBAK AUART = SAI.ESORDERS.T E X TVBAP
= TEXT_VB A PABGRU = SAI.ESORDERS.VBAP·ABGRU
_ _ _MATNR
= T E X TVB.AP_MATNR = SAI.ESOROERS.VBAP-ARKTX
_
= T E X TVBAP
_
= SAI.ESORDERS.VBAP-l,1AHlR
= VBAP-ABGRU = SAI.ESOROERS.VBAP-POSNR
_ PSTYV
_
= VBAP-ARKTX = SAI.ESORDERS.VBAP.VBELN
= VBAP-MATNR = SAI.ESOROERS.VBAP·ZMENG
= VBAP.f'OSNR = SAI.ESOROERS.VBAP-ZMENG UNIT
= VBAP-PSTYV
= VBAP-vBELN
= VBAP�ENG U NIT
o:, VBAP�MENG
f"rdf"oeld...
88
lNFOSET'S IN BI EDGE 4.1
ln Figure 5.6, you can see a set of fields selected for display in the Crys
tal Report. ln summary, you can see that the new lnfoSet data source
can be used to efficiently report against lnfoSets with SAP ECC.
SAP Utilization Now and future plans Reporting Apps Key Figure System
SAP Organizacional
System Layers
Sales Oistribution
Organization Channel
ompany Oistribution
Code Channels Purchasing Sales
Organi.zation Area SAP Sales SAP CRM
Oivi.sions
Warehouses Dashboard Forecastíng
MRP Alerts /Trending
Oemand Plants
Management ----
P!ott_,_
===---
Cosi_.
---Componycodo
...
89
lNFOSETS IN BI EDGE 4.1
the relevant transaction codes. The transaction codes determine the rel
evant tables, which reflect the organizational parameters configured for
your SAP system.
ales Organizalion
Organizational Distribution Channel '.·•
Divísíon
Data (Satea Offlcoa. 1ale1 groupa.
Sh ipplng Pointa, Loadlng Polnta)
li
CustomersNendors
Material Master Conditions Goods
lssue
Tracking
•••
VBAK
Currencies and system
Global Settings independent settings LIPS VBRP
LIKP VBRK
T-Codes
Programs
Tables
T-Code
Analysis
• lnventory Processes
Other Processes
90
lNFOSET'S IN BI EDGE 4.1
With this concept, you can create your own SAP data model. This can be
used to generate reports as well as a custom key figure system.
While the lnfoSet concept is very powerful, it also has some limitations.
Those limitations can impact your overall strategy. However, for most
limitations, 1 will recommend adjustments to the concept as a solution.
5.5.2 SAP-centric
lt is an advantage to use the tools provided by SAP ECC for your report
ing strategy. However, sometimes you may not want to further expand on
the tools built in with SAP ECC. ln that case, you may opt for an externai
solution such as 81 Edge, 81/BW, or SAP HANA. ln addition, you can opt
for other third party tools and connect the 81 elements using the concepts
shown.
The lnfoSets utilize the SAP ECC database directly. Therefore, exten
sively using this concept can lead to performance hits, which will de
crease the response time of the relevant server. 1 will show you in the
next section how to create your own mini-SI database. Keep in mind that
the direct SAP access also has a major advantage-you always have
real-time data in your reports.
91
lNFOSETS IN BI EDGE 4.1
While there is an advantage to using buil t -in reporting toais in SAP ECC
to create lnfoSets, 1 must mention that the using SAP overall is very alien
to non-SAP users. Therefore, this approach can only be leveraged if your
organization has a user group that knows how to use the SAP GUI. On
the other hand, SAP queries can be used to create an interface for non
SAP experts, who are knowledgeable in basic SQL and 81 concepts.
They can then leverage the information without having to worry about
any specific 81 software.
With every concept, there are advantages and disadvantages. The con
cept suggested shines here when it comes to creating a lightweight re
porting system. However, there are some issues we need to overcome:
92
lNFOSET'S IN BI EDGE 4.1
5.8 Summary
93
6 Creating a universe in BI Edge
Up until now, 1 have focused on the 81 tools from a SAP ERP-centric
perspective. This was done to help you understand the related trans
action codes in SAP that identify tables and transactions, as well as
how to create classic lnfoSets. Now you can basically run reports
without any additional tools, which is a nice skill to have. ln my opin
ion, it is the core skill you need to effectively design 81 reporting
strategies and also understand the 81 tools delivered with SAP as
part of the Edge and the 8l/8W suite. For example, once you have
designed your own queries and start to manage the issues from run
ning reports with millions of rows, you may better appreciate the
value you get from the tools that come with SAP 81 Edge/8W. How
ever, even with those advanced tools and platforms, you will still
benefit from the core skill of running queries against SAP tables di
rectly. As mentioned previously, SAP offers a large set of 81 tools,
and those tools are rapidly changing and being updated because the
81 field is a core business driver. Furthermore, the introduction of
SAP HANA as a platform is rapidly improving and will be the core
platform for all SAP products in the near future.
1 will also clarify that the IDT is of principal importance because this is
where data is structured and data sources are connected. l t is also here
where security is integrated. ln order to clarify regarding how to strate
gize with the IDT, 1 will further expand on a business model to create a
custom mini-BI system.
The mini-BI model will put the universe design process and the relevant
tools on a practical platform where you can apply the model design pro
cess and structure the tools needed for this process.
95
CREA'nNG A UNIVERSE IN BI EDGE
The two main releases for 81 Edge in relation to SAP 8W that are in pro
duction use by companies today are versions 3.x and 4.x. The 3.x ver
sions are fully tested and mature within SAP landscapes. Version 4.x is a
major release upgrade with many new upgrades and versions that may
require extra work to establish functionality in a complex production envi
ronment. For example, you may want to review your specific requirement
for data services, which is a separate product and is fully tested with ver
sion 3.x. However, with version 4.0, there were initial limitations. With the
quick release of version 4.1 though the release 4 has reached a maturity
level that can be used in production.
96
CREATING A UNIVERSE IN BI EDGE
1 Connection .cnx
UDT IDT
Universe Designer Tool lnformation Design Tool
(Version 3.1) BOBJ 4.x and greater)
97
CREA'nNG A UNIVERSE IN BI EDGE
The most common tool for designing reports is Crystal Reports. Crystal
Reports has various versions, and it is criticai to clarify the relevant prod
uct versions so that you can identify the best fit for your project.
The classic Crystal Reports tool is Crystal Reports 2013, which is the
legacy upgrade from version CR2008. This version is intended for all
customers that have an existing investment with any Crystal Reports
related technology, such as vast amounts of existing reports or embed
ded reports with Crystal APls. This version is designed to use the classic
universe version from the universe design tool. lt is criticai to note that
the newer universe version is not specifically supported by Crystal Re
ports 2013.
One more comment about SAP HANA is needed in this context. There is
a dedicated version of Crystal Report with SAP HANA access. This is
designed to complement the traditional Crystal Reports 2013 version
(see Figure 6.2). lt is a separate version and requires that you implement
a Linux-based reports server to interact with the backend SAP HANA
system.
Now you should have a basic understanding of the relevant versions you
may want to consider. ln the next section, 1 will review the modeling as
pect and dive into some practical model design strategies.
98
CREATING A UNIVERSE IN BI EDGE
1
r------ ----- ----------- -,
[ Business Layer .blx
1 Legacy Universe 1 I
11
1
1 1 1 Universe 1
1 .unv .unx 1
1 1
1 1
1 UDT 1 1 IDT 1
Universe Designer Tool 1 1 lnformation Design Tool
1 (Version 3.1) 1 1 BOBJ 4.x and greater) 1
1 •1
1 •
1 BOBJ Server CMC (C ntral Management Console)
➔ Embedded security ➔ Co jiJure Common Services
1 ➔ WEf I rrocessing Server
➔
1 Legacy Universes � :1
Universe Repository
1
1
1 .unv Universes .unx
1 1 1
1 Crystal Reports 2013 1 1 Crystal Reports Enterprise 4.x
➔ Enterprise lntegration
1
1 ➔ Update for CR 2008 1
Crystal API support 1 1 ➔ HANA Connection
1 ➔ Legacy applications v�ith 1 (Ana lytical Views, Calculation Views)
1 ➔ Future 1
1 pre-existing CR integration CR Releases 1
1 ➔ Direct Access to SAP Tables
--
1
- -----------
1 1 1 _➔_ !! J!N � U�ve!;e �s� o�ID.!, 1
With the previous information provided about versions, you may start to
get an idea regarding the types of problems that are possible during
complex BI projects. What if the model design is suddenly running on an
obsolete platform? What if the data models and KPls need to span a
strategic timeframe and need to evolve as a collaborative work? ln order
to address these concerns, it is best practice to implement a KPI and
modeling architecture that is not as focused on the tools used but rather
on the KPls and models itself. ln order to achieve this, you can manage
the models in an independent platform agnostic framework that is not
99
CREA'nNG A UNIVERSE IN BI EDGE
"'
Data Preparation
ror business usar Data Model ➔ Web lntegration Perfomiance
lsusi ness Layer
strate,gie
�
Tab leViews
.•
'- KPls
1 Universe
Direct Table Access
.unx 1 . Ol)&Iat!onal
Ad-Hoc Star Schema
➔ Facts (Transaction Data)
\ --------------
➔ Dimensions (Master Data)
IDT ➔ SQL Server, Oracle,...
lnformabon Design Tool ➔ SAP TableAccess
BOBJ 4 x and greater) ➔ SAP BAPI lntegrat,on
1 Direct Access
➔ Universe Repository
1
�
Universes .unx \
BI Client Toais
➔ Crystal Reports WEBI Office Anatytics
•
ln this section, 1 would like to comment on the SAP overall product portfo
lio as it relates to BI. A key problem with SAP products in the past has
been the notorious complexity of the SAP Business Suite and related
technologies. Users often complain that the products are counterintuitive
and require technical training to be usable. 1 mentioned the shadow
theme earlier in this book to showcase the hidden problems that live u n
der the surface but are nevertheless obvious to the informed consultant.
100
CREATING A UNIVERSE IN BI EDGE
However, for the average power user, these concepts often lead to frus
tration. lnstead of getting them to the data, it required that a new BW
landscape be implemented. Furthermore, the architecture and thought
concepts built into these solutions required a vast infrastructure.
However, in arder to get there, you need to join the huge BW transition
towards SAP HANA. This transition simplifies the complex data loading
concepts and takes advantage of the extremely fast performance of SAP
HANA while keeping proven BW concepts in place. While this transition
is working towards a simpler BW concept, it must be said that it some
times appears complex for no reason. For example, the new composite
provider object allows users to connect to SAP HANA, which in return is
connected to a BW system, which generates the required schema in
SAP HANA, which is dri ven by BW based on the proven normalized SAP
data models. lt is a simple concept, but it gets complicated when you do
so much to keep the traditional BW alive.
lf you followed the concept in this book about transaction code analysis
and the automatic generation of table schemas, you may understand
how this may be handled in your own project.
101
CREA'nNG A UNIVERSE IN BI EDGE
Let's now take a closer look at the current SAP 81 architecture as it re
lates to 8W and SAP HANA. You can use this information to design your
own models. The core question you may have is: How do I get the data
from SAP, 8W, or SAP HANA within the current concepts provided by
SAP? See Figure 6.4 for an example.
ln Chapter 7, 1 will review the details based on the current release levei
of SAP 81 8W and SAP HANA.
102
CREATING A UNIVERSE IN BI EDGE
When you design reports and data models in the context of SAP, you
may have to consider SAP BW and SAP HANA. However, these technol
ogies are complex, and SAP HANA is being updated constantly. There
fore, 1 will provide a current status update about how these products work
together in a fully implemented SAP landscape where you find SAP ERP
with BW and SAP HANA.
There are many new objects in BW and SAP HANA. However, 1 would
like to focus on the core objects that are relevant to understanding the
essentials.
With the new BW release BW 7.4 SP8, you get the composite provider.
This object will supersede the previously used lnfoSet and MultiProvider
in BW. The composite provider allows for an inner join or left outer join
against lnfoSets. ln BW, the DataStore Object generates SAP HANA
views. Essentially, the data in BW is now transformed into SAP HANA to
take advantage of the built-in performance and analytics libraries that
come with SAP HANA. This means that you can run queries against mil
lions of rows and get your data almost instantly. lf you have ever created
a query against a table with millions of rows, you know that performance
is a key success factor in BI.
ln summary, if you want to add your own queries, you may want to use
the composite provider object from now on.
103
CREA'nNG A UNIVERSE IN BI EDGE
�---------------
.+Analytic KPI Modelling
-
BW Analytic Manager Composite Provider
➔ Orchestrates data retrieval sequence ➔ Main Object for unions and joins �
➔ Eclipse based
Advanced D�aStore Object ➔ Supersedes MuhiProvi der and lnfoSet (i n BW concept)
Open ODS View ➔ Join of lnfoSets
lnfoCube ➔ Should be used from now on ➔ uses BW Schema within HANADatabase
Composle Provider
SPO ➔ High-Performance
SAP HANA V iew
The universe should be designed with the new information design tool
(IDT). You can use the cheat sheet in the IDT to guide you through the
steps to create a universe (see Figure 6.6).
The goal of the universe is ultimately to shield the query and data collec
tion complexity from the user who will use the data within an analytics
application. The universe also includes embedded corporate security
concepts.
104
CREATING A UNIVERSE IN BI EDGE
-
c0 Repository Rcsouc:es t:3 =o
;), . ,, 11 , ) e,
Using the steps outlined in the cheat sheet, you can start to create a pro
ject and then define the data connection. This will be a connection to a
SQL database, BW, or SAP HANA, for example. Following SAP best
practices, a single connection concept should be used against a prede
fined data model. Then, you continue to define the data foundation. This
means that you select the tables and columns within your data model to
define the data foundation layer. Finally, the business layer takes a sub
set of the data foundation layer and makes it available for the specific
user to prepare a report. Now all of the required layers are implemented,
and you can save the information as a universe. The universe can be
stored locally or within a BW server where other users can access it if
they have the appropriate privileges.
105
CREA'nNG A UNIVERSE IN BI EDGE
Following the cheat sheet, 1 will start to create our first universe with a
new project called Espresso Tutoriais. AII of the relevant layers will be
housed in this project. AII of the configuration in this project can then be
published as a universe.
Next, create a connection. ln this example, 1 will call it SAP ERP CONNEC
TION. See Figure 6.7.
File> New > RelatK""'-' r""',.,_.+1,,., TI-.• ,.1 ,.......,_,..i ............,........., ........,►......, ..._ ;,.S,.,,....,p-......, �•,r,•n• h-. ...,.......,.
create a relatlonal e ff
New Reldhonal Connectlon l!I ■
Resource Nome
!rter a Nme for t;he resou,ce.
► 3 Create a dota f<
► ,. Create a busne:
' s.,._ thou,,1,,.
► For more irlormat !J Descl"()tlOn Connect to SAP System D i,ectly
•
����������
�
You will then see a list of the various data connections supported by SAP
IDT (see Figure 6.8).
106
CREATING A UNIVERSE IN BI EDGE
_
_
<Back _
�
_ _ _ _
�ex
r t_>_ J I
_ _
finish ! Cancel J
Once I have the essential data connection, 1 will define the data founda
tion. The data foundation is based on a data connection. This means 1
can select the objects I want to use at the data foundation level based on
the data connection. ln this example, 1 will use the predefined models in
the connection for extracting ecommerce products from SAP All-ln-One
(see Figure 6.9).
107
CREA'nNG A UNIVERSE IN BI EDGE
=- :._v--= ::=:tEl I
i1' Jnformation D�s,gn Tool
F e Edlt - lielp
O
':: .,_ ____________
___
___e1_,_
_ _,
e,
-t l
:J, Genet-al Inlonnat1on)-_q;__Show_v_al_ue__
s _ _ _ _ _ _ _ __
_ _ _
_,
& 1) Espresso Tutoriais _ ......,
-··!!. SA? ERP Comection.cnx
Resource Narne
Ent«a name for the resou-ce.
Per SAP's recommendation, select the single source option (see Figure
6.1 O). SAP recommends that I choose a single source connection based
on a predefined model.
i) l'lew Data foundation 11!!1� EJ
Select Data Foundation Type
Sele c ta data foundation type based on the features supported by each type.
r Multisource-Enabled
- Single or multiple connections
- Additional relat ional con nections: SAS, SAP NetWeaverBW
- Standard SQL-92 and SAP BusinessObjects SQL functions
- U niverseto be publ ished on secured server
108
CREATING A UNIVERSE IN BI EDGE
Choose the relevant tables (views from the predefined model) and save it
as the data foundation (see Figure 6.11 ). 1 have now successfully estab
lished the data hierarchy and can provide selective access for business
users to consume data foundations based on their needs. Therefore,
instead of offering the full data connection, 1 am offering a predefined
data foundation with preselected tables, views, etc. for the business user.
This makes it easier to work with complex data because the business
user can focus on the current task versus having to browse through the
complete data available in the data connection. This also provides the
essential foundation for security concepts.
;.umrmxm,w• mmm
Ne C:dt � Wrdow .-
1
X. ",f1.i1 ,a}
--<I
r"l - , .J � 01!1-=-
e v e> 0 .à.WDU'Comedl::n,ou;
"" ......
""
:-=-i
.�Ka!it�
"Í'l-«4'""-ieoeO f3 = ::-:-4'< .____________________
,_
o
.i. , {J C�ion
-1;>
·A
-
s.1. ...
li!� tAOIR
"i::: z..-....
-·
® :'i l
Jll.Ot«
. .. . .JR
.......
@ :. l.,Jl!<M...JJJ
�?-��"'""
.....
f!l
.....
81 � l.Jllr»<..00..6'U
(4;
� l.,Jll<M..JD,._dul..,._.JU!bl'
e:�o,. • I 'V'()l',I OJDot.........,uo.. 1 '"" ....,
""""
@ :;>z.JClO'E_O,t�
� � l._Hleli<._0,.�_,.. '""'
,.,,
""'"
.,,.,
l!l�
ai
;_! l,J0N...OIS
Z.jll(H,,.0.-.)014,.«JM ...,,.
"'°"' ...
vw
r- ' � l_NiZO<_O...O-llillt
•;ri l.,Jll<M.
..
_ eHet
�.,lâlJt..-p•..-,,.
""'°'
"'°"' .....
--"'i
IHCOI
...
--
[f ':" t.J®'C_�.>#"""-�
(t, l!I ..c.at.Allt..
l..J,IZU«:
�� ��j,('IM,-., • •
� °;tl:,.JCl'tNLOOAl:tteim.J)Mln(L
l'!i .;"'i ZJOOIC...�ftwl
• � l.,NZ(IIC,.GII.Mll .....,..._
• ._, �Glc.Alli....J,MMNN•
• !" lJQIC)l«,.c..tA&IWIMJ...
. ei l..)llOH(..Otótf.C.,,,. o ••ct-,,M•
. t: ,.,.,....___ .s f411JO,,,,,.. �---------
• � l.J«-C..CWIIJ.N l!MM
• � 1.)CO#I._Otéa� ..c,e.,..,
o
(<t.l� �-Orda,._-...ro
...._ ·_•_ __
- _ _ ___.f
6t,� l.Ji2'CIII<..��
Finally, 1 created the business layer on top of the data foundation (see
Figure 6.12). The business layer is the leve! of access that the business
user will have. For example, a business user can utilize SAP Lumira or
Crystal Reports. Based on the connection credentials, the user would
have access to the business layer to consume the data within the securi
ty context of his or her profile. The business layer can be based on a
relational data foundation, which is the case in this example, or it can be
based on an OLAP connection.
109
CREA'nNG A UNIVERSE IN BI EDGE
Once the business layer is saved, 1 can assign specific properties to the
queries that will be used to present the business layer data (see Figure
6.13).
I
(i Resource Name eCommerce Products
__
<_B _a_ck _
_
_ N_ex_t_>_
�
j l Finish
! Cancel j
110
CREATING A UNIVERSE IN BI EDGE
1 would like to point out a criticai setting. lt is called the ALLOW QUERY
STRIPPING checkbox (see Figure 6.14 ). lf you have complex queries, it
may be that you do not need to run all the subqueries to present the re
sult. For example, if you are using certain grouping levels, you do not
need to run all the queries to get the details.
r-=
1
=,..
i- Busincss Layer
.... =--===-
<> • � • J!I
e· ; cCommetce Prock.Kts
l@
� Busi ncss Lay� eCommer ce Produrts
�-,;;::-11.-'-_,,'--
.:.1
1'º ..:l
...J
t -L� - •�
-
Jis Doto FoundM:k>n: /C.JptffJO 1!A.0t1Gls/MARA MARM.dftt
rf§'*'IMi4i lilin/ll@ll§j,
When you select ALLOW QUERY STRIPPING, the system will automatically
use only those query elements required to present the result needed for
the report design.
Please note that, when you create a universe and utilize the universe in a
report, certain services are employed to execute the required processes
to present the report. You can configure these processes in the CMC. 1
will not go into detail on this topic but wanted to mention that these s e r
vices can b e configured with the CMC.
Once you have your universe elements configured, you can create a
query and run it to see the result. Create the query by dragging the re
quired columns to the right side as shown in Figure 6.15.
111
CREA'nNG A UNIVERSE IN BI EDGE
E!
1)�Tutonds
� eeor-e.-ce PtocMts.,bb:
1-�MAAAMAAM.«x
r 1� 9 - -....
fa. SllPOI PConnortlon.au "i' univcue: cCommc,cc Produtt., (J.l Rc,utt oti)ttb for C)ucry ••
�- e, .'Jí X ti
e-
,..,l�=������- - - - -
__j
r. lt«'M�h:t
, .11111.,,.,-
- �
,
Kr,...nt. t:i.nv ' �,
- Rc:fu:-,hln9-(omln,o�)
1cíl-•-� !:![ o o
..) • /ál'éX �e ,
()O( 1 ao..
1
-
-
- i
'----= -----,l
ln the next section, 1 will review some design principies you can follow to
make your universe design project a success.
112
CREATING A UNIVERSE IN BI EDGE
lf you have SAP BW in your IT landscape, you can leverage existing ob
jects based on master and transactional data. However, especially in this
context, it is key that you do not get confused by the concepts offered by
SAP BW but rather establish your own data model and goals for KPls.
When modeling the data, it is a good idea to integrate metadata into the
model design. Therefore, instead of just modeling the plain data, you can
add information and version information about the data you will retrieve.
This can then be used to build a hierarchy of models that exchange meta
information.
With this concept in mind, you can then follow SAP best practices in a r
der to best use the available toais.
► Single source.
► Query stripping.
► Use the composite provider for new connections.
► Understand the architecture from model to connection and data
base (SAP ERP, BW, SAP HANA, etc.).
ln the next section, 1 will provide further information about the upcoming
SAP Data Model Project available in GitHub.
When you create queries against the SAP ERP system, you can use a
combination of transaction code analysis and related toais to identify
tables and ultimately create your own query collection. During many
113
CREA'nNG A UNIVERSE IN BI EDGE
years of work with SAP systems, 1 have defined a core collection of table
descriptions and queries that you can use as a starting point. Those que
ries are published and updated in a GitHub repository. The link to this
repository is available for ali readers of this book upon request during the
first publication phase.
Figure 6.16 shows the initial concept of the SAP GitHub query repository.
lt started as a collection of tables in Excel and evolved into a set of es
sential queries.
Otvt ope, INS[RT PAGELAVOUT FORMUlAS OATA RlVIEW WW V.tO!f,c.e AOO•INS POWCPJ'IVOT SAPl11111\n•8y0ti,,n TlAM
l
�J [ _./[
�, -,-,.- r: ir
G.,,.,. [ Nonnll 8•d
•
f},, iJ,W11plt'.(t
Ptstl
!l!e.., . a r u• + ConcM, oiwl fo,m,t fl GOlOd
• "fo,m,t P�ltr
+ ��9,&C,n1t1 • J • � , •J :g lMt11
Fo,mt111n9• 1.-1 ..
r. ''"'li r. r. r. Styln
L14 • ! )(. � ,
..
H K L M N o
2 Tra,u.port.11fon S.O Copy Control Table1 so n,m C;i1,cori.s Copy Controt Tab lu SOOocum.nt Schtdv ,lln• c..1,,ori.s Copy Contr ot TablH
l
3 VTTK TVAK TVAPT TVCPA
O VTTP TVCPA TVCPA
S TVRO TVCPf
6 TVTK TVASP TVCPl
••
7 VTRLI< TVCPf
lV(Pf
TVEPZ
TVLP
rvn
B llln gO O<um ents Copy Contro Tables
l
TVCPf
lVfSP
l
10
11
"
12 Oeli wr yooc.u:menh Copy Control Table1
Tl84t
1A
lS
1 • TVCPF
TVC:Pl
16 TVlSP
17
18
soUnk1 to fl
,.
19
KNVP
Zl KNVV
22 KNVO
23 KNAl
24 KN81
zs KN8S
Z6
21
ze WUnkstoMM
,.
Z9 t,'1ARC
MVKE
r, rSD MM fl MR PP PS W, lrthek1s e M ,l n.1gttne111 QM @
114
CREATING A UNIVERSE IN BI EDGE
Finally, you learned about the new SAP GitHub project with information
about queries and tables in SAP. This will allow you to bootstrap your
query projects efficiently.
115
7 Publishing reports and dashboards
We have reached the final chapter of this book. During the course of
the book, a technological and conceptual platform for reporting in an
SAP environment has been built. 1 tried to keep the business user in
mind, the one who just needs to get a report done. lt is a traditional
problem in SAP that you need a team of experts to perform even
simple tasks. Today the challenge persists because it is a matter of
fact that you often find yourself needing a quick report that has not
yet been created in the SAP BW infrastructure. ln the beginning, 1
focused on the existing tools built in to SAP R/3. 1 also reviewed the
technical background to access tables directly. With these tools, you
can complete many reporting tasks.
The takeaway from this chapter will be a clear understanding of the rea
sons why the SAP architecture appears to be rather complex. As it turns
out, there is a reason for the tyranny of complexity imposed on users by
SAP. ln simple terms, when you report on millions of data records across
different geographic regions, things are different compared to ad hoc
queries and require a hierarchical solution architecture like SAP 8W and
SAP HANA. This architecture allows for integrated delta management of
data, integrated security with selective access, and embedded 8W ser
vices. ln essence, those topics are all key factors for modern dash
boards.
117
PUBL!SHING REPORTS ANO DASHBOARDS
The top candidate for dashboards used to be Xcelsius. This tool allowed
users to work with an Excel-type sheet to organize data and then publish
it in a Flash format. This had pros and cons. On the pro side, it allowed
you to create flashy graphs, but with limited backend data integration.
Xcelsius also allowed you to utilize web services as a data source to
drive the graphs. This was a nice architecture because your data design
was driven in the right direction. This is true because, as you will see,
publishing data in a web service format is still the method that I recom
mend for your dashboard design. However, Xcelsius had many limita
tions due to Flash. ln fact, while Flash is available on many platforms, it
is not very well-accepted as a business technology.
First, Lumira is highly integrated with SAP HANA. This allows you to not
only create dashboards that perform extremely fast but also enables you
to drill down to data with a high level of performance.
118
PUBLISHING REPORTS ANO DASHBOARDS
Second, Lumira has a built-in SDK that allows you to add your own
graphical representations using the D3 graphics library. For this, you can
use the Vizpackerr tool, which allows you to package your integration for
Lumira.
Furthermore, you can use JavaScript and CSS style sheets to format
your Lumira applications to your preferred style.
Finally, you may want to review a product called Design Studio. This may
very well be the central application for business users to design reports
with dashboard character. For example, you can copy a Lumira graphic
into Design Studio using smart copy and paste. The pasted object will
maintain its ability to be edited.
With this quick product overview for dashboards, 1 would like to end this
section and will only summarize as follows: use Lumira alongside Design
Studio and design your data based on web services. lf you have a SAP
backend, then leverage the SAP HANA integration options. This is a brief
recommendation, which I think makes sense at this point.
The user needs to get the results quickly and easily within the current
work environment. ln addition, the user will not like constraints. For ex-
119
PUBL!SHING REPORTS ANO DASHBOARDS
ample, if the user commonly works in Excel, then the dashboard may
require Excel integration.
ln order to achieve this, you may want to schedule user testing with
feedback during the early phases of the dashboard design.
1 would say that the lnfoObject is the core design parameter that gives
the SAP BW reporting architecture its value, but also its burden. For ex
ample, when you need to add a simple column to a report, you may
wonder why you cannot do that by design in SAP BW. You have to add
an lnfoObject that will define the parameters for this column. Then, these
parameters will drive the way the data in this column is treated within a
cube. While this is good, it also creates a lot of overhead. lf you want to
add 100 columns, then you have to go through a lot of detailed work to
120
PUBLISHING REPORTS ANO DASHBOARDS
make it happen for the lnfoObject definitions that are required to accom
plish this. Let's look a bit further at what makes up an lnfoObject.
Since the lnfoObject is a key term, 1 will define it and provide an explana
tion.
What is an lnfoObject?
What is a type?
Field-level semantics are types. For example, key figures and character
istics. They are used to drill down in reports. Types are also multi
dimensional semantics and include facts and master data. They are used
for aggregation.
121
PUBL!SHING REPORTS ANO DASHBOARDS
The new objects introduced with BW as of version 7.4 SP08 are simpler
and more powerful because they leverage SAP HANA. ln this context, it
is also important to mention the Open ODS view and the ADSO (Ad
vanced Data Store Object) along with the composite provider. They are
the core objects I recommend for your reporting. You may ask, why is
this better and more agile than before? The answer is in the SAP HANA
architecture and its speed. SAP HANA as a database platform runs the
data in memory and, therefore, does not require that vast amounts of
data be pre-extracted in tables for later analysis. SAP HANA allows you
to present the SAP extractor data in memory and enables the user to
combine this data with externai tables and columns using the Open ODS
view or composite provider. Furthermore, SAP HANA has built-in libraries
for analytics and forecasting. Hence, data processing is pushed down to
the SAP HANA technical level and enables high-speed performance (see
Figure 7.1)
122
PUBLISHING REPORTS ANO DASHBOARDS
BEx WEBI Crystal Reports Xcelsius Office Analytics Lumira Lumira Cloud
BEx Query encapsulates OLAP
loglc built lnto lnfoObjects
Attributes
H i erarchies
lnfoObject
Currencies
SUM or MAX lnfoProvider
Non-Persistent
Virtual Provider (Non-Persistent) ➔ Open ODS View
➔ ODS (Access to externai sources)
➔ lnfoSet, Transient Provider, Virtual Prov ider, Multi-Provider ====== ➔ Composite provider
Persistent Persistent
➔ DataStore Object, Hybrid Provider, lnfoCube ➔ ADSO (Persistent and joins)
➔ Semantically Partitioned Object Traditional BW Model - ➔ Replaces DetaCubes and alows you to use HANA
Complex Star Schemas Predic1lve and OLAP IJbraries (Corrency recognmon)
➔ ADSO is l 1ke a matenalized •-
Aggregation Tables
Dimension Tables
' 'v' Push Down
� ---�
-
lnfoCube
HANA
➔ Predictive Libraries
➔ Logical Warehouse
➔ Converted Star Schema into nat data model
1
Figure 7. 1: SAP BW transition to agi/e
1 have now looked at the lnfoObject as the smallest unit of reporting and
how they connect with SAP HANA. ln the next section, 1 will review how
to best publish data so that it can be used in dashboards.
You now understand how the smallest unit of reporting traveis via SAP
HANA and can be used alongside externai tables to enhance your report-
123
PUBL!SHING REPORTS ANO DASHBOARDS
ing data. The universe can now be published using the Query as a Web
Service toai that comes with SAP BI.
When you open the Query as a Web Service toai, you can create a new
query and select a universe as a source to generate a web service from
the universe (see Figure 7 .2).
Defino tho Wob Sorvacos proporties: Web Service n4me, sorvioo nome in iho WSOL, and tho
descnptaon.
leComcc.._.........,
\Veb s-o-
PI......,• kl d-� lo! eComme,00 Sale •
..:J
When you follow and click through the wizard (see Figure 7 .3), you see
that the universe created does not appear on this list. But why? Please
note that this exercise is designed to highlight the core architecture of the
BI suite, which is BI services and the CMS repository.
124
PUBLISHING REPORTS ANO DASHBOARDS
Universe description
eFashion ,etai Data Wa,ehouse c,eated 14 Oct 1998, updated 3Ap,i l2002. 89,000. 10w facl table Ve,s
. ion 6.0
1 can open the information design tool (see Figure 7.4) and review the
universe that I created. lt is listed, and I can publish it to the repository.
Once the universe is in the repository, 1 can then hopefully use it in the
Query as a Web Service tool if there are not errors. 1 will show you a
common error and how to fix it.
125
PUBL!SHING REPORTS ANO DASHBOARDS
�-
é' ---'=:, retri eval-2014-12-29-10-31-37
i----- 7"" eCommerce Products, b lx
[--e,\ MARA MARM.dfx
[--{R SAP ERP 2015.cns
[- fl. SAP ERP 2015.cnx
[----� SAP ERP Connection.cns
L-- f}. SAP ERP Connection. cnx
Select the business layer and then right click to publish it to the reposito
ry (see Figure 7.5).
126
PUBLISHING REPORTS ANO DASHBOARDS
t_JRefresh FS
Show R pository Dependencies...
Save A ...
�Print
However, when I do this, there is an errar message (see Figure 7.6). This
errar indicates that I cannot just publish the business layer. 1 need to first
publish the data connection and create a shortcut from it.
i� ' n,n;,,. �I 1B � 'v = El ,ff� MARA MARM.dfx ·
1(,&i SAP ERP Connectio ... ·
1 ;o.,"' eCommerce Product... 1(
o
B··· Oll Espresso Tutoriais
l±l• e, � General Information I Q; Show Values
$· ·!; retrieval-2014-12-29-10-28-31
Name 1
1r,.,.-. .-.-..-. r-----�'--
l!l·· r.,. retrieval-2014-12-29-10-31-37 �
IX
1\·····# eCommerce Products.blx 1
'
i··m°"m MARA MARM.dfx
j.... (&I SAP ERP Connection.cns t) Error while publishing 'eCommerce Products'.
L..°'= SAP ERP Connection.cnx The business layer references one or several missing secured connections.
Edit and update the business layer to reference only existing secured connections before publ ishing.
íl Close
1
Figure 7. 6: IDT publish universe errar
Figure 7.7 shows that I publish on the repository server. This is not a
local copy, but rather the universe logic is saved within the 81 CMS serv
er and can now be used within the 81 services. This is precisely the rea
son why I got the errar before. The connection needs to be reformatted
when published to work on the server versus just locally on the computer
where I designed the connection and universe.
127
PUBL!SHING REPORTS ANO DASHBOARDS
�Copy Ctrl+C
Paste Ctrl+V
� Delete
Move...
Rename... F2
=1!,Edit Connection
Repository R, � Test Connection
.. J c::€1 tJRefresh FS
·dJ @WIN-E
S·. ·íil. Conr � Save Print
As ...
: 1 · ·lo <
j !·····ll. ( �Check Integrity ...
i j ..... Q_ € +4j Show Local Dependencies
: !··· ll. € � Publish Connection to a Repository
j
j....Q_ r
L..q�
Open in Windows Explorer
� Properties Alt+Enter
e,e-:,, "'-'-'':.....- - -----------------
- -
-
iíilllL_____�E=....:�:::._ �
v
c ���3�MARA�;MAAM���:::'.:
- · ��
2� w�ERJ>���-��---_������-��� ���d=·- �
iillliMilll
0 -;:-
@+ 81 ,. 1 Generail Jnformatlon Showvaues
'"s.....,.()"'" �-.-, so-,--
ut ----------1
....,, 1
00 l,cj, retriev,>1•2014·12·29·10--28-31 i'S Publnh [onno,cbon -� El
(.3, retrieval•2014·12·29·l0·31•37 Publish Connedi on to o Repository
� eComm!1-ce Ptoducts,bbc
,.\ MARA MAAM,cfx
0pen •S-HPOl'I cntMr•l>O'ltory "'-•ywWHf'lttop,,t:ld\th9w,«to•
1:2SARERRConnec:tmcns
li, W ERJ> Comoctlon.cnx 1
.:.1
Password (••••••••••
128
PUBLISHING REPORTS ANO DASHBOARDS
Finally, Figure 7.8 reveals the last step to publish the connection.
i) Publish Connection l!!I� Ei
Publish Connection to a Repository
Define the repository folder where you want to publ ish the connection.
�[ri Ir' � 8t
13..fiil Connections
L..&I CommonCon
li!)j l
/Connections
Once the connection is published (see Figure 7.9), 1 can view it in the
repository (see Figure 7.10). However, keep in mind that this was only
the connection. 1 now also need to publish the business layer.
' Publ1sh Connect1on
Riíafi"!ô@ St
B··� Connections 6!I) J/Connections
'····iil CommonCon �- - - - - -
-�- - - - - -
-
Name • Descri tion
� CommonConnections
• (Ãconversion Audit Conn...
; � efashion
fl ---�..
,.1-,; ,.,... ",,.,1-,; 8
lnfo Ef
Ves No
129
PUBL!SHING REPORTS ANO DASHBOARDS
�1 = El
Figure 7.11 Figure 7.11: IDT repository view shows the repository view
with the connections. You have to consider where the connection infor
mation is stored. lf it is stored in the repository, then reports can use it in
the network. lt is criticai that you "Publish" the connection to the relevant
repository.
When you publish the business layer, you have to select the new con
nection shortcut that the business layer now should be using when it is
published (see Figure 7.12).
$···� retrieval-2014·12·29·10·31·37
i·--··:,�l &i•llfü@MMJ.r.:.sa;N
\· · � MARA M, Open
1 ······ t&, Unresolved reterence: /Esr
-
)....mi SAP ERP -�
-Copy
-------- ---•
; � � Ctrl+C
'··· �
· SAP ERP -
Paste Ctrl+V
�Delete
rvlc:,v-e•••
Rename... F2
Refresh FS
130
PUBLISHING REPORTS ANO DASHBOARDS
Figure 7.12 shows how to adjust the connection for the business layer.
You can follow the steps highlighted in Figure 7.13.
i1 Local Proje:cts f;3 � - ----�--
f8 � "" - c::t EI -& SAP ERP Ccn,e<tk>.•. lA *SAP ERP Comectio1
e, 13 •
(@MMte,
E$presso Tutotials
1B � retrieVa 1· 2011·12·29 1· 0 2· 8·3 1 • .l(\ " e
' ◊ ltl<ett • 1Det«t • I o:S I FamUes
!
li)._ rietrieval-2.01 4 •12·2:9·10-31•37
.:(< eCarmorce F>oducts,blx -□ X
a
t MARA MARM. x
1 Q!l SAP ERP COnnert on.cns ·on
l
!. SAP ER.P Connectlon.mx Select a ,-«n>edll(l l« the dat a foundatk>n,
l!I retrisv.,l,,2014·12•29-10-31-37
� SAP ERP COft-1,u,, SO<u-ed [G>WIN-EEVl876EON6:6100)
l,à, SAPERP c...,...d.,,,a,x local
Figure 7. 13: /DT adjust the connection for the business /ayer
Finally, the business layer can be published to the repository (see Figure
7 .14 ).
$--lã retri eval-2014·12-29·10·31-37
� . �� ti·IM@M@ o:e�
D ------� Unresolved reterence: fEspre�
�Refresh FS
Show Repository Dependencies.. ,
Save As , . ,
éjPrint
r;i Check lntegrity ...
+\ Show Local Dependencies
-------------------=-•� 1 • 1•
Publish ► �To a Repository...
11
Open in Windows Explorer
Properties Alt+Enter
131
PUBL!SHING REPORTS ANO DASHBOARDS
Select rufes and click the Check lntegrity button to start the integrity check.
çl·· ·-
0. liil Connections ar • Description • 1ResourceI Obiect1
i ( ·0 CheckCon
.
j L...0 CheckDep
$ O llil Table s
�- Olii Joins - , ·•
•
: •
1'
< Back
! Next >
!_ _
F_ln _lsh_� __ c_an _ce _l�
At this point, the universe with the connection and business layer are
published to the repository. You can verify this via the IDT by refreshing
the repository.
The repository resources 1n the IDT interface show the published uni-
verse (see Figure 7.16).
=
132
PUBLISHING REPORTS ANO DASHBOARDS
The universe is available in the repository. You can confirm this by log
ging into the Central Management Console where you can review the
universes that are published (see Figure 7.17). You can see the .unx
universe. lf you remember, the newer universe version is indicated by the
.unx suffix. This is the case when you use the new information design
tool to design and publish your universe.
l
unlverses 3
Organize •
Type
Unlverse (lnf0rmatlon design 1001)
UJ40i4i•lií@H-II
Monito1 ing TrendData Univer:
UI Re!X)tt Conversia"I Tool lklivt
L:il webi unlverses
When I once again enter the Query as a Web Service tool to check if the
universe is now available, 1 can see that the universe is still not visible
(see Figure 7.18). What could be the reason for this?
2. Setect a univcrse
Folde, o
ef-•etaillàaW-aeated li Dei13!i
wetii irive,s:es: astion
ef ef-•etaillàaW-d<ledllOd,fSR
Monitori-9TrendOata U... MriOIW'lg lierd)aia Universe
R--tConversi:ln Tool... R.........t Conveision ToolAutitUrivetse
UnYerse dc«:riplion
eFad'iion retail Data\1/aiehcuseaeoted14 Oct 1998. \.Cldated 3Ap,i 2002. 89.CXQ. IOl'flad latlle.Version&D
..:J
<B«I< 11 N
...>
133
PUBL!SHING REPORT'S ANO DASHBOARDS
This is a good example of the type of issue you can run into when using
a solution like SAP BW/BI. There are many tools, and not all support the
sarne levei of products. The Query as a Web Service tool does not sup
port the new .unx universes. lt only supports the older revision of uni
verses. Does this mean I cannot create a web service from our query?
No. 1 just have to use the right tool, which I will explain in the next sec
tion.
ln order to publish data as a web service, 1 can use the Web lntelligence
Rich Client (WEBI). When you open this application, select UNIVERSE
(see Figure 7.19). Now you can see the newly published universe be
cause this application supports the newer .unx universe.
--
- ...
p...,,
,...
--
,.,• Wl!bSer.,cn Pt1t11e
�------
S.-ct•VMservietN•--to.,rc,e
You can choose a sample query and add the columns you require. Then,
click on RuN QuERY as shown in Figure 7.21.
134
PUBLISHING REPORTS ANO DASHBOARDS
Umv .r
Select a unive..se for lhe query.
• Jlf
l
Help on selected urwverse:
__
IUJ. Uuery P«iel �l:l
e ....-,.. -
- ..... ·-
t9 ::r ,. °"'.
.,
'.,...,_,, 1 ,,
- --;:
•
Ount.-..HMlirMI ,
-
..o
T X"'
.
1
• �Ptocadt
.i-,-.&,
. .c..m.,,......
,
..�
- [[]·--..,,.,
•
...,.,...Pr......., � lteire,ti
.........,,,
Q. • Typen�·
, -�- -
. '.·1
LMsl re1tt$h dai� (TNis docuTlettr.tne-ve, bcorlreítwiod)
135
PUBL!SHING REPORTS ANO DASHBOARDS
ln the next step, choose WEB SERVICE PUBLISHER in the left section of the
interface and connect to the repository server (see Figure 7.22).
� ITTI•lx 1 �l�•'IIO.·
e!. Web Services onWN-EEVJ876EON6:6400
Once you see the query result set in the results window, you can select
the table that presents the result set. Be sure to select the entire table
and then right click to see the menu that has the PUBLISH AS WEB SER
VICE button (see Figure 7.23). lf it does not show up, then you did not
select the full table.
Report 1
0000035564 000010445 •
0000035577 00001044 jj. P\A>IShOSWebS..w,e
�
.UlllllJlllé�l..,.O.WlAl.0,i•J
Figure 7.23: Pub/ish as Web Service
136
PUBLISHING REPORTS ANO DASHBOARDS
lf you get an error when you publish, then you have to make sure the
right versions are installed for all products involved in this scenario. This
includes the repository CMS server, the services, and the WEBI client.
How can you verify the relevant versions? The next section will dive into
this topic.
_CMS_DSN
11614 .:.J �rowse...
1� 1
(" ODBC Data Source file
ª"owse ...
Adyanced << 11
Iools • Connect ) Cancel Help
137
PUBL!SHING REPORTS ANO DASHBOARDS
You can also use Excel to connect to the CMS and run a simple query to
get the version (see Fi gure 7.25).
Data Connection Wizard lfJ EI
ti
Connect to ODBC Data Source
Choosethe ODBC data source you want to connect to.
You can use the Sybase Central Mana gement tool to visually manage
the CMS database. However, you can also run a query usin g the Trans
act SQL tool (see Fi gure 7.26).
Ç,re-oto 04t-oboso,,.
$t!ol>b-,kl2 • !.a>Qrode Database...
� Q/>nywhere 12 • !!O<.... 0,,tabose..•
� fleloySetver 12 • Rostoro OAt-ob-aso,.,
Create Bactµp Images...
un[oad Dotabase..•
" E!,tract Dattibese ..•
ER diagram for tlis
�alidate Oatabase ...
Iranslate log File.,.
tenancc Ta:sk.s Cb,ange log File Settings...
rrase Oat:abase...
locenance plan
�igate Database...
:l<Up
�ompare �tob&ses ..•
..IP images
Gen,er.:,te DaWbase OocumentaOOn...
dat�se corte<ts
et-eferenc:es
138
PUBLISHING REPORTS ANO DASHBOARDS
Figure 7.27 shows an ERD diagram that will help you understand the
architecture of the CMS database.
(J 8 1 4CMS
_ · dba
I I I I l
Contents Overview Connections Fragmentation Page Usage tocks ER Oia11am Oeadocks Au<iting I 1
C M SA�ases7
_ (dba) CMS IdNumbers7 ( dba)
Object!D lnteger integer • PARENTID
Al laslsTruncat ed integer ldName archar( 30) • CHILDID
Al ias nvarcha,(255) IN EEVJB76EON6_6i00 lnteger ISMEMBER
IN EEVJB76EON6 _6i!O integer nteger
• RElATIONSHIPID nteger
integer
integer
lnnn hin.-.rv ..:J
CMS Jnfo0bjects7(dba)
' Object!D integer •
P arent!D integer
Type!D integer CMS Rfl.ATIONS7 (dba) CMS Sessions7 (dba)
' PARENTID • • SESS 1D
OWnerlD integer lnteger lnteger
verslon lnteger
nteger SESS_STATE integer
LastModfyltne var blnary(32) STATE_TS v.,binary(32)
SCheduleStatus integea ORDINAL r'ltege, MAX_TOKEN irteger
rW!�tR,,nTin"t!'\ v.-.r hinArvr�,, ..:J ' RElATIONSHIPID integet
VERSIOII intcgcr
KEVID inte ger
OATA lnnn hinArv ..:J
CMS Yersionlnfo (db a) OUMMY(SYS)
SUbsystem(lljm ber integer dummy _ col teger
&.JildVerslo n varchar(M)
EXCLUDEOBJEC T (dbo)
ha,( 128)
Of course, there is a next step. How can we use the published web s e r
vices?
139
PUBL!SHING REPORTS ANO DASHBOARDS
The web service is the preferred source for your dashboards. Web s e r
vices can be controlled using APls provided by the different products that
come with SAP BI Edge. For example, the Raylight API allows a user to
programmatically control how the BI applications behave. However, using
these APls is not for the business user, but rather for the technical pro
grammer who leverages what the business user can do.
A specific API I would like to mention at this point once again is the Lumi
ra API that allows you to integrate D3 visualizations with Lumira using the
Vizpacker tool.
Nevertheless, as you have seen in our example, the business user can
easily publish a WEBI report as a web service, which can then be con
sumed by Lumira, for example.
To conclude this chapter and also the book, 1 would like to reconnect with
a theme I presented at the beginning of the book. 1 highlighted the im
portance of increasing the user value and usage of BI applications. The
newer BI and BW releases of SAP seem to provide the right technologies
to achieve an organized workflow for different skill levels involved in a BI
project. You may see that this workflow sometimes does not appear to be
very simple. However, you may also understand the reason why it is
complex. ln addition, you are able to add your own queries and columns
and can now also connect with BW using the latest technologies availa
ble in 7.4 SP08.
140
PUBLISHING REPORTS ANO DASHBOARDS
you can minimize or even eliminate the SAP shadow theme from your
project and achieve an improved break-even point for your BI project as
shown in Figure 7.28Figure 7.28: 81 application break-even.
User Value /
lnvestment
__..,
,,
Ma�lmum va1ue ,,,,
Aece1eratee1 BI --------------------- Accelerated ,,
81
1
1
1
1 Trad1tonal
i
81/BW
1
axlmum va1ue 1
1
raClitional BIIBW
------- - - - -
-+Time
Gol.Jve ReportingApps
Compelitive Edge
141
espresso
tutorials
Vou have finished the book.
143
ABOUT THE AUTHOR
Wolfgang has worked with HP, Allen Bradley, Sabik, and ATT in Germa
ny, the USA, Saudi Arabia, and Russia.
144
lNDEX
B lndex
145
lNDEX
CRM 20 H
Cross-Functional 9 Hierarchy Of Models 113
Crystal Reports 22, 61, 63, 72,
84 1
Crystal Reports 2013 98 IDT 95
css 119 lnfoObject 120
Cubes 34 lnformation Designer 22
Custom Reports 39 lnfoSet 23, 62, 65, 72
lnfoSet Strategy 82
D 1 nfoSets 15, 6 1
Dashboard Design Project 140 IT Landscape 113
Dashboards 117
Data Hierarchy 109 J
Data Layer 58 JavaScript 119
Data Model 38 Join Conditions 66
Data Source 59
Design Studio 119 K
Dictionary 55 Key Figures 89
Drill Down 120 KNA1 66
KPI 99
E
eCommerce 37, 107 L
Edge Edition, Standard Package LIKP 66
24 Linux 98
ERD diagram 139 LIPS 66
ERP-Centric 95 Logical Database 62, 64
ETL 24 Lumira 118
Excel 12, 33 Lumira API 140
Explain 75
Extractors 34 M
Meta Model 100
F Mini-reporting apps 37
Field-Level Semantics 121 MONI 48
Forecasting 40 MRP 15
MRP PP Blueprint 40
G MultiProvider 103
GitHub 93 MultiProviders 122
GitHub Query Repository 114
146
lNDEX
o s
ODS Views 121 Sales And Distribution 83
OLAP 109 SAP BAPI 53
Operational Reports 34 SAP 81 Edge 11, 51
Order-To-Cash 69 SAP 81 Platform 37
OTC 89 SAP Business ONE 144
SAP Business Suite 100
p SAP BW 7.4 SP08 121
Parameter Files 26 SAP Data Model 55
Performance 91 SAP ECC 9, 15, 18, 89
Persistent Representation 122 SAP ECC 6.0 23
Primary Keys 66 SAP ECC Data Model 79
Publish The Data Connection SAP ECC Meta Database 81
127 SAP GUI 49
Publish Your Universe 133 SAP HANA 9, 34, 81, 91, 96
Publishing The Business Layer SAP Lumira 109
132 SAP Query Bootstrapping 93
SAP R/3 59
Q SAP Utilization Analysis 89
Queries 59 SAPLogon.ini 30
Query As A Service 22 Scoping 35
Query As A Web Service 124, SE11 48
134 SE16 63
Query Hierarchy 67 SE37 46, 50
Query stripping 111 SE38 45
SE80 52
R SE93 51
Raylight API 140 Semantic Layer 19, 58
Reporting Apps 15 Shadow Theme 12
Reporting Mini-App 35 SM19 41
Repository 131 SM20 44
Repository Server 127 SM36 45
Roadmap 33 Solution Manager 40
ROi 17 SQ01 60, 61
147
lNDEX
148
DISCI..AJI\IER
C Disclaimer
This publication contains references to the products of SAP SE.
SAP SE is neither the author nor the publisher of this publication and is
not responsible for its content. SAP Group shall not be liable for errors or
omissions with respect to the materiais. The only warranties for SAP
Group products and services are those that are set forth in the express
warranty statements accompanying such products and services, if any.
Nothing herein should be construed as constituting an additional warran
ty.
149
More Espresso Tutoriais Books
---
--- ---
-... - ---
--
http:/15017. espresso-tutorials.com
--
--
---
M>nagtmtJ>t (EPMI Add-ln
► Create a Basic Report from Scratch
-------,., ---
_______ --· ► Walk through a Detailed Case Study
http://5042. espresso-tutorials.com
Gerardo di Giuseppe:
First Steps in SAP® Business Warehouse
(BW)
► lips for Loading Data to SAP BW with SAP ETL
► Using Business Content to Accelerate your BW
objects
-----·
-- -- -- ►
-- --
---- -- How to Automate ETL Tasks Using Process
Chains
► Leverage BEx Query Designer and BEx Analyzer
http:/15088. espresso-tutorials.com
Jõrg Bõke:
SAP® BI Analysis Office - a Practical Guide
► lnstallation and prerequisites
► Analysis Excel Pivot, Ribbon and Context Menu
Explained
---
► Enhanced reporting with API and Visual Basic
---- ---
--·-
___......,. --
-----
(VBA)
► Comparison between Analysis Office AO and BEx
http:/15102. espresso-tutoria/s.com
- --
--
► Building a Solid Migration Business Case
--
-- ---
► Step-by-Step Runbook for the Migration Process
http:/15109. espresso-tutorials.com
•= 1 Dominique Alfermann, Stefan Hartmann, Benedikt
Engel:
SAP® HANA Advanced Modeling
► Data modeling guidelines and common test
approaches
► Modular solutions to complex require ments
---
---
-
--
--
--
---
-
► lnformation view performance optimization
► Best practices and rec ommendations
http:/1411 O. espresso-tutoria/s.com