Professional Documents
Culture Documents
14.creating and Using Advanced DSOs in SAP BW On SAP HANA PDF
14.creating and Using Advanced DSOs in SAP BW On SAP HANA PDF
© Rheinwerk®
Publishing
Bonn • Boston
W h a t Y o u 'll Learn
In this E-Bite, you'll find step-by-step instructions for creating and using
aDSOs in SAP BW on SAP HANA. We begin with an introduction to aDSOs
in the context of other classic SAP BW modeling objects before jumping
into their main features and capabilities. We’ll then look at the artifacts and
data necessaiy to build our aDSOs. Finally, we'll see how aDSOs can be
used to compare actual and plan data via CompositeProviders.
4
5 Using aDSOs to Compare Actualand Plan D a t a ................................ 68
5.1 C o m binin g Actual and Plan Data o f aDSOs via
a C o m p o s ite P ro v id e r...................................................................... 69
5.2 Enhancing a C om positeP rovider ............................................... 76
6 W h at's N e x t ? ............................................................................................... 93
1 In tro d u c tio n
5
I n t r o d u c t io n 1
SAP ERP
Invoice (F) Calendar Day (F) Customer Amount
number (F) sales (F)
11001 20.01.2016 1060 90,00
11002 26.01.2016 1060 80,00
11003 28.01.2016 1050 50,00
11009 02.02.2016 1060 45,00
Empty Storage
SAP BW
PSA-Persistent Staging Area
Invoice (F) Calendar Day (F) Customer Amount
number (F) sales (F)
11001 20.01.2016 1060 90,00
InfoCube
11002 26.01.2016 1060 80,00
Calendar Calendar Amount
11003 28.01.2016 1050 50,00 Month (C) Month (C) Sales (K)
11009 02.02.2016 1060 45,00
01.2016 1060 170,00
Date
DSO-DataStore Object 1050 50,00
Invoice (F) Calandar Day (F) Customer Amount 02.2016 1060 45.00
number (F) sales (F)
11001 20.01.2016 1060 90,00
11002 26.01.2016 1060 80,00
Aggregate Date
11003 28.01.2016 1050 50,00
11009 02.02.2016 1060 45,00
6
I n t r o d u c t io n | 1
7
I n t r o d u c t io n | 1
—
Subscriber/
Provider
Consum er
8
I n t r o d u c t io n | 1
You can convert existing DSOs and InfoCubes into aDSOs. Conversion
tools will be shipped by SAP in upcoming support packages (SP). But you
can, in the meantime, create aDSOs using existing DSOs and InfoProvid-
ers as templates. (Visit www.sapyard.com to see how you can convert
them; we do not cover this process in the E-Bite).
Now that you have a better idea of the different ODPs and InfoProviders,
let's dive into the topic of this E-Bite: aDSOs.
9
I n t r o d u c t io n | 1
SAP B W /R D B M S SAP BW 7 .4 / H A N A
'N
^ C o m p o s it e P r o v id e r —
_ M u l t i P r o v i d e r ------------ C o m p o s it e P r o v id e r
S InfoSet — -— =
> v iiiu a iriu v iu ci ^ w p c n u i ' J v ie w
V J
1 ......... . ^
5 H ybridProviders
5 I n f o C u b e ----------------- --------- — —^ AHvpnrpH
D a ta S to r e O b j e c t — D ataStore O bject
£ l PSA ------------------ -
J
Figure 4 aDSO Is the Only Object Needed for Persistence Layer
10
F e a tu re s a n d C a p a b ilitie s o f a D S O s | 2
Figure 5 DataStore Object (Advanced) Option Available in SAP BW Data M odelin g in Eclipse
11
F e a tu re s a n d C a p a b ilitie s o f a D S O s | 2
M a in Tables of aDSOs
aDSOs have three core tables: Inbound Table, Table of Active Data, and
Change Log. These tables are generated when an aDSO is created and acti
vated, regardless of the usage. The three tables are described in Table 1.
Table Technical Name In Comparison To
Inbound Table /B IC /A <A D S0 ► Activation queue table for
te ch n ica l name>l classic DSO.
► Uncompressed fact table of
non-SAP HANA-optimized
InfoCube.
Table o f Active Data /B IC /A <A D S0 ► Same as classic DSO.
te ch n ica l name>2 ► Compressed fact table of
non-SAP HANA-optimized
InfoCube.
Change Log BIC/A<ADS0 ► Same as classic DSO.
te ch n ica l name>3
As shown in Figure 6, the data is first loaded into the Inbound Table.
Depending upon the use case, the data may be read from the Inbound
Table directly, or it may be activated first and then read from the Table of
Active Data. The Change Log contains the change history for the delta
update from an aDSO to other data targets.
12
F e a tu re s a n d C a p a b ilitie s o f a D S O s | 2
EXTRACTION A N D REPORTING
M
LOADING
The SAP HANA part of SAP BW on SAP HANA has brought with it fea
tures to consolidate all SAP BW InfoProviders with persistent data into a
single object with a single, simple database layout. This is similar to the
consolidation that occurs in the virtual layer based on CompositeProvi-
ders. With an aDSO as the main persistence object, we need to keep the
following points in mind during consolidation:
» SAP ensures that aDSOs are the only objects you need for persistence.
This also implies that we do not have the benefits of specific character
istics that we used to have prior to aDSOs, when we were using classical
modeling object features such as E v e r y C h a r a c t e r i s t i c I s K e y for Info-
Cubes.
» Classic DSOs have a three-table approach.
» The PSA has a field-based structure.
» No activation is required to load the write-optimized DSO.
13
F e a tu re s a n d C a p a b ilitie s o f a D S O s 2
To make the creation process for aDSOs simpler and faster, model tem
plates are available. The following are shown in Figure 7:
» Data acquisition layer
» Corporate memory layer in different flavors
» Data propagation layer
» Reporting layer in different flavors
S e le c t M o d e l T e m p la te
Model Templates:
© P O T J Cancel
aDSOs replace all the objects by taking on all of their roles. Depending on
which model template you choose, the modeling properties of the data
model will be predefined foryou. These templates control the behavior of
an aDSO and its services. Figure 8 shows the M o d e l i n g P r o p e r t i e s for an
aDSO template.
14
F e a tu re s a n d C a p a b ilitie s o f a D S O s | 2
Templates Properties
type filter text
/ Activate Oata
d & Enterprise data warehouse architecture Write Change Log
t_j Data acquisition layer (including corporate memory) Keep Inbound Data, Extract from Inbound Table
fcl Corporate memory - compression capabilities Unique Oata Records
fcj Corporate memory • reporting capabilities
fed Data warehouse layer - delta calculation
Spetia (Types
fcj Data warehouse layer - data mart
d & Classic objects
□ Planning Mode
t J Standard DataStore Object Direct Update
fc) Write-optimiied DataStore Object @ All Characteristics are Key, Reporting on Union of Inbound and Active Table
fcl InfoCube
Storage Options
□ Extended Storage
15
F e a tu re s a n d C a p a b ilitie s o f a D S O s | 2
Active Data. With this option, the aDSO behaves more like an Info-
Cube. Similarly, the data is aggregated here.
» Ex t e n d e d tables
Make an area in SAP HANA ready for warm data, which is used in the
acquisition area and corporate memory area, without functional
restrictions.
Use SAP BW on SAP HANA in order to handle large data volumes in
the petabytes (PB) area at low costs.
O th e r Im p o rtan t Features
16
F e a tu re s a n d C a p a b ilitie s o f a D S O s | 2
» Partitioning
In most cases, partitioning improves performance —for example, during
data loads with large volume. You can also use data partitioning to divide
the entire dataset of an aDSO into several smaller units that arc inde
pendent and non-redundant. Just remember that ifyou have chosen the
All Characteristics are Key, Reporting on Union of Inbound and
Active Table option, you cannot create partitions and existing partitions
will automatically be deleted. If this option is not selected, then you can,
if required, merge existing partitions or split them into smaller ones.
X Data management
The three types of multi-temperature data in SAP BWare treated differ
ently in the different aDSO tables. By default, the Table of Active Data
has hot/active data, while the Change Log and Inbound Table have
warm/non-active data. Depending upon the flavor chosen (selected tem
plate), the aDSO behaves as hot, warm, or partly hot and partly warm.
» Secondary indexes
In cases of very complex lookup or when required, you can create sec
ondary indexes for aDSOs. By default, an index is created on an active
table. In the absence of an active table, it would be created on the
Inbound Table.
aDSOs have additional features, as well. These include integrated remod
eling of structure and type changes and the best practice LSA++ templates,
to name few.
17
F e a tu re s a n d C a p a b ilitie s o f a D S O s | 2
The type of join between the fact table and the master data table deter
mines SAP HANA's performance and which SAP HANA engine executes
the join. Using an inner join ensures SAP HANA's optimal performance,
allowing SAP BW to push online analytical processing (OLAP) operations
to SAP HANA's calculation engine. To check whether an inner join can be
used, perform an SAP BW referential integrity check when loading or
activating the data. This check is available in classic DSOs as well via the
Create SIDs option (sometimes referred to as the BEx flag). In aDSOs, the
enhancement is done at the characteristics level. You can set this flag not
only at the InfoProvider level, but also on individual characteristics of an
aDSO. In this case, the data integrity check is only executed on the
selected characteristics.
Another enhancement that improves reporting is that an InfoCube joined
to the master data table are made via INT4 values instead of STRING val
ues for an aDSO.
On rare occasions, ifyou have a compounded InfoObject with a high car
dinality (e.g., OMAT_PLANT and the reports have a lot of navigational
attributes, forcing you to execute the join frequently), you will have to
18
F e a tu re s a n d C a p a b ilitie s o f a D S O s 2
check the persistency of the InfoObject SID in the aDSO table. This cre
ates an additional column in the Table of Active Data to hold the SID,
which will be filled during data activation.
19
F e a tu re s a n d C a p a b ilitie s o f a D S O s | 2
a Details: U0 0 _ A D S O 1 pi § X
Fields
®s ▼ G eneral
Name:
Filter Pattern Add InfoObject
HJ__________________________ 1 1 ]
20
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
You now have a clear understanding of the various features and capabili
ties of aDSOs. In the next section, you will learn to create all the artifacts
and load the necessary data before moving on to creating your aDSOs.
Note
The artifacts created in this section w ill be used in Section 4 as a basis for
creating the aDSOs. We need to create the artifacts here first before pro
ceeding to the next section.
21
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
The following explains the different process steps we will follow for each
data source. In these steps, we distinguish the creation of the prerequisite
artifacts and the loading of the data into the data source:
1 Prerequisite artifact: Create a data source for purchase order Z_EPM_PO
in the SAP ERP system (source system).
2 Prerequisite artifact: Create a classic DSO for the purchase order (Z_E_
CDSO) in the SAP BW system.
3 Loading data into the data source: In the SAP BW system, fill the classic
DSO (Z_E_CDSO) with extraction from the data source (Z_EPM_PO).
4 Prerequisite artifact: Create an InfoCube for the open purchase order
(Z_EC_OPO) in SAP BW.
5 Loading data into the data source: Fill the InfoCube (Z_EC_OPO) with
open purchase order data from our classic DSO (Z_E_CDSO).
6 Prerequisite artifact: Create an SAP HANA-optimized InfoCube for open
purchase orders (DEMOCUBE).
7 Loading data into the data source: Fill the SAP HANA-optimized Info
Cube (DEMOCUBE) with the open purchase order data from the classic
DSO (Z_E_CDSO).
Note
We w ill consume a *.csv file from the legacy system as it is, so we are not
discussing any activity for changing it in this section.
22
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
0 RS02 ▼ « a s e s
M a in ta in G e n e ric D a ta S o u rc e s
UJ
2 The next screen prompts you to provide details such as the name and
description. Enter the field values shown in Figure 11. For the V i e w /
T a b l e field, we will use Z_EPM_V_PO.
23
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
Table 2 lists the tables that are part of our Z_EPM_V_PO view.
Type Name Description
Primary SNWD_P0 Stores EPM purchase order header table infor
mation.
Secondary SNWD_P0_I Stores EPM purchase order item table informa
tion.
Secondary SNWD _P 0 _ SL Stores EPM purchase order schedule line table
information.
Secondary SNWD_PD Stores EPM product data table information.
Secondary SNWD_BPA Stores EPM business partner information.
Secondary SNWD_EM P LOY E E Stores EPM employee information.
24
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
quantity, and so on. Z_EPM_PO also provides information about the doc
uments that are posted referencing the purchase order, such as goods
receipts and invoices.
• (& InfoProvrief ► :
Change
• ^!nfoOb)ects * <HJs
Detete
• ^InfoSources
Display Metadata
• DataSources
Dtspiay Data Flow
• 0 Source Systems
Create InfoArea...
• ® Open Hub Oesti
Create InfoCube...
• j§. Warning Sequer
Create DataStore Object...
• | SAP hana Anal\
Create MJtiProvider...
• 8S Process Chans
Create VrtuaProvider...
Create IafoSet...
4 >
Create HybndProvider...
Admitstraticn Create Aggregation Level
25
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
3, Now that you've created the structure of your classic DSOryou'll add
the key fields and data fields (see Figure 14 and Figure 15) so that you
can work with these fields and also use the key fields for transforma
tions. To add the key fields, right-click the K e y f i e l d s node and select
I n s e r t to insert the key fields shown in Figure 14. Similarly, for the data
26
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
Loading D ata into the Classic DSO w ith D ata from Z_EPM _PO
In this section, in the SAP BW system we will fill the classic DSO (Z_E_
CDSO) with extraction data from the data source (Z_EPM_PO) which we
created in Section 3.2.
To do so, we will create a transformation so that we can fill Z_E_CDSO
with data from Z_EPM_PO. Follow these steps:
1 Right-click the classic DSO node and select Create Transformation.
2 The Create Transformation screen will appear. On this screen, enter
the field values shown in Figure 16, specifying "Z_EPM_PO" as the
DataSource.
27
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
3, Next, map the fields inside the transformation. Choose the field from
the left table (source) and drag the mouse to the target field on the right,
as shown in Figure 17. This ensures that we can read data from the
source system to the target system.
EPMPurchase Order BW362 (2.EPM.PO)
Pos^KeyjfickJ |lc<]Oes<:npt. [Data tjtnqth
I NCCE.KEY Node Key RAW 000016
2 NOOCJCEV_I NodeKey RAW 000016
3 *? NCC€_KEY_Sl NodeKey RAW 000016 0 clot tic DSO for Pureh ate Order (ZECDSO) Rule Group: Standard Group
4 NCCEJ<EY_PO NodeKey RAW 000016 Rul^Rule Name IposJkeyllnfoOfoiect IlcorjDetcrlpt. |Data length |lnti
S N0CC.KEY.6P NodeKey RAW 000016
6
J 9
15 GROSS AMOUNT Gross Amt. CURA 000015 = OO.NW.FR© 10 OO.NiV.PR10 Product ID(EPMOemo)
£
CHAR 000010 □
16 NET AMOUNT Net An*. CURA 00001S a 00_NW_DELD 11 CO.NiV.DELD A PlamedDe*very Date (EPMDemo) DATS 000008
17 TAX AMOUNT Tex Amt. CUM 000015 OO.NW.EP 12 OO.W.BP BuirStiSPartner (EPMDemj) NUMC 000010
£ □
18 LIFECYCLE STATUS POl/ecvde CHAR 000001 BPRole2 13 CO_NiV_ROLE Role(EPMOemo) CHAR 000003
19 APPROVAL STATUS POApproval CHAR 000001
(9 £ □
00_NW_GAMT 15 OO.NW.GAMT □ GrossOrdtr Amount (EPMDemo) CURR 000017
20 CONFIRMSTATUS POConlrmabcrt CHAR 000001
OO.NW.NAMT 16 OO.NiV.NAMT a Net Oder Amocnt (EPMDemo) CURR 000017
21 ORCCRING STATUS POOrderm CHAR 000001
22 PO ITEMPOS POItemPos CHAR 000010 - 00_NW_TAMT 17 OO.NiV.TAMT □ Taxes (Oder Amount)(EPMDerro) CURR 000017
23 NOTE GU1DI NodeKev RAW 000016 0O_NW_PCURR 18 CO_NW_PCURR £ Oder Cirrency CUKY 000305 □
24 CURRENCY CODE I Currency CUKY 000005 00_NW_PQTY 19 CO.NiV.PQTY • a Oder Quantty (EPMDemo) QUAN 000017
25 GROSS AMOUNT I Gross Amt. CURA 00001S 0O_NW_FUNl 20 CO.NiV.PUNI £ Oder Unit UNIT 000003 □
26 NET AMOUNT 1 Net Amt. CURA 000015 00_NW_CR8 21 OO.NW.CR8 £ Created by (EPMDemo) NUMC 000010 □
27 TAX AMOUNT I Tax Amt. CURA 000015 0O_NW_CHB 22 co.Niv.oe £ Changedby(EPMDemo) NUMC 000010 □
28 QUANTITY QuenUv OUAN 000013
29 QUANTITY UNIT Oty.Urtt UNIT 000003
30 DELIVERYDATE TimeStamp DEC 000021
31 PROOUCT ID Product ID CHAR 000010
32 8P 10 Bus. Part. ID CHAR 000010
28
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
4 Once the fields have been mapped, save and activate the transforma
tion.
Now we will create the relevant data transfer process (DTP) and transfer/
load the data into the classic DSO from the data source. DTP is used to
load the data from the source to the target. Follow these steps:
1 Right-click the classic DSO node and select Create Data Transfer Pro
cess.
2 The Create Data Transfer Process screen appears. Enter the details
shown in Figure 18. Click Confirm when you have finished.
^ @ □ Classic DSO for Purchae Orders(Demo) Z_E_CDSO
.nnnnnl
3 Now you are ready to execute and load data into the DSO. To do this,
execute the DTP for the DSO. Enter the details shown in Figure 19 and
then click Execute.
When the execution is complete, you can see the data in the DSO Z_E_
CDSO (see Figure 20).
29
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
"Z _ E _ C D S O ”, L is t o u t p u t
QS ° § & £ ) (£ ) Q i H 4 5 ( 2
30
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
• H i Save © Saved
• E l Revised Version [ s i Active Version
• El O bject Status (8* Active, executable
► S Settings
► CD Dimensions
► Q ] Navigation A ttributes
0 5 Key Figures
• <-i| Gross Order A m ount (EPMOD_NW_GAMT CURR i
• N et Order A m ount (EPM COD_NW_NAMT CURR I
• 4 l Order Q uantity (EPM Dem 0D_NW_PQTY QUAN i
• 4 i Taxes (Order A m ount) (EIOD_NW_TAMT CURR i
3. Next, add the data fields by right-clicking on the Data Field node and
selecting Insert to enter the fields shown in Figure 22.
31
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
~ Ef? Dimensions
► Data Package Z_EC_OPOP
► Time Z_EC_OPOT
► 4^ Unit Z_EC_OPOU
► Purchase Order Z_EC_0P01
► Purchase order item Z_EC_0P02
► Business Partner Z EC QPQ3
► Business Partner Role Z_EC_0P04
► Product Z_EC_0P05
► Status Z_EC_0P06
► Planned Delvery Date Z_EC_0P07
► Created By Z_EC_0P08
► Changed by Z_EC_0P09
► Changed on Z_EC_OPOA
► Created On Z EC OPQB
► Source System Z_EC_OPOC
► CD Navigation Attributes
► CD Key Figures
Loading D ata into the InfoCube w ith D ata from the Classic DSO
We will now load the open purchase order data from the classic DSO (Z_
E_CDSO) into the InfoCube (Z_EC_OPO).
Follow these steps:
1 Create the transformation to fill the InfoCube (Z_EC_OPO) with data
from the classic DSO (Z_E_CDSO) following the steps shown in Sec
tion 3.3. Since the new InfoCube you created does not have any data
yet, you will need to get transformed data. The transformation shown
in Figure 23 will make sure that you only bring what you want.
^ o ° C§} Q Start Routine Q End Routine tea & e?
2, When you save the transformation, a screen appears on which you can
map the fields from the transformation. Choose the field from the left
32
C r e a t in g A r t if a c t s a n d L o a d in g D a ta | 3
table (source) and drag the mouse to the target field on the right, as
shown in Figure 24.
O ( la ssie DSO o r Purchaser O rder(D em o) ( 2 _ l_ t D 5 0 ) In fo c u b e O pen P u r c h a s e O rd e rs (2_CC_OPO) R ule G roup: S ta n d a rd G roup
Posi|Keyj Inf oO b feet jlco jo e scr ip t. [D ata t jln g t h R ule N am e lP o s iir e y ’lnfoOb»e<t |l« ^ D e -sc rip t. i-r.nsfrm I
l (XOGSYS £ Source System CHAR 000010 CO_NW_GAHT 1 OO.NW.GAMT a Gross O d er Amount (EPM Demo) CURR 000017
2 CD_NW_P0 J3 Purchase Order (EPM O w e ) CHAR 000010 2 a
1
0O_NW_NAMT CO_NW_NAMT 000017
1
1
CURR
i
3 CO.N WJPOS fig Purchase Order Item (EPM Demo) NUMC 000010 0O_MW_PQTY 3 CO_NW_PQTY a Order Quantity (EPM Demo) QUAN 000017
4 CD_NW_P005 J P Ordeeng Status (EPM Demo) CHAR 000001 0O_NW_TAMT 4 CO_NW_TAMT a T ares (O d e r Amount) (EPM Demo) CIRR 000017
5 CO_NW_POAS fig Order Aeproval Status (EPM Demo) CHAR 000001 OOJAV.PO 7 *? o o jt« j> o Purchase Order (EPM Demo) CHAR 000010 □
£
6 C D JfW JX X S £ O d e r Confanaticn s ta tu s (EPM Demo) CHAR 000031 CO_NW_BP 8 J?
0O_WT_BP £ e u cn e ts Partner (EPM Demo) NUMC 000010 □
7 cojvw.pcts £ O d e r ife c y d e Statu* (EPM Derm) CHAR 000001 0O_WV_ROlE 9 CO_NW_RCtE Role (EPM Demo) CHAR 000003 □
J9 £
8 CO_NW_CA fig C reated on (EPM Derm) DATS 000038 OO.NW.PRC 10 J 9 COJ(W_PR10 Prodjct ID (EPM Oemo) CHAR 000010 □
9 CO.NW.CHAT 4 " Changed on (EPM Demo) DATS 000038 OOJMTJXID COJNVJ3EID Planned DeAvery Date (EPM Oemo) OATS 000008
11 J 9 £
10 C0_NW_PR1D 4 " P ro d u ct® (EPM Demo) CHAR 000010 OO_NW_CMAT 12 CO_NW_CHAT f i g Changed on (EPM Oemo) DATS cooooe
JV
11 COJ4WJ3EID £ M amed DeAvery Date (EPM Demo) OATS 000038 0O_NW_CA 13 .V
CO_NW_CA £ C reated on (EPM Demo) OATS 000008
CO.WW.BP 4 8 Business Partner (EPM Oemo) num : 000010
12 OCAIMONTH 14 0CAIMCWTH © Calendar Year/Month MJMC 000006 □
13 CO_NW_RCtE £ Pete (EPM Oemo) CHAR 000033 OCAIYEAR 15 .V 0CAEYEAA © Calendar Year NUMC 000004
H CRECCRCMOC* ^|H 6W Delta fYocess: Update Mode CHAR 000031 0CAU3AY 16 0CAU3AY © Calendar Day DATS 000008
15 CD.NW.GAMT Gross O d er Amount (EPM Demo) CURR 000017 CO.NW.POtS 17 J9 co_Nw_pas fie Order Ifecyde Status(EPMDemo) CHAR 000001 u
16 CDJ4WJ4AMT .0 f**t O d er A mowt (EPM Demo) CURA 000017 OD_WV_POCS 18 J9 CO_NW_POCS £ Order CerfrmabonStatus(EPMDemo) CHAR 000001 □
17 CO_NW_TAMT .0 Taxes (Order Amomt) (EPM Demo) CURR 000017 CQNWPQQ5 1? A CQNWPQQS £ C*-SenngSatw(EPMDemg) QHAR «WI □
18 OO.WW.PCURR £ Order Currency CUKY 000035 0O_f*V_POAS 20 OO.NW.POAS £ Order ApprovalStatus(EPMDemo) CHAR 000001 □
19 CO_NW_PQTY a O d e r Quantity (EPM Oemo) QUAN 000017 OO.NWJPOS 21 A
CO.NWJPOS £ PurchaseOrder Rem(EPMDemo) NUMC 000010
20 CO_fVW_FUf(I fig- O d e r Ur* UNIT 000033 0D_NW_CR8 22 CO_Wr_CR8 £ Createdby(EPMDemo) NUMC 000010 □
21 CO_f/iV_CRB fig C reated by (EPM Demo) num : 000010 CO.NW.CWB 23 0O_NW_Ct* £ Changedby(EPMDemo) NUMC 000010 □
22 co_ n w _ o « £ Changed by (EPM Demo) NUMC 000010 (XOGSYS 24 (XOGSYS CHAR 000010
1
i
£
33
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
2 On the Create InfoCube screen, provide the details shown in Figure 26.
& Create InfoCube
Create InfoCube
3 Add the key figures by right-clicking on the Key Figures node and
selecting Insert for Gross Order Amount (EPM Demo), Net Order
34
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
Figure 27 SAP HANA-O ptim ized InfoCube Is Shown w ith D otted Lines
Loading D ata into an SAP H A N A -O ptim ized InfoCube w ith D ata from
the Classic DSO
2. Map the fields as demonstrated in the Loading Data into the Classic
DSO with Data from Z_EPM_PO section to the fields displayed in Fig
ure 29.
35
C r e a t in g A r t if a c t s a n d L o a d in g D a ta | 3
Q Cla**tc lyso for Pure t o e O rder*(Dem o) (Z_E_CDSO) (j HAhA Uptinw*ed Open Pure have order* (OtMOtUBt) Rule Oroop: Standard broup
t o n ie lPo*iK ey|ln(oO b|e<t ;ltoijoe*crtpt. D ata l e n g t h lln ti
1 JZ OlOGSYS 4 Source System CHAR 000010
~\ r m
CO.NW.GAMT 1 OO.NiV.GAMT a Grot* Order Amount (EPM Demo) CURR 000017
2 OOjNW_PO
£ Purchase Order (EPM Demo) CHAR 000010
-V . r - CO.MW.NAMT 2 OO.Nr/.NAMT a Net Order Amount (EPM Demo) CURA 000017
3 JZ ODjNVVJPOS £ Furchase Order Item (CPM Demo) MUMC 000010 CO_NW.P<)TY 3 CO_NiV_PQTY a Order Quanbty (EPM Demo) qtU N 000017
-t \ \ u r -
4 OOJNW.POCS £ Orderrv; Statu* (EPM Oemo) CHAR 000001 0D_NW_TAMT 4 OO.MA'.TAMT ■a Ta.e* (Order Amcnr*) (EPM Demo) CURA 000017
5 OOjNV/POAS £ Order Apprcrval Status (EPM Demo) CHAR 000001
A \ CO_NW_PO 7 CO.MtfPO £ Purchase Order (EPM Demo) CHAP 000010 □
JZ
6 oo_*w _p o cs £ Ord»r C or/rm aten Statu* (EPM O«rro) CHAR 000001 CO_MW_EP> 8 OO.MAt.BP £ Dutne** Partner (EPM Oemo) NUHC OOOOIO □
JZ
7 0O_AW_P<X.S £ C*de» LfecycW Statu* (EPM 0«mo) CHAR 000001 CD.NW.RCtE 9 JZ CO_M*'_R<XE £ Role (EPM Demo) CHAR OOOOC3 □
8 OOjMW.CA £ Created en (EPM Oemo) DATS 000008
4 / I f 0D_NW_PR1D 10 jz
0O_NAr_PRK) £ Product ID (EPM Demo) CHAP 000010 □
9 OOjMW.CHAT £ Changed on (EPM Oemo) DATS 000008 OO.NWJJEID 11 jz OO.MA7_C€ID £ Flamed DeAvery Date (EPM Demo) OATS 000008
10 0O_W/_PPtt> £ Froduet ID (EPM Demo) CHAR 000010 CO_NW_CHAT 12 j z OOJW.CHAT £ Champed en (EPM Demo) OATS OOOOC8
11 QOJWSClD £ Flamed Oefrrery Date (EPM Demo) DATS 000008 CO_MW_CA 13 jz
CO_NiV_CA £ Created on (EPM Demo) OATS ooooce
12 OO.AW.BP £ Eusne** Partner (EPM D ew ) MUMC 000010 OCAtMONTH 14 jz
OCALMCWTM © Calendar yeer/nonth NUMC 0000 C6
13 OOjMW.ROtE £ Role (EPM Demo) CHAR 000003 OCAAYEAR 15 * ? OCAIYEAR © Calendar year NUHC 000004
14 ORCCORCMOOC £ e w De*a Proce**: update Mode CHAR 000001 OCAlDAr 16 j z OCALOAY © Calendar day OATS ooooce
15 0O_«W_<iA#4T 0 Of0** Order A irnxrt (EPM Demo) CURR 000017 J l a CO_NW_P<XS 17 J Z CO_Ntf_PClS £ Order tfec y d e Status ( efm Demo) CHAR 000001 □
16 0 0 JWJW'l 0 Net Order Amount (EPM Cemo) CURR 000017 0D_NW_POCS 18 J Z CO_NA7_POCS £ Order C o rtrm tto n Statu* (EPM Dems) CHAR 000001 □
17 ODJNW_TAMT a Ta»e* (Order Amount) (EPM Demo) CURR 000017 CD_NW_PO05 19 J Z CO_NiV_POOS £ Ordering Statu* (EPM Demo) CHAR 00000! □
£ CUKY 1 \ f CHAR □
18 OOjMW.PCUBfi Order Currency 000005
J W - CO_NW_POAS 20 J Z OO.IW.POAS £ Order Approval Statu* (EPM Demo) 000001
19 OOjXW_PQTY a O d er O jentfty (EPM Demo) QUAW 000017 CDJIWJPOS 21 J Z O OJM/JPOS £ Purchate Order Item (EPM Demo) NUMC 000010
11
20 0O_WW_PONl A Crd-r Unit UMT 000003 0D_NW_CRB 22 J Z ooyw _C R 8 £ Created by (EPM Oerro) NUMC 000010 □
21 00_#AV_CR8 £ Created by (EPM Demo) MUMC 000010
—’—" n“ GD_NW_CH8 23 J Z OO.MAt.O* £ Champed by (EPM Demo) NUMC 000010 □
22 O O J W .O * £ Changed by (EPM Demo) MUMC 000010 ------------' W - (XOOSYS 24 JZ OLOGSYS 41 Soufce Syttem CHAR 000010
3, Create the DTP and load the data with the information shown in Fig
ure 30 by right-clicking on the SAP HANA-optimized InfoCube and
selecting Create Data Transfer Process. Click Confirm to continue.
36
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
’DEMOCUBE", L ist o u tp u t
§0 H, W ¥ H £ ) Ga Q* H =3 ■fa m
DEMOCUBE
U /BIC/FDEM OCUBE
37
C r e a t in g A r t if a c t s a n d L o a d in g D a ta | 3
In SAP HANA Studio, the fact table is displayed as shown in Figure 33.
Table Name: Schema: Type:
/8IC/FDEMOCUBE SAPCIA ~ \Z \ Column Store
Name SQL Data Type Di... Column Store Data Type Key Not Null Default Comment
1 KEY.DEMOCUBEP INTEGER INT X 0
2 SID.OCALMONTH INTEGER INT X 0
3 SID.OCALYEAR INTEGER INT X 0
4 SIO.OCALOAY INTEGER INT X 0
5 SID.OD.NY/.PCURR INTEGER INT X 0
6 SID.OD.NY/.PUNI INTEGER INT X 0
7 SID 0D NW PO INTEGER INT X 0
8 SID.OD.NY/.BP INTEGER INT X 0
9 SID.OD_NW.ROLE INTEGER INT X 0
10 SID.0D.NY/_PRID INTEGER INT X 0
11 SID.0D.NY/.DELD INTEGER INT X 0
12 SID.0D.NY/.C HAT INTEGER INT X 0
•3 SID_0D.NW.CA INTEGER INT X 0
14 SID OP NW POLS INTEGER INT X 0
15 SID.OD.NW.POCS INTEGER INT X 0
16 SID.OD_NW.POOS INTEGER INT X 0
17 SID.OD_NW.POAS INTEGER INT X 0
18 SID.OD_NW.IPOS INTEGER INT X 0
19 SID.OD_NW.CRB INTEGER INT X 0
20 SID OP NY/ CHB INTEGER INT X 0
21 D.NW.GAMT DECIMAL 17.2 FIXED X 0
5 Notice that all the DTPs have a checkbox called SAP HANA Execution.
The SAP HANA Execution checkbox is grayed out in this case. How
ever, next to it there is another button: Check Availability (see Figure
34). Click the button.
When you click the button, the message shown in Figure 35 appears.
38
C r e a t in g A r t if a c t s a n d L o a d in g D a ta 3
39
C r e a t in g a n d U s in g a D S O s 4
Important!
In this section, we reference the scenarios that we created in Section 3. We
w ill use the artifacts Z_EPM_PO, Z_E_CDSO, Z_EC_OPO, and DEMOCUBE
as needed.
The first aDSO we will create is an InfoCube-based aDSO using the Info-
Cube created in Section 3.1. We will use all the artifacts that we created in
Section 3 as well. Proceed with the following steps:
40
C r e a t in g a n d U s in g a D S O s | 4
^ Favorites
jft InfoProviders
E) O B [OBW] Business Information Warehouse
3 O B [/IMO/BCT] SAP HANA-optimized Business Content
............. ................ .......IV
■J iU JJL LVJ
New ►! Sf DataStore Object (advanced) 1
j $ (25 [EPM.
Go Into ggj CompositeProvider
• & ( 3 [EPM:
E3 £> InfoC Open £*1 Open ODS View
| 0 Quer
£► Get Where-Used List...
& } & InfoC
1 (i) £> MultiP Refresh F5
l-R-Ort t **
41
C r e a t in g a n d U s in g a D S O s 4
[CIA] INFADSO S3
$ 3 General: INFADSO
When the aDSO has been activated sucessfully, the inactive icon disap
pears (see Figure 39).
42
C r e a t in g a n d U s in g a D S O s 4
© [CIA] INFADSO X
5 With the InfoCube-based aDSO activated, go back to SAP GUI (in the
SAP BW backend system) and create a data flow from the existing Z_E_
CDSO (classic DSO for purchase order; see Section 3, Creating a Classic
DSO in SAP BW) to your new InfoCube-based aDSO (INFADSO). Make
a copy of the existing transformation between the Z_E_CDSO and the
DEMOCUBE (SAP HANA-optimized InfoCube for a purchase order; see
Section 3, Creating an SAP HANA-Optimized InfoCube for Classic DSO
Data) as a template by right-clicking ODSO Z_E_CDSO -> CUBE
DEMOCUBE and selecting C o p y .
6 On the C o p y T r a n s f o r m a t i o n screen, in the T a r g e t o f t h e T r a n s f o r
m a t i o n section, select D a t a S t o r e O b j e c t ( a d v a n c e d ) in the O b j e c t
T y p e field, and provide the name of the new aDSO (INFADSO) in the
43
C r e a t in g a n d U s in g a D S O s | 4
Note
There are tw o ways to create a transformation: creating one from scratch or
copying from an existing transformation. In this example, we are making a
copy of an existing transformation. Section 3 showed you how to create a
transformation from scratch.
MUMC 000010
s -
OO.MWJOCS
OD_WiV_POCS
13 19 oo_Nw_pots
14 .9 0O_NW_POCS
£ O d e r Lf ecyde Status (CPM Demo)
O d e r C crtrm abon Status (EPM Demo)
CHAR
CHAR
000001
000001
□
□
13 O O J*V JtO tE £ R de (EPM Demo) Char 000003
- OO.NW_POOS IS ,9 OO.NW_POOS £ O d c r n g Status (EPM Demo) CHAR 000001 □
14 Ofi£CORCMCC€ £ 3W De*a Process; Update Mods CHAR 000001
16 19 OO.NW.PQAS
1
<5
I
<»_NW_POA$ CHAR 000001 □
IS OO.fW.GAMT Q Cross Order Amount (EPM Demo) CURR 000017
OO.MWJPOS 17 19 0O_MWJPOS £ Purchase O d er Rem (EPM Oemo) MLfK 000010
16 CO_W*V_NftMT .0 Met Order Amount (EPM Deere) CURR 000017
- 00_NW_CRB 18 ,9 0O_NW_CR8 £ C reated by (EPM Demo) mum : 000010 □
17 OOJM'.TflMT Q Taxes (Order Amount) (EPM Oemo) CURR 000017
= 0D_NW_O« 19 19 00_N W _0« £ Changed by (EPM Oemo) MUMC 000010 u
18 OO.NSV.PCURR £- Order Currency CUKY coooos
= <»_NW_GAMT 21 OO.MW.GAMT •a Gross O d er Arrccnt (EPM Demo) CURR 000017
19 00_fW/_PQTY Q Order Quantity (EPM Demo) QUAN 000017
- 0O_NW_MAMT 22 0O_NW_NAMT a Met O d er Amount (EPM Demo) CURR 000017
20 C0_W*V_PUN1 £ Order Ur* UMT C00003
= OO.hW _PQTY 23 OO.HW_PQTY •0 O d e r Q u a rtty (EPM Demo) QUAN 000017
21 CO_NW_CRB £ Created by (EPM Oemo) MUMC 000010
0O_KW_TAMT 24 00_MW_TAMT ■0 Taxes (O d e r Amount) (EPM Demo) CURR 000017
22 O O J W .O * Changed by (EPM Oemo) MUMC 000010
Once the transformation is created with the right mapping, our next step
is to create the DTP in the SAP GUI (in the SAP BW backend system) and
load the data into the new aDSO (INFADSO). We can then evaluate the
data model in SAP HANA Studio.
The steps for creating a DTP here are the same as with traditional BI data
and SAP BW. Create a DTP for the transformation created previously and
keep all the default settings. Proceed with the following steps:
1 Right-click the D a t a T r a n sfer P ro cess folder and select C r e a t e D ata
T r a n sf e r P r o c e ss....
44
C r e a t in g a n d U s in g a D S O s 4
2, On the Create Data Transfer Process screen, you can change the
name of the DTP. However, leave the default settings as they are (see
Figure 42). Click the Confirm button.
3, Now load the data via DTP. To do so, double-click the DTP you just cre
ated to display the DTP in detail. Select the Execute tab and then click
the Execute button (see Figure 42). This starts the data load.
Extraction Update Execute
45
C r e a t in g a n d U s in g a D S O s 4
J g A T * la <£) £) © Qfl B m
OD_NW_PCURR Order WHt Purchase Order OD_NW_PO 0D_NW_GAMT X_NW_NAMT X_NW _PQ Taxes (Order)
EUR EA 0300X 0001 3 213,96 1 79.X 2 34,16
EUR EA 0300X 0004 6 5.471,62 4.598,00 2 873,62
EUR EA 0300X 0X 7 9 1.187,62 998,00 2 189,62
EUR EA 0300X 0008 10 1.428,X 1 .2 X .X 2 228,X
EUR EA 0300X 0009 11 1.116,22 938, X 2 178,22
EUR EA 0300X 0010 12 71,38 59,X 2 11,40
EUR EA 0300X 0012 14 183,26 154,X 2 29,26
EUR EA 030000X 16 18 1.070,98 8 9 9 .X 2 171,X
EUR EA 03000X 020 22 1.116,22 938,X 2 178,22
EUR EA 03000X 021 23 71,38 59,98 2 11,40
EUR EA 03000X 026 28 I X , 16 159,X 2 X ,3 6
EUR EA 0300000029 31 1.187,62 9 X ,0 0 2 I X , 62
EUR EA 03000X 032 34 5.471,62 4.598,00 2 873,62
EUR EA 030000X 33 35 1.428,X 1 .2 X .X 2 2 2 8 .X
EUR EA 030000X 34 36 1.116,22 9 3 8 ,X 2 178,22
EUR EA 03X 0X 035 37 71,38 59,X 2 11,40
EUR EA 030000X 37 39 183,26 1 54,X 2 29,26
EUR EA 03X 0X 041 43 1.070,X X 9 ,9 8 2 171,X
EUR EA 0300000045 47 61,88 52,X 2 9,88
EUR EA 0300000046 48 213,X 1 79,X 2 34,16
EUR EA 03X 0X 051 53 21,42 18,00 2 3,42
EUR EA 03000X 052 54 3 .X 3 ,4 4 2 .7 7 6 .X 2 527,44
EUR EA 03X 0X 054 56 283,22 238,00 2 45,22
5, To see what’s happening on the SAP HANA Studio side, go to SAP HANA
Studio and right-click the Catalog folder. In the context menu, select
Find Tablh. Enter "INFADSOl" in the Enthr table or column name
field. Under Matching items, notice it's present in /BIC (see Figure 45).
BI Consumer Services (BIC) is a standard system-defined schema. When
ever you activate an SAP HANA information model, it is stored here.
46
C r e a t in g a n d U s in g a D S O s | 4
u_ jynunym;,
Tables - Filter: *INFADSO*
3Q% /BIC/AINFADSOl
’ J /BIC/AINFADS02
/BIC/AINFADS03
I... I S - Triggers
& I S - Views_______________
-General-------------------------------------------
Total Memory Conjunction (KB): 811 M errcrK orw ^ion in Man Storage (KB): 5«
Nurrfcer d Entrtw : 11,760 M ffroy Ccr<*xv*Kr>n CX*« S tcx a * (KB) 263
9 » o o O « k (K B ): 600 Memory Ccnjurfflcn (KB): 860
P « ttc n 5 p « f M tW i:
MASM 1 O J M 'J K > ^ JW /J(O a ,O JW _ B P ^ JW JW O ,O J W J^ ,0 _ W J^ ,O JW JK X > S ,O JW J> O A S .O ^ J P C S ,O J/# _ C ftB ,O JftV J^ ,C > _ N W J )€ U ),C > JW _ C M A T /t>J<W.CA,aiMC«TM,CAlYEAfi; RAHO(DYNAM]C:
INTEGER•UKE] REQTSN *
As you can see, the number of records from SAP HANA Studio and SAP
BW are the same, which means the data is consistent and all of the
records have been transferred.
Now we will compress the data and see how the data compression pro
cess works. To do so, proceed with the following steps:
1 Go to Transaction RSA1 and right-click the aDSO. Choose M anage
47
C r e a t in g a n d U s in g a D S O s | 4
48
C r e a t in g a n d U s in g a D S O s 4
In this section, we will create an aDSO based on a classic DSO. The pro
cess of creating an aDSO here is similar to the process discussed in the
previous section. However, changes must be made to the modeling prop
erties. Proceed with the following steps:
1, Log on to the SAP BWModeling perspective of SAP HANA Studio. Right-
click the parent folder (where you have been placing all the artifacts) and
from the context menu select New • DataStore Object (advanced).
2, On the New DataStore Object (advanced) screen, provide the infor
mation for the BW Project (for our example, we use CIA_003_DEMO_
en), InfoArea, Name (of your aDSO; we use OD_NW_DEMO_EPM),
and Description fields (ADSO based on classical purchase order DSO
Z_E_CDSO). In this example, the name of the aDSO based on a classic
DSO is CDSOADSO. In the Create from Template section, select Info-
Provider and choose Z_E_CDSO, which you created in Section 3, Cre
ating a Classic DSO in SAP BW.
3, Click F i n i s h . Then activate the aDSO. Figure 5 1 shows the activated
aDSO. In this case, under M o d e l i n g P r o p e r t i e s , select the A c t i v a t e /
C o m p r e s s D a t a and W r i t e C h a n g e L o g checkboxes.
u General: CDSOADSO
D a ta S to r e O b je c t ( a d v a n c e d )
▼ Modeling Properties
0 Activate/Compress Data
0 Write Change Log
□ Keep Inbound Data, Extract from Inbound Table
□ Unique Data Records
□ All Characteristics are Key, Reporting on Union of Inbound and Active Table
□ Extended tables
▼ Keys
49
C r e a t in g a n d U s in g a D S O s | 4
14 CURRENCY COCC C u re n c y CLKY 000005 { ■} 0O_NW_CHAT 10 OOJftV_CHAT £ C hanged on (EPM Demo) DATS 000008
IS GROSS AMOUNT Gross Ami. CLRR 000015 = 0O_NW_PRD> 11 0O_HW_PRJD £ Product ID (EFW Demo) CHAR 000010 □
16 NET AMOUNT Net Arrt. CURR 000015 V 0O_NW_D6LD 12 OOJfW _D£lD £ Planned De*very D ote (EPM Demo) DATS ocoooe
17 TAX AMOUNT Tex A rtt. CURR 000015
I
£
1
26 NET AMOUNT I Net Arm. CLRR 000015 ■ 0O_NW_CRB 21 0O_MW_CRB C re ate d by (EPM Demo) NUMC 000010
£ □
27 TAX AMOUNT I Tex An*. CLRR 000015 ■ OO.NW.CHB 22 0O_HW_CHB C hanged by (EPM Demo) NUMC 000010
£ □
28 OUANTITY O u a n tiv OUAN 000013
29 OUANTITY UNIT O ty .L W UMT 000003
30 C € l EVERY DATE T m eStem o DEC 000021
31 PROOUCT ID Product ID CHAR 000010
32 BP ID Bus. P a rt. ID CHAR 000010
Once the transformation is created, our next step is to create the DTP in
the SAP GUI (in the SAP BW backend system) and load the data into the
new aDSO (CDSOADSO). We will then evaluate the data model in SAP
HANA Studio. Proceed with the following steps:
50
C r e a t in g a n d U s in g a D S O s 4
1 Right-click the Data Transfer Process folder and select Create Data
Transfer Process....
2 On the Create Data Transfer Process screen, you can change the
name of the DTP. Keep the default settings (see Figure 53).
• ED Data Transfer Processes CDSOADSO Create Data Tr... I
You could also change the DTP Type. As indicated in the type name, if
you want to schedule a DTP, you should select Standard (Can Be Sched
uled). However, if you want a real-time data acquisition, you need to
choose the DTP for Real-Time Data Acquisition type. Just keep in
mind that you can only use the DTP for Real-Time Data Acquisition
option when the DataSource is delta-enabled and supports real-time data
acquisition. Execute the DTP by clicking the Confirm button.
3 When the execution is complete, go to the new aDSO (INFADSO) via
Transaction RSA1 to manage the functions and look at the new request
overview. In the context menu of your aDSO, select Display data and
generate an aggregate view on all the key figures at the calendar year/
month level. You can repeat the steps to activate the data as shown in
the Creating an InfoCube-Based aDSO section to see the effect of repet
itive activation on your data models. Make note that all the data has
been moved to both the Table of Active Data /BIC/CDS0ADS02 as well as
the Change Log / BIC/CDS0ADS03.
51
C r e a t in g a n d U s in g a D S O s 4
- G eneral----------------------------------------------
Partition Specification:
HASH 1 LOGSYS, D_NW_PO, D_NW_IPOS
G eneral-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Partition Specification:
HASH 1 LOGSYS,D_NW_PO,D_NW_IPOS; RANGE[DYNAMIC: INTEGER-LIKE) REQTSN *
52
C r e a t in g a n d U s in g a D S O s 4
G en eral: W O P A D S O
▼ Modeling Properties
□ Activate/Compress Data
0 Write Change Log
□ Keep Inbound Data, Extract from Inbound Table
□ Unique Data Recnrrk
□ All Characteristics ai I Major Change a
□ Extended tables Keys are defined for the DataStore object (advanced) The explicit key
definition will be deleted.
▼ K eys Do you want to continue?
Name___________
S ' [OLOGSYS] So* Yes Wo
J £ - [OD_NW_PO] l_
Figure 5 6 Ignore W arning That Appears W hen You U ncheck the A ctivate/C om press Flag
53
C r e a t in g a n d U s in g a D S O s 4
Fields
© E
g) 0 General
Name: | REQUESTID
Add Inf oObject
Description: | New Field for R equest ID
Add Field
▼ Identify
Add Group
With: | Field Browse.
Delete
▼ Data Type
Keys...
Data Type: |CHAR ~T~| Length: 140
▼ Properties
Aggregation: | NONE B
Unit/Currency Field: jJ
M aster Data Check: | No M aster Data Check^No Reporting B
Conversion exit name:
6 Activate the aDSO and create the transformation as shown in the previ
ous sections. Again, use the transformation from data source Z_EPM_
PO to the classic DSO (Z_E_CDSO) as a template and make a copy of it,
54
C r e a t in g a n d U s in g a D S O s 4
8 In the transformation, you added a routine for the new field. Now assign
the logic by making the result equal to the request as shown in Figure 60.
RESULT = REQUEST. |
You can now activate the transformation and then create the DTP. Load
the data in F u l l M o d e . Then repeat the load and analyze the new
request overview in the context of the previous load. We are repeating
the load to see if the subsequent load is optimized.
9 Let's check the data we loaded into the tables related to WOPADSO
(write-optimized aDSO). To do so, we will go to the C a t a l o g folder in
SAP HANA Studio and look for table /BIC/W0PADS01. This table contains
all the records that we just loaded. We will also see other aDSO tables,
but they are generally empty until we change the behaviors of this one.
55
C r e a t in g a n d U s in g a D S O s 4
We can check the content of the key field REQUESTID by using the
D a t a P r e v i e w function.
56
C r e a t in g a n d U s in g a D S O s 4
We can now begin creating the field groups. Proceed with the following
steps:
1 Select the Details tab and choose Add Group, as shown in Figure 62.
Details: ACDADSO
Fields ▼ General
Name: | TIME
Description: | time|
2 Now create multiple groups. For each group, choose Add InfoObject
to assign the InfoObjects shown in Table 3.
I Group InfoObject I
CCTR OCO_AREA: controlling area
OCOSTCENTER: cost center
CO_DOC OCO_DOC_NO: CO document number
OCO_ITEM_NO: line of CO document
ODOC_DATE: document date
OPSTNG_DATE: posting date in this document
CO.ELEM OCOSTELMNT: cost element
ODB_CR_IND: sender/receiver indicator
CURR OCURTYPE: currency type
57
C r e a t in g a n d U s in g a D S O s 4
I Group InfoObject 1
VAL.TYP OVTSTAT: statistics indicator for value type
OVTYPE: value type for reporting
OMETYPE: key figure type
OVERSION: version
OVTDETAIL: detailing the value type
VAL.VIE OVALUATION: valuation view
KEYFIG AMOUNT: U## amount
OQUANTITY: quantity
UNIT OCURRENCY: currency key
OUNIT: unit of measure
TIME OFISCYEAR: fiscal year
OFISCVARNT: fiscal year variant
OFISCPER: fiscal year/period
0FISCPER3: posting period
3, Now that you've created the groups, you need to add them. Figure 63
shows the information for a cost center. You can use a similar method
to add other InfoObjects and groups.
Fields ▼ General
ffi B
Name:
Filter Pattern | Add InfoObject
Ld_______________ I 2J
General Details Settings
58
C r e a t in g a n d U s in g a D S O s 4
Repeat the process for each group. When you have finished, activate the
aDSO.
59
C r e a t in g a n d U s in g a D S O s 4
3, Select the ODP - SAP (Extractors) folder. In the folder, drill down to
your source system and right-click it. From the context menu, select
Display DataSource Tree (see Figure 66).
60
C r e a t in g a n d U s in g a D S O s 4
Delta Process &DD Additive extraction using extractor like LIS infostructures: ~
Direct Access No DTPs Allowed For Direct Access ▼
Real Time Real-Time Data Acquisition Is Not Supported ▼
Adapter Extraction from SAP System by Operational Data Provisi... ▼ |^> Properties
ODP Context DataSources Without ESH Modelng
Operational Data Provider 0C0_0M_CCA_9 Transaction Data...▼
Cost Centers: Actual Costs Using Delta Extraction
6 Activate and ignore any activation error that appears during this process.
Many times there may be buffer issues, and you may not be able to see
the data source that you just created. To remedy this, exit out of Trans
action RSA1 and then reenter. You data source should now appear.
Now let's create the transformation and DTP. This process is similar to
the process described in Section 4.1. We will use the newly created Z_
OCO_OM_CCA_9 as the DataSource in the Source of the Transfor
mation field, and ACDADSO (Actual Cost Details) as the name in the
61
C r e a t in g a n d U s in g a D S O s 4
Target of the Transformation field (see Figure 68). Click the Con
firm button when you have finished.
62
C r e a t in g a n d U s in g a D S O s 4
8 After you have saved and activated the transformation, you can create
the DTP. In the Create Data Transfer Process window, enter the
details shown in Figure 69.
9 Optional Step: You may want to load data for, say, a specific year, or
want to see data only in Euros. In such cases, you can put a filter in the
DTP. For this example, put a filter in the DTP on the Currency type and
Fiscal year/ period fields (see Figure 70).
63
C r e a t in g a n d U s in g a D S O s 4
64
C r e a t in g a n d U s in g a D S O s 4
65
C r e a t in g a n d U s in g a D S O s | 4
3, Select the Proposal tab and click Load Example Data (see Figure 73).
4 When you click Load Example Data next to the No. of Data Records
field, the system will load the data and display it.
5 Go to the Fields tab and check that the fields are correct. Make any cor
rections as required (see Figure 74).
DataSojrce ^ 1FlAT_nLE_DATAS0PRCE | FLAT_FILE_OATASQURCE
Source System 0 pc_file PC_FIIE ______________
Version O In Processng ▼ El Not Saved [EfiCompare with... I.|
Active Version Executable |§j Edted Version
General Info. Extraction Proposal Fields Preview
FieldAttrfcutes
Pos. Field Oesapt. D... T.. InfbOb)ec... Data Type Lngth Ded... Exter... L.. K.. Con... Format SS... Cur/Unit S.. Sel. Opts Feld Type
1 COSTCEIfTER Cost Center 1 V 0C0STCEWT CHAR 10 10 ALPHA E x cel
2 COST ELEHEHT 1 V 0C0STEUWT CHAR 10 10 J In te r w -
6 The data source is now ready to be activated. Ignore the warning in the
log display dialog box. Select the Preview tab, and choose Read Pre
view Data. You should see the flat file data.
Now let's create the aDSO that shoud be targeted for this flat file. Proceed
with the following steps:
1 Follow the same creation process shown in the subsections of Section
4.1. Remember that the the modeling template should be a standard
DSO in this case.
66
C r e a t in g a n d U s in g a D S O s | 4
2, In the Details tab of the aDSO, click the Add Group button. Add the
groups and InfoObjects shown in Table 5.
Group Name Description InfoObject
K E Y S K e y f i e l d s ► OFISCVARNT
► OFISCPER
► OCO_AREA
► COSTCENTER
► OCOSTELMNT
► ODB_CR_IND
► OCURRENCY
D A T A D a t a f i e l d s ► 0 F I S C P E R 3
► OFISCYEAR
► OVTSTAT
► OVTYPE
► OVTDETAIL
► OMETYPE
► OCURTYPE
► OVERSION
► OAMOUNT
67
Using aDSOs to Compare Actual and Plan Data | 5
68
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
69
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
Note
W are using Union as the Root O peration here because similar fields will
e
be assigned from several sources into one target field on the output struc
ture.
Now that we have created the CompositeProvider, we can add and com
bine the actual and plan data aDSOs. We'll be using the actual data
(ACDADSO) and plan data (PCDADSO) that we created in Section 4.
1 Go to modeling environment and click your CompositeProvider, as
shown in Figure 76.
a CompositeProvider
^ ^ ^ C P 4 A D S O ^ o n ^ ) s it^ r o v id e ^ o ^ D S O ^ J
70
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
2 On the next screen, select the Scenario tab to display the screen shown
in Figure 77.
<gi Scenario: CP4ADSO
Graphical [
/GDui \ Source Target
( Union )
|y a b Iv "
ffi < S > [Ul] (0+0+0)
3 On the left side of the Scenario tab, select the union item (Ul) and click
the Add icon as shown in Figure 78.
( a
COU1 — \
m
Union <30
[Add^l
4 When you click Add, the Add Provider dialog screen appears. On this
screen, you can search for your two aDSOs: ACDADSO and PCDADSO
(see Figure 79).
5 Select the InfoProviders listed in Matching Items to display the screen
shown in Figure 80.
6 Next, create the field assignments of the aDSOs for the CompositePro
vider. Under the Scenario tab, on the left side, select the Ul union
again. On the right side of the screen, right-click ACDADSO and select
Create Assignments (see Figure 81).
71
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
S c e n a rio : C P 4 A D S O
Graptvcal
a3 S c e n a rio : C P 4 A D S O
Source
mb
b
£ [o : >_AREA]Contro»ngare4
0 & (CUf P] Currency <: * 0 )
£ [OCURTYPE] Currency Type
0 & [TIME] time 4*0)
A (OfISCPER] fiscal year / perod
>ER3] Postng period
A [OfISCVARNT] fiscal year variant
A [CflSCYEAR] fiscal year
0 & (UNIT) un*s (2*0)
i f [OCUftRENCY; Currency key
i f [OUMT] Ur* o f measure
72
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
7. When you click Create Assignments for ACDADSO, your screen should
look like Figure 82. It shows the assignments that you made in previous
steps between the actual cost aDSO and CompositeProvider.
I Graphical 1
S o u rc e T arg et
It 0 e F
C © ui S o u rc e T arg et
Union
r D 0 h
B <S)[U l] (9+0)
B - & [CCTR] Cost Center (2+0)
£ Remove Assignments
-
ACDADSO
& [OCOSTCENTER) Cost Center
DataStore Object (.. ■—£ [0FISCPER3] Posting period S [OCO_AREA] Controlling area
? £
Actual Cost Detail?
□
[OFISCYEAR] Fiscal year E & [CURR] Currency (1+0)
B - & [KEYS] Key Fields (6+0) :... S [OCURTYPE] Currency Type
t_ i PCD A D SO <3° S [OCOSTCENTER] Cost Center B & [TIME] ttn e (4+0)
1_ DataStore Object (.. S [OCO_AREA] Controlling area j |£ [OFISCPER] Fiscal year /period
Plan Cost Details a... Z?[OCURRENCY] Currency key i & [OFISCVARNT] Fiscal year variant
j-S [ODB.CRDJND] Returns item !£ [0FISCPER3] Posting period
[OFISCPER] Fiscal year /period ■—£ [OFISCYEAR] Fiscal year
£ [OFISCVARNT] Fiscal year variant B & [UNIT] units (2+0)
h £ [OCURRENCY] Currency key
Z ? [OUNIT] Unit of measure
73
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta | 5
9 . The screen shown in Figure 84 appears for PCDADSO. This is the final
mapping or assignment for the aDSO PCDADSO.
Graphical
S o u rc e T a rg e t
p m0 F
B U [PCDADSO] Plan Cost Details aOSO (0+9) B <3D [u i] (i+ 9 )
0 & [DATA] Data Fields (0+3) (3 & [CCTR] Cost Center (0+2)
& [OCURTYPE] Currency Type - f " J P [OCOSTCENTER] Cost Center
I £ [0FISCPER3] Posting period & [OCO_AREA] Controling area
- [OFISCYEAR] Fiscal y e a r------------- 0 & [CURR] Currency (0+1)
0 & [KEYS] Key Fields (0+6) j— - K J [OCURTYPE] Currency Type
£ [OCOSTCENTER] Cost C e n te r------ (3 & [TIME] time (0+4)
& [0CO_AREA] Controling a r e a ------ £ [OFISCPER] Fiscal year / period
j d [OCURRENCY] Cu-rency k e y ------- |— f™J p [OFISCVARNT] Fiscal y ear variant
& [0D6_CRD_INDj Returns item — -f-£ [0FISCPER3] Posting period
[OFISCPER] Fiscal year / period — — I— L £ [OFISCYEAR] Fiscal year
/V (OFISCVARNT] Fiscal year variant E £> [UNIT] units (1+1)
— d [OCURRENCY] Currency key
~ d [OUNIT] Unit of m easure
0 & [KEYS] Key Fields (0+1)
-------- K J [0D6_CRD_IND] R etu rm item
1 0 . Switch to the Output tab. Under the Cost Center folder, right-click
OCOSTCENTER and select Navigation Attributes (see Figure 85).
Com positeProvider Fields ▼ General
74
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
12. Before you activate the CompositeProvider, you need to make sure to
verify that the navigation attributes that you added are present in
the CompositeProvider. To do so, go to the O utput tab and look for
OCOSTCENTER under the Cost Center folder of View Field area (see
Figure 87).
Filter p a tte rn
View Field
0 £ > [CCTR] C o s t C e n te r
TCENTERl Cost Center
[OCO_AREA] Controlling a re a
0 & [CURR] Currency
& [OCURTYPE] Currency Type
□ & [TIME] time
£ ' [OFISCPER] Fiscal year / period
Z* [OFISCVARNT] Fiscal y ear variant
Z* [OFISCPER;:] Posting period
£ [OFISCYEAR] Fiscal year
0 & [UNIT] units
Z f [OCURRENCY] Currency key
Z2f [OUNIT] Ur*t of m easure
0 £ » [KEYS] Key Fields
& [ODB_CRD_IND] R eturns item
General Scenario | O u tp u t!
75
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
x
[show Preview |
i t e P r o v i d e r C A N BE A D D E D TO A N O T H E R C O M P O S I T E P R O V I D E R checkbox.
76
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
Note
are used to consume other analytic views, attribute views,
C a lc u la tio n v ie w s
calculation views, and base column tables. These are used to perform com
plex calculations that are not possible w ith other types of information views.
2 On the New Information View screen, fill out the details of the calcu
lation view using the information in Figure 89. Make sure the calcula
tion view type is Graphical and that the Data Category is DIMEN
SION. A calculation view of type dimension ensures the following:
The default node is a projection node.
The calculation view is not available for reporting.
The output nodes are for attributes only, not for measures (no hier
archy because this is for master data).
The view is consumable only with SQL.
3 Click Finish when complete.
77
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
Figure 8 9 Filling in Details for Calculation View with Data Category Dimension
78
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
5, Add table CSKS (Cost Center Master Data) as the base table of the project
node. To do this, select the Add Objects icon (see Figure 91).
7. When you add the table, a warning appears that says No colum ns
79
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
—"U---HTFffl
JSemantics wMANDT
KOKRS
KOSTL
Baa Projection DATBI
vtr”cSKS ||______________ BUKRS
o c o lu m n s a d d e d t o t h e o u tp u t!
I - .W E P A ir
8 To mark the fields, you can just double-click the dots in front of the
fields (see Figure 94) or choose Add All To Output in the Details pane
(see Figure 95).
S c e n a rio <±>* © ♦ D e ta ils
<1 v ...
(3*... <0 "T R A IN IN G ".C S K S ▼
a?
A g g r-
VERAK USER
TXJCD
£\
R an k
TT "T R A IN IN G '.C S K S
D a ta P re v ie w
M ANDT
wKOKRS R e p la c e w ith D a ta S o u rc e ...
•K O S T L
A d d All T o O u t p u t
D A TBI
BUKRS S h o w D e s c rip tio n
PftCTR
VERA K
>/ S h o w C o m p le te N a m e
D isp lay ►
vVE R AKU SER
TXJCD X R em ove
P r o p a g a t e t o S e m a n tic s
E xtract S e m a n tic s
S e lec t All T a b le s
S e le c t All Jo in s
D e s e le c t All
P r o p e rtie s
80
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta | 5
9 Define the KOKRS (CO Area) and KOSTL (Cost Center) fields and key
attributes. This allows you to keep them as primary keys, which you
will use in the Adding a Calculation View to a CompositeProvider sec
tion. To define these keys, click the semantics node in the S c e n a r i o
pane (see Figure 96).
Scenario ®+ 9* Details
<1
Columns(9) View Properties Hierarchies Parameters,/Variables
<0
Local
CD
Join
1 * 3 t 5) ° g :!9j Z*, ' B C D * ' A. ▼
s -------- O ------- |
Union " Projection Type Key Name Label Aggregation Variable Semantic Type Label Column Hidden
““ CSKS 1 1 □ MANDT MANDT □
■ 4 □ KOSTL KOSTL □
Proje...
n0 & 4 □ KOKRS KOKRS □
Aggr- 4 □ DATBI DATBI □
□ BUKRS BUKRS □
£1
Rank □ PRCTR PRCTR □
J 4 □ VERAK VERAK □
□ VERAK... VERAK.U... D
□ TXJCD TXJCD □
] 4
10. Select the Key checkboxes for the fields for which you want key attri
butes (see Figure 97).
Type Key N am e L ab el A g g r e g a tio n V a ria b le S e m a n tic T y p e L abel C o lu m n H id d e n
□ M AN DT M ANDT □
4 0 KOSTL KOSTL □
L i KOKRS KOKRS | [ ]
1 * □ DATBI DATBI □
4 □ BUKRS BUKRS □
4 □ PRCTR PRCTR □
4 □ VERAK VERAK □
4 □ VERAK... VERAK_U... □
□ TXJCD TXJCD □
81
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta | 5
J o b L o g S3 ' H is to ry P ro g re s s
C u rren t H is to ry
Jo b T y p e S y s te m U. S u b m it te d A t S ta tu s
( A c tiv a tio n _ HDB S. W e d A pr 06 17:23:26 CEST 2 0 1 6 C o m p l e t e d s u c c e s s fu lly
13. Once the calculation view of type dimension is active, you can preview
the data and see the raw data. To do this, select O p e n i n D a t a P r e v i e w
E d i t o r from the dropdown menu (see Figure 99).
@ IM - (» l © < - ^ [D ® ^ ^
O p e n in D a ta P re v ie w E ditor
E3 O p e n in SQL E d ito r
14. On the next screen, select the Raw Data tab to see the exact data with
out formatting or filtering (see Figure 100).
ill Analysis nr Distinct values “ Raw Data i Show
MANDT KOKRS KOSTL DATBI BURKS GSBER WERKS VERAK VERAK.USER PRCTR
100 003 000002310 Dec 31, 9999 003 SEK ABC 000002310
100 003 000002360 Dec 31, 9999 003 SEK DEC 000002360
100 003 000002320 Dec 31,9999 003 SEK PAT 000002320
100 003 000002460 Dec 31, 9999 003 SEK CAT 000002460
100 003 000002860 Dec 31,9999 003 SEK SAT 000002860
IOO 003 000002760 Dec 31, 9999 003 SEK HAT 000002760
100 003 000003360 Dec 31,9999 003 SEK VINAY SINGH 000003360
100 003 000003380 Dec 31, 9999 003 SEK Y MEHTA 000003380
100 003 000001360 Dec 31, 9999 003 SEK P TALWADE 000001360
100 003 000008360 Dec 31, 9999 003 SEK FRANK ST 000008360
100 003 000007360 Dec 31, 9999 003 SEK SANJEEV KE... 000007360
This completes our calculation view creation based on the master data.
Let's now move on to creating a calculation view for transactional data.
82
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
Unlike the calculation view in the previous section, now we want to cre
ate a calculation view based on transactional data. This means we need to
create a calculation view of type cube with star join.This makes it manda
tory to have at least one column as a measure and another column as an
aggregation node. Let's run through the process of creating a calculation
view of type cube with star join:
1 Log on to SAP HANA Studio and right-click your package (in which you
want to create the calculation view). In the context menu that appears,
select N e w • C a l c u l a t i o n V i e w .
2 On the N e w I n f o r m a t i o n V i e w screen, fill in the details of the calcula
tion view. Make sure the calculation view type is G r a p h i c a l and that
the D a t a C a t e g o r y field is set to CUBE. Then select the W i t h S t a r J o i n
checkbox to make this a star join node. Click F i n i s h (see Figure 101).
83
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
< *•!
<0J
(5) _l Semantic*
Join
■ 4 ■
Union , + ' s,ar Jo,n
Proje... ■ a
Q ° | Projection]
Aggr.TT
a
Rank
Figure 102 Semantic and Star Join Created; Drag and Drop Projection Node
4 Add table Ocostcenter to the projection node as the base table for the
calculation view. Click the Add O b j e c t s + icon and find the table Ocost
center to add (see Figure 103).
5 Enter the table name in the Find dialog window, as shown in Figure
104. Click OK to perform the search operation.
Pro|cctK>n_1
© Find l-l°M
T y p e t h e o b je c t n a m e t o s e a r c h fo r
M a tc h in g ite m s:
B SAPCIA
84
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
6 Once you have searched for and added the table, find the Details pane
of table Ocostcenter, as shown in Figure 105.
S c e n a rio © ♦ ©t D e ta ils
<1
a?
A g g r...
OOBJ_CURR_KEY
OPROFIT_CTR_KEY
3
R an k S* Proje ction_1
OPROFIT_CTR_SID
ORESP.USER.KEY
ORT_LOCATIO_KEY
v QEfW.0A;QCQSTC£. O RT.LOCATIO.SID
----- -O------
7. Mark the fields you want to have as output. In this example, as shown
in Figure 106, mark all of them. To do this, either click the dots in front
of the individual fields or choose the Add All To Output option in the
Details pane.
( ORESP_USER_KEY
T y p e : NVARCHAR
Draw a connection from the Projection.! node to the star join node as
shown in Figure 107.
85
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta | 5
86
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta | 5
2 Mark the columns that you want to have as the output by either select
ing the dots in the front of the individual column names or choosing the
A d d A l l To O u t p u t option in the D e t a i l s pane (see Figure 109).
|a P r o je c t io n ..!
v O B U S .A R E A .K E Y OBUS_AREA_KEY
O C O M P .C O D E .K E Y OCOMP_CODE_KEY
OCOSTCENTEFt.K EYOCOSTCENTER.KEY
O C O ST C EN TER .SID O C O ST C EN TER SID
O C O .A R EA .K EY OCO_AREA_KEY
O C O .A R E A .S ID O C O .A R E A .S ID
^ O L O G S Y S .K E Y OLOGSYS.KEY
O O B J.C U R R .K E Y OOBJ_CURR_KEY
O P R O F II CTR.K EY OP R O F IT.C TR .K EY
O P R O F IT .C T R .S ID O P R O r iT .C T R .S D
w O R T.LO C A TIO .K EY OR T.LOC ATIO.KEY
O R F S P U S F R KEY ORESP_USER_KEY
O R T .IO C A T IO .S ID OR T_LO C A Tl6_SID
3, You now have two columns from the two different calculation views in
the D e t a i l s pane. The next task is to connect the different fields. For
this example, connect OCO_AREA_SID from Projection.! to KOKRS
(the primary key you defined as CO.AREA) and the OCOSTCENTER.
KEY in Projection.! to the KOSTL (the primary key you defined as
COST CENTER) using a referential join (see Figure 110).
4 & Columns
DEMOnDEMO CVDIM MD01 " OCOMP.CODE.KEY: Projection. I.OCOMP.Cl
06US.AREA.KEY O0USAREAJ EY
VMANDT MANOT ° OCOSTCENTER.SO: P'sectionJ.OCOSTCEt
OCOMP.CODE.KEY i K OMP.CODE KEY
OCOSTCENTER.KEY0C O :JC FNTER.KFY ** KOKRS KOKRS jj OCO.AREA.SID: Projection. I.OCO.AREA.SIl
OCOSTCENIER.SIDOCOSTCENTER.SID ' irKOSTL KOSTL “ OLOGSYS.KEY: Projection. UX.OCSYS.KEY
* OCO.AREA.KEY OCO.AREA.KEY >DATBI DAT8 I “ OOBJ.CURR.KEY: Projection_1.OOBJ.CURR.
OCO.AREA.SID OCO.AREA.SID * BURKS BURKS [ OPROFIT.CTR.KEY Projection. 1. OPROffT.C
OlOGSYS KEY 01 OGSYS.KFY ' * GSBER GSBER ' [ OPROFIT.CTR.SID Projection. J. OPROftT. C
OOBJ CURR KEY OOBJ CURR KEY %-WERKS WERKS " ORT LOCATIO KEY ProjectionJ. ORT l CCA
OPROEII.CTR.KEY OPROFIT.CTR.KEY vVEftAK VERAK
OPROHT.CTR.SID OPROFIT.CTR.SID ^VERAK.USER
vPRCTR
VERAK.USER
PRCTR
h Properties
■ m-
ORI EOCAIIO KEYORTJOCATIO.KFY
ORESP USER KEY ORESP USER KEY J General
ORI IOCAIIO.SID ORT LOCATIO SID
I Property Value
Left Ele... Projection.l...
Right EL. DEMO::DEM...
Join Type Referential
: jr : j u .i ...______________________
4 Ifyou have any difficulty setting the joins or dragging and joining them
to the right table, you can double-click the join to open the E d i t J o i n
screen, where you can more easily define your joins (see Figure 111).
87
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
m E d it J o in
_ □ x
E d it J o in
E d it j o i n d e fin itio n
L eft T a b l e R ig h t T a b le
L e ft C o lu m n R ig h t C o lu m n
OBUS_AREA_KEY — MANDT
O C O M P.C O D E.K EY M kokrs
OCOSTCENTERJCEY KOSTL
OCOSTCENTER.SID ^ DATBI
O C O .A R EA .K EY ------ BURKS
OCO_AREA_SID w GSBER
OLOGSYS.KEY WERKS
OOBJ.CURR.KEY ^ VERAK
OPROFIT_CTR_KEY VERAK.USER
O PR O FIT.C TR .SID ftB PR C TR
OR T.LOCATIO.KEY
ORESP_USER_KEY
ORT_LOCATIO_SID
P ro p e rtie s
J o in T y p e : R e fe re n tia l V C a rd in a lity : V
□ D y n a m ic J o in L a n g u a g e C o lu m n :
T e m p o r a l P r o p e rtie s
T e m p o r a l C o lu m n : ___________v j F ro m C o lu m n :
T e m p o r a l C o n d itio n : ______________ v j T o C o lu m n : v
V a lid a te J o in | | OK [ C ancel
88
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta 5
1 Select the star join node, and then on the screen that will appear choose
the checkbox for star join, as you did previously. Then go to the O u t p u t
area. Right-click the C a l c u l a t e d C o l u m n s folder in the O u t p u t area
and select N e w C a l c u l a t e d C o l u m n .
2 On the C a l c u l a t e d C o l u m n page, place the logic/expression on the
basis of which the column should be calculated. On this screen, define
the N a m e (F1SCYEAR), D a t a T y p e (NVARCHAR), and C o l u m n T y p e
(Attribute) (see Figure 112).
89
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta | 5
3 In the E x p r e s s i o n tab, enter the expression that is the basis for your cal
culated column using the Expression Editor. In this example, the calcu
lated column will be calculated based on posting data. Therefore, use
the expression leftstr(“PSTING_DATE” ,4), as shown in Figure 112 to
express this.
4 For FISCPER3, follow the same steps, but with the following different
conditions:
N a m e : FISCPER3
6 Now that you've created your calculated columns, assign the measures
and attributes to them. You can do this using the A u t o A s s i g n option.
Go to the semantic node, and in the D e t a i l section, select the A u t o
A s s i g n button (see Figure 113).
Figure 113 Assignment of Measures and Attributes via Auto Assign Button (1)
90
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta | 5
Local
Show: All
________ d
g^ / - 4 -
z
Type Key Label Aggregation Variable Semantic Type Lab«l Column Hidden Value Help Column Conversion Functions
i
□ OCOM... OCOMP_... □
— □ OCOS... OCOSTCE- Sum □
— □ oco,... OCO.ARE... Sum □
□ OlOGS... OLOGSYS.... □
□ OOBJ_... 0O8J.CU... □
□ OPROF... OPROFIT_._ □
□ OPROF... OPROFIT_._ Sum □
□ ORT.L... ORT.LOC... □
4
□ ORESP... ORESP.US... □
tUH □ ORT.L... ORT.LOC... Sum □
□ FISCY... FISCYEAR □
□ FISCP... FISCPER3 □
— LL n
Figure 114 Assignment of M easures and Attributes via Auto Assign Button (2 )
iteProvider (DEMO_CPU) and click OK. Do the same to search and add
the calculation view (DEMO_CVSTAR_TD01).
2 The basic structure is ready now. For the final step, assign the fields
from the calculation view to the CompositeProvider. Figure 115 shows
the search and field assignments for the CompositeProvider.
3 Perform the field mappings shown in Table 6.
91
U s in g a D S O s t o C o m p a r e A c t u a l a n d P la n D a ta | 5
Graphical
ccui Target
Urwon
r .1 ae 0 F a a
0 “ 1(OEMO.CPU] Plan / Actual Costs (0+25) 3 <B> (Ul) (0+25)
E ■ TP] Cost Center ►-») 3 ^ ICCTft] Cost Center :o*4)
-1} OCMO CPU
B ................ .........t t i f i N X l L Afm' "^Cortrolngarea
C o t T p o s l e P r o v i d e r
[UOO_COSTC_OeUS_AP£A] NAV Busmess X 5 IJOO.COST'.] UOOCost Center
UOOttsn /Actual C [UOOCOSTC_OCOMP_COC€] NAV: Ccrr©: ----------;— - L [OetrS.AREA] WAV: Business area
X 5 [OCOMP_COOE] NAV: Company code
DEMO_CVSTAR_TD01 3 ^ [CO.OOC] CO Document (:*-♦>
c a t c u > a t t o n v « w
f [OCO.DOC.WO] CO Document Number
m0 8 Cost Cert X 5 [- --' 1T£M •• ) Use Item of CO Oocune
A [OOOC.OATH Document Date
Figure 115 Field M apping to Enhanced CompositeProvider with Calculation View Star Join
92
W h a t ’ s N e x t? 6
Table 6 Field M apping b etw een Calculation View and CompositeProvider (Cont.)
6 W h a t's N e x t?
aDSOs are just one of the perks of running SAP BW on SAP HANA, and
one of the many InfoProviders available in SAP BW. When running SAP
BW on SAP HANA, it's important to understand the changes that will hap
pen within core processes such as reporting, data modeling, and adminis
tration. For data modeling in particular, many changes occur when SAP
HANA comes into the picture, beyond the speed and power of aDSOs.
93
W h a t ’ s N e x t? 6
In addition to this book, our editors picked a few other SAP PRESS pub
lications that you might also be interested in. Check out the next page to
learn more!
94
M o r e fro m SAP PRESS
Brogden, et al.
C reating D ocum ents and Q ueries in SAP BusinessObjects W e b In telligence
ISBN 9 7 8 -1 -4 9 3 2 -1 3 5 4 -2 | $ 9 .9 9 | 56 pages