SlideShare a Scribd company logo
1 of 35
Download to read offline
SAP How-to Guide
Business Analytics
SAP HANA™ Appliance
SAP How-to Guide
Business Analytics
SAP HANA™ Appliance
Applicable Releases:
SAP BW 7.5 SP5 powered by SAP HANA and BW/4HANA SP01
Author:
Anna Coniglio
Version 1.0
January 2017
How to use ABAP CDS for Data Provisioning in BW
© Copyright 2017 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form
or for any purpose without the express permission of SAP AG. The
information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors
contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered
trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p,
System p5, System x, System z, System z10, System z9, z10, z9, iSeries,
pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390,
OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power
Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER,
OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS,
HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex,
MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and
Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other
countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either
trademarks or registered trademarks of Adobe Systems Incorporated in
the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open
Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame,
and MultiWin are trademarks or registered trademarks of Citrix Systems,
Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks
of W3C®, World Wide Web Consortium, Massachusetts Institute of
Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc., used
under license for technology invented and implemented by Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP
BusinessObjects Explorer, StreamWork, and other SAP products and
services mentioned herein as well as their respective logos are
trademarks or registered trademarks of SAP AG in Germany and other
countries.
Business Objects and the Business Objects logo, BusinessObjects,
Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other
Business Objects products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of Business
Objects Software Ltd. Business Objects is an SAP company.
Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere,
and other Sybase products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of Sybase, Inc.
Sybase is an SAP company.
All other product and service names mentioned are the trademarks of
their respective companies. Data contained in this document serves
informational purposes only. National product specifications may vary.
The information in this document is proprietary to SAP. No part of this
document may be reproduced, copied, or transmitted in any form or for
any purpose without the express prior written permission of SAP AG.
This document is a preliminary version and not subject to your license
agreement or any other agreement with SAP. This document contains
only intended strategies, developments, and functionalities of the SAP®
product and is not intended to be binding upon SAP to any particular
course of business, product strategy, and/or development. Please note
that this document is subject to change and may be changed by SAP at
any time without notice.
SAP assumes no responsibility for errors or omissions in this document.
SAP does not warrant the accuracy or completeness of the information,
text, graphics, links, or other items contained within this material. This
document is provided without a warranty of any kind, either express or
implied, including but not limited to the implied warranties of
merchantability, fitness for a particular purpose, or non-infringement.
SAP shall have no liability for damages of any kind including without
limitation direct, special, indirect, or consequential damages that may
result from the use of these materials. This limitation shall not apply in
cases of intent or gross negligence.
The statutory liability for personal injury and defective products is not
affected. SAP has no control over the information that you may access
through the use of hot links contained in these materials and does not
endorse your use of third-party Web pages nor provide any warranty
whatsoever relating to third-party Web pages.
SAP “How-to” Guides are intended to simplify the product implement-
tation. While specific product features and procedures typically are
explained in a practical business context, it is not implied that those
features and procedures are the only approach in solving a specific
business problem using SAP NetWeaver. Should you wish to receive
additional information, clarification or support, please refer to SAP
Consulting.
Any software coding and/or code lines / strings (“Code”) included in this
documentation are only examples and are not intended to be used in a
productive system environment. The Code is only intended better explain
and visualize the syntax and phrasing rules of certain coding. SAP does
not warrant the correctness and completeness of the Code given herein,
and SAP shall not be liable for errors or damages caused by the usage of
the Code, except if such damages were caused by SAP intentionally or
grossly negligent.
Disclaimer
Some components of this product are based on Java™. Any code change
in these components may cause unpredictable and severe malfunctions
and is therefore expressively prohibited, as is any decompilation of these
components.
Any Java™ Source Code delivered with this product is only to be used by
SAP’s Support Services and may not be modified or altered in any way.
Document History
Document Version Description
1.10 << Enter your summary of changes in this version >>
1.00 First official release of this guide
Typographic Conventions
Type Style Description
Example Text Words or characters quoted
from the screen. These
include field names, screen
titles, pushbuttons labels,
menu names, menu paths,
and menu options.
Cross-references to other
documentation
Example text Emphasized words or
phrases in body text, graphic
titles, and table titles
Example text File and directory names and
their paths, messages,
names of variables and
parameters, source text, and
names of installation,
upgrade and database tools.
Example text User entry texts. These are
words or characters that you
enter in the system exactly
as they appear in the
documentation.
<Example
text>
Variable user entry. Angle
brackets indicate that you
replace these words and
characters with appropriate
entries to make entries in the
system.
EXAMPLE TEXT Keys on the keyboard, for
example, F2 or ENTER.
Icons
Icon Description
Caution
Note or Important
Example
Recommendation or Tip
Table of Contents
1. Introduction ..................................................................................................................... 4
2. Prerequisites.....................................................................................................................5
2.1 Minimum system Requirements ........................................................................................ 5
2.2 Creating the ODP Source system....................................................................................... 5
2.3 Application Development using ABAP CDS...................................................................... 5
3. Background.......................................................................................................................5
3.1 Delta with deletion.................................................................................................................8
4. Scenario 1 – Directly Access CDS-ODP source from BW .................................................. 8
4.1 Step 1 – Inspect CDS View...................................................................................................9
4.2 Step 2 – Create Datasource .............................................................................................. 10
4.3 Step 3 – Consume CDS view within BW modeling tools...............................................13
5. Scenario 2 – Delta Extraction of CDS-ODP source to BW ................................................ 18
5.1 Step 1 – Create CDS View .................................................................................................. 18
5.2 Step 2 – Create BW DataSource ......................................................................................20
5.3 Step 3 – Create BW Dataflow............................................................................................23
5.4 Optional Step 4 – Activate Real-Time Streaming.........................................................28
6. Replacing BW Extractors with CDS views in S/4HANA ................................................... 29
7. Appendix........................................................................................................................ 30
How to integrate external data into SAP BW powered by SAP HANA
4 | P a g e
1. Introduction
With the availability of the SAP HANA platform there has been a paradigm shift in the way business
applications are developed at SAP. The rule of thumb: Do as much as you can in the database to get
the best performance.
To take advantage of the SAP HANA Database, SAP has introduced a new concept for data
modelling called Core Data Service (CDS) which helps to facilitate the push-down of processes to
the SAP HANA database. Data models based on CDS serve as central definitions that can be used
in many different domains, such as transactional and analytical applications.
CDS is defined using an SQL-based data definition language (DDL) leveraging standard SQL with
some additional concepts, such as associations, which define the relationships between CDS views,
and annotations, which direct the domain-specific use of CDS artefacts. There are two types of
CDS available, the HANA CDS (defined in XS engine) and ABAP CDS.
CDS has become the cornerstone for application development at SAP. A key example of this can be
seen in S/4HANA which uses CDS to provide both core transactional functionality as well as
analytical content for reporting.
From release BW 7.5 SP05 powered by HANA (BW/4HANA SP01), ABAP based CDS views can be
used for data extraction. It is the purpose of this document to provide a step-by-step guide on how
to configure this scenario. This paper will cover 2 use cases
- Direct access to a CDS view from BW and
- Delta extraction from a CDS view to BW
The following diagram describes these two scenarios
How to integrate external data into SAP BW powered by SAP HANA
5 | P a g e
2. Prerequisites
2.1 Minimum system Requirements
Extracting data using a CDS view and the ODP framework requires a minimum version on both the
source (ABAP) and target (BW) systems
Source Requirements
Full Extraction or Direct Access scenarios require a minimum of NetWeaver 7.5 SP04 or equivalent.
Delta Extraction scenarios require a minimum of NetWeaver 7.5 SP05 or SAP BW/4HANA SP01
Target Requirements
All ODP-CDS Extraction scenarios require a minimum of NetWeaver 7.3 SP08 or equivalent (ODP
recommendation)
2.2 Creating the ODP Source system
For the extraction of data into BW, ensure an ODP source system of type ABAP_CDS is available to
connect to the source system. This may require configuration by the system administrator.
For further information on setting up the ODP Source System see the help documentation Creating
an ODP Source System
2.3 Application Development using ABAP CDS
CDS views in S/4HANA should be developed in line with the customer development standards and
guidelines. Discussion into the correct usage of CDS views and annotations is beyond the scope of
this documentation
For further information see the help documentation
See ABAP CDS Help
See ABAP CDS Development User Guide
3. Background
Data extraction is enabled within the CDS definition through a suitable Analytics Annotation.
The following annotations are relevant for data provisioning purposes and are applicable only from
NetWeaver 7.5 SP05.
Analtics : {
dataExtraction : {
enabled : boolean default true;
delta : {
byElement : {
name : RefToElement;
maxDelayInSeconds : Integer default 1800;
detectDeletedRecords: boolean default true;
ignoreDeletionAfterDays : Integer; }; }; }; };
How to integrate external data into SAP BW powered by SAP HANA
6 | P a g e
Analytics.dataExtraction.enabled
Application developers can use this
annotation to mark views that are suitable
for data replication (for example, delta
capabilities must be provided for mass
data).
Scope: #VIEW
Evaluation Runtime (Engine): Specifies
which view will be exposed in replication
scenarios.
Note This view must be annotated with
Analytics.dataCategory (except the
value AGGREGATIONLEVEL).
Value Description
True The view is suitable for data
replication. This is the default
setting.
False The view is not suitable for
data replication.
Analytics.dataExtraction.delta.byElement.name
Application developers can enable the
generic delta extraction with this
annotation. This is the element that should
be used for filtering during generic delta
extraction. This element can either be a
date (ABAP type DATS) or a UTC time
stamp.
Scope: #VIEW
Evaluation Runtime (Engine): Specifies
which view will be exposed in replication
scenarios.
Value Description
True The view is suitable for data
replication. This is the
default setting.
How to integrate external data into SAP BW powered by SAP HANA
7 | P a g e
False The view is not suitable for
data replication.
Analytics.dataExtraction.delta.byElement.maxDel
ayInSeconds
There is always a time delay between
taking a UTC time stamp and the database
commit. This annotation specifies the
maximum possible delay in seconds.
Scope: #VIEW
Evaluation Runtime (Engine): Specifies
which view will be exposed in replication
scenarios.
Value Description
Integer Maximum number of
seconds between taking the
time stamp and the
successful database commit.
The default is 1800 seconds.
Analytics.dataExtraction.delta.byElement.
detectDeletedRecords
Value Description
True Delta extraction captures
deleted records
False Delta extraction does not
capture deleted records
Analytics.dataExtraction.delta.byElement.
ignoreDeletionAfterDays
Maximum retention of deleted data based
on number of days
Value Description
Integer Number of days delta queue
captures deleted records.
Further information and a full list of analytical annotation go to the Analytical Annotations Help
Documentation.
How to integrate external data into SAP BW powered by SAP HANA
8 | P a g e
3.1 Delta with deletion
The CDS analytics annotation supports delta extraction with deletion. When delete records are
requested, an additional table is created, storing key fields which have already been extracted.
During the extraction process the key fields of the source table and extracted records table are
compared and delete records are generated.
4. Scenario 1 – Directly Access CDS-ODP source
from BW
In this scenario data will be extracted from a standard CDS view in S/4HANA. The CDS view
chosen represents Cost Center Activity Type master data, I_COSTCENTERACTIVITYTYPE.
I_COSTCENTERACTIVITYTYPE is delivered as part of the Virtual Data Model (VDM) in S/4HANA
Analytics and in this case already contains the data extraction annotation allowing the view to be
used for data extraction. The reference to this annotation is highlighted below
Please note that because the delivered CDS view does not include the delta extraction annotation,
only full extraction or direct access can be used in this scenario. Also keep in mind that not all VDM
CDS views will contain the dataextraction:enabled annotation, this will only be used where
extraction is possible and appropriate.
Scenario 1 will detail the process described below
How to integrate external data into SAP BW powered by SAP HANA
9 | P a g e
4.1 Step 1 – Inspect CDS View
For this scenario, a pre-delivered CDS view will be used for data extraction. Although the object
itself is already configured, some information from the CDS view is required and gathered in Step 1.
4.1.1 In the HANA studio navigate to
the S/4HANA project using the
ABAP Development
Perspective
4.1.2 In the S/4HANA project, locate
the CDS view which should be
used for data extraction.
In this case
I_COSTCENTERACTIVITYTYPE
will be used
Note: If using a standard CDS
View ensure the
‘dataExtraction.enabled:true’
annotiation is available. The
dataExtraction annotation is
used in standard VDM where
data extraction from the view
makes sense.
How to integrate external data into SAP BW powered by SAP HANA
10 | P a g e
4.1.3 In the CDS view definition
make the note of the CDS view
name, Analytics data Category
and SQL view name. This
information will be used in
subsequent steps
In this case,
The CDS view name =
I_CostCenterActivityType
Data Category = DIMENSION
SQLViewName = IFICCActTyp
4.2 Step 2 – Create Datasource
4.2.1 Navigate to the BW/4HANA
Project using the BW
perspective
4.2.2 Under the DataSources
folder find the ODP_CDS
source system for the
S/4HANA system
Note: As data extraction is
client dependent, ensure
the correct client for the
system is selected – in this
case 910 is used
How to integrate external data into SAP BW powered by SAP HANA
11 | P a g e
4.2.3 Right click on the Source
System object and select
New -> DataSource
4.2.4 In the DataSource creation
screen, select the browse
button to use the
Operational Data Provider
as a template
How to integrate external data into SAP BW powered by SAP HANA
12 | P a g e
4.2.5 In the browse screen use
the SQLView name
identified in the previous
section to find the ODP
source and click OK.
Note: You must use the
SQL view name, not the
CDS view name,
4.2.
6
The DataSource input
screen will be automatically
filled with the information
relating to the ODP source.
Click Finish to continue the
DataSource configuration
How to integrate external data into SAP BW powered by SAP HANA
13 | P a g e
4.2.7 The fields of the CDS view
will be automatically
included in the DataSource
definition. Save and
Activate the Datasource.
Make note of the
Datasource name for the
next step in this scenario.
In this case the DataSource
name is IFICCACTTYP_P
The CDS view data can now be used within BW models and dataflows.
4.3 Step 3 – Consume CDS view within BW modeling tools
BW/4HANA offers a variety of data acquisition options. In this scenario direct access (through the
ODP Framework) or a more traditional full data load scenario could be used. The following section
will demonstrate the consumption of the data through direct access using an Open ODS View.
4.3.1 Navigate to the
BW/4HANA system using
the BW perspective
How to integrate external data into SAP BW powered by SAP HANA
14 | P a g e
4.3.2 Right click on the
BW/4HANA project and
select New -> Open ODS
View
How to integrate external data into SAP BW powered by SAP HANA
15 | P a g e
4.3.3 In the Open ODS View
creation screen fill details
for:
- InfoArea,
- Technical name
- Description
Choose the Semantic
type for the Open ODS
View.
In this case the CDS view
in the S/4HANA system
has been defined with the
DIMENSION annotation
(identified in Step 1), so
this Open ODS will be for
Master Data.
Note: CDS views with
analytics annotation type
AGGREGATIONLEVEL
cannot be used for data
extraction.
Select the source type.
This example will use
direct access from a
DataSource so
DataSource(BW) is
selected.
Click Next.
How to integrate external data into SAP BW powered by SAP HANA
16 | P a g e
4.3.4 Search for the BW
Datasource name (noted
in the previous steps).
Select and click next
In this case the
DataSource name is
IFICCACTTYP_P
4.3.5 BW/4HANA will
automatically make a
proposal for the fields in
the Open ODS view
definition.
Save and Activate.
How to integrate external data into SAP BW powered by SAP HANA
17 | P a g e
4.3.6 To view the data, use the
Data Preview button.
The open ODS view will provide direct access to the CDS view via the BW DataSource.
How to integrate external data into SAP BW powered by SAP HANA
18 | P a g e
5. Scenario 2 – Delta Extraction of CDS-ODP source
to BW
Scenario 2 will demonstrate data extraction from a custom CDS view in S/4HANA using the Delta
mechanism. In this case, GL Line Item information will be extracted, sourcing data primarily from
the table ACDOCA in S/4HANA. The ACDOCA table is typically a very large table, so extracting all
the records regularly (as full loads) or using direct access to BW would not be recommended.
Instead, data extraction using the delta mechanism is preferred whereby only ‘New’, ‘Changed’ or
‘Deleted’ records are extracted periodically. CDS views allow delta extraction via the data
extraction and delta element annotations. These annotations require a delta element or a ‘pseudo
delta’ field to be defined – typically a last changed timestamp on the record.
Not all tables/views in S/4HANA will contain the last changed timestamp and may need to be
derived by joining CDS views. In this case the standard model is enhanced with data from table
BWFI_AEDAT which supplies the last changed at timestamp.
The following diagram describes the steps of this scenario.
5.1 Step 1 – Create CDS View
5.1.1 In the HANA
studio navigate to
the S/4HANA
project using the
ABAP
Development
Perspective
How to integrate external data into SAP BW powered by SAP HANA
19 | P a g e
5.1.2 Right click on the
Project and select
New -> Other
5.1.3 From the Wizard,
navigate to ABAP-
>Core Data
Services -> Data
Definition
and click Next
5.1.4 Choose the
Package,
Technical Name
and Description.
In this case the
technical name is
ZI_BW_GLACCTLI
NE
5.1.5 Enter the CDS
view code.
The full code is
available in the
appendix of this
document.
How to integrate external data into SAP BW powered by SAP HANA
20 | P a g e
Note: Ensure the
Analytics
Annotation is
available with the
following details
Tip: The
Timestamp format
may need to be
converted
5.2 Step 2 – Create BW DataSource
5.2.1 Navigate to the
BW/4HANA system
using the BW
perspective
5.2.2 In the DataSources
folder, find the ABAP
CDS source system
for the S/4HANA
system. Right click
and select New ->
Datasource
How to integrate external data into SAP BW powered by SAP HANA
21 | P a g e
5.2.3 Click the Browse
button to use an
ODP source as a
template
5.2.4 Find the CDS View
and click OK
How to integrate external data into SAP BW powered by SAP HANA
22 | P a g e
5.2.5 The DataSource
input fields will be
automatically be
filled.
Click Finish
5.26 The fields of the
CDS view will be
automatically
included in the
DataSource
definition. Save and
Activate the
Datasource.
Make note of the
Datasource name
for the next step in
this scenario.
In this case the
DataSource name is
IFICCACTTYP_P
How to integrate external data into SAP BW powered by SAP HANA
23 | P a g e
The CDS View can now be used within BW models and dataflows. A simple data flow will be created
to load the data into BW.
5.3 Step 3 – Create BW Dataflow
5.3.1 Locate the
DataSource created
above.
Right Click and select
‘Explore DataFlow’
The dataflow is very
simple containing only
the Source System
object and
Datasource itself.
5.3.2 Drag the aDSO object
to the Dataflow
working area
5.3.2 Right click on the
aDSO object (which
has not been created
yet) and select New
Connection
How to integrate external data into SAP BW powered by SAP HANA
24 | P a g e
5.3.3 Select the
DataSource and click
OK
5.3.4 Right click the aDSO
object and select
Create Persistent BW
object
How to integrate external data into SAP BW powered by SAP HANA
25 | P a g e
5.3.5 Fill out the technical
Name and description
and click Finish
5.3.6 All the fields of the
DataSource have
automatically been
copied to the aDSO
definition.
Save and Activate
5.3.7 In the Dataflow
definition, right click
on the aDSO object,
click Transformation -
> Create
Transformation
How to integrate external data into SAP BW powered by SAP HANA
26 | P a g e
5.3.8 BW/4HANA will
automatically provide
suggestions within the
transformation
definition.
Save and Activate
5.3.9 Right click on the
aDSO definition and
select DTP’s-> Create
DTP
5.3.10 Select the
transformation and
click OK
How to integrate external data into SAP BW powered by SAP HANA
27 | P a g e
5.3.11 In the extraction
screen, notice that
both Delta and Full
load options are
available. In this case
select Delta.
Activate DTP
Note: In the DTP
definition, Filter
values can also be
selected
5.3.12 To Load Data to the
aDSO, go to the
Execute tab and click
Execute
5.3.13 In this step the data
will be extracted from
S/4HANA to
BW/4HANA. Go to
the monitor to check
the BW Load.
How to integrate external data into SAP BW powered by SAP HANA
28 | P a g e
5.3.14 The loads and delta
can be monitored and
managed in the
Source system
(S/4HANA) through
transaction ODQMON
5.4 Optional Step 4 – Activate Real-Time Streaming
Real-time streaming can be enabled for the dataflow created in the previous step.
5.4.1 In the HANA Studio,
locate the BW project
and select ‘Open SAP
GUI’ button
5.4.2 Go to transaction
RSPC
5.4.3 Click the Create new
button
Enter Process Chain
Technical Name and
Description
5.4.4 Enter the Start
Process technical
name and description
How to integrate external data into SAP BW powered by SAP HANA
29 | P a g e
Add the DTP and
aDSO activation
processes to the
Process Chain
5.4.5 Select the streaming
properties button
from the menu and
select the ‘Process
Chain Runs in
Streaming Mode’
check box. Set the
Error threshold and
Log retention
according to
requirements. Click
OK
5.4.6 Save and activate the
process chain
The process chain is
now streaming.
6. Replacing BW Extractors with CDS views in
S/4HANA
For the most-part, traditional BW extractors can be used to extract data from an S/4HANA system.
Due to simplifications in the S/4HANA system, some extractors have been deprecated or can no
longer be used in the same way. For these extractors, SAP may deliver CDS Views which are
extraction relevant (via the analytical annotations). In this case, the methods of extracting and
consuming data described in this document can be used.
How to integrate external data into SAP BW powered by SAP HANA
30 | P a g e
7. Appendix
@AbapCatalog.sqlViewName: 'ZIBWGLLINE2'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'GL Account Line Item (BW Extraction)'
@Analytics: { dataCategory: #FACT,
dataExtraction: { enabled :true,
delta.byElement.name : 'lastChangedAt',
delta.byElement.maxDelayInSeconds : '100'}}
define view Zi_Bw_Glacctline2 as select from I_GLAccountLineItem
association [1..*] to Zi_Bwfi_Aedat as _BWDELTA
on I_GLAccountLineItem.CompanyCode = _BWDELTA.CompanyCode and
I_GLAccountLineItem.AccountingDocument = _BWDELTA.AccountingDocument and
I_GLAccountLineItem.FiscalYear = _BWDELTA.FiscalYear
{
key I_GLAccountLineItem.CompanyCode,
key I_GLAccountLineItem.FiscalYear,
key I_GLAccountLineItem.AccountingDocument,
key I_GLAccountLineItem.LedgerGLLineItem,
I_GLAccountLineItem.Ledger,
I_GLAccountLineItem.SourceLedger,
I_GLAccountLineItem.LedgerFiscalYear,
I_GLAccountLineItem.ChartOfAccounts,
I_GLAccountLineItem.ControllingArea,
I_GLAccountLineItem.GLAccount,
I_GLAccountLineItem.CostCenter,
I_GLAccountLineItem.ProfitCenter,
I_GLAccountLineItem.FunctionalArea,
I_GLAccountLineItem.BusinessArea,
I_GLAccountLineItem.Segment,
I_GLAccountLineItem.BalanceTransactionCurrency,
I_GLAccountLineItem.AmountInBalanceTransacCrcy,
I_GLAccountLineItem.BaseUnit,
I_GLAccountLineItem.Quantity,
I_GLAccountLineItem.FixedQuantity,
I_GLAccountLineItem.CostSourceUnit,
/* Associations */
_BWDELTA.ChangedTimeStamp,
@Semantics.systemDate.lastChangedAt
case
when _BWDELTA.ChangedTimeStamp > I_GLAccountLineItem.CreationDateTime
then cast(cast(cast(substring(cast(_BWDELTA.ChangedTimeStamp as abap.char(25)),
1, 14) as abap.numc( 14 )) as abap.dec (15, 0)) as rvlsttstmp)
else cast(cast(cast(substring(cast(I_GLAccountLineItem.CreationDateTime as
abap.char(25)), 1, 14) as abap.numc( 14 )) as abap.dec (15, 0)) as rvlsttstmp)
end as lastChangedAt
}
How to integrate external data into SAP BW powered by SAP HANA
2 | P a g e
www.sap.com/contactsap
www.sdn.sap.com/irj/sdn/howtoguides

More Related Content

What's hot

Db connect with sap bw
Db connect with sap bwDb connect with sap bw
Db connect with sap bwObaid shaikh
 
SAP HANA SPS09 - Backup and Recovery
SAP HANA SPS09 - Backup and RecoverySAP HANA SPS09 - Backup and Recovery
SAP HANA SPS09 - Backup and RecoverySAP Technology
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extractionObaid shaikh
 
Analysis process designer (apd) part 2
Analysis process designer (apd) part   2Analysis process designer (apd) part   2
Analysis process designer (apd) part 2dejavee
 
Using error stack and error dt ps in sap bi 7.0
Using error stack and error dt ps in sap bi 7.0Using error stack and error dt ps in sap bi 7.0
Using error stack and error dt ps in sap bi 7.0gireesho
 
Lo extraction part 4 update methods
Lo extraction   part 4 update methodsLo extraction   part 4 update methods
Lo extraction part 4 update methodsJNTU University
 
Sap fiori-ux-architecture-for-s4h
Sap fiori-ux-architecture-for-s4hSap fiori-ux-architecture-for-s4h
Sap fiori-ux-architecture-for-s4hAkhilendra Singh
 
Lo extraction part 2 database update logic
Lo extraction   part 2 database update logicLo extraction   part 2 database update logic
Lo extraction part 2 database update logicJNTU University
 
Sap bw4 hana architecture archetypes
Sap bw4 hana architecture archetypesSap bw4 hana architecture archetypes
Sap bw4 hana architecture archetypesLuc Vanrobays
 
How to run v3 job
How to run v3 jobHow to run v3 job
How to run v3 jobAnil Kumar
 
S4H_399 2 SL _Onboarding Presentation (2).pptx
S4H_399 2  SL _Onboarding Presentation (2).pptxS4H_399 2  SL _Onboarding Presentation (2).pptx
S4H_399 2 SL _Onboarding Presentation (2).pptxchandramohan431817
 
Sap sapscripts tips and tricks
Sap sapscripts tips and tricksSap sapscripts tips and tricks
Sap sapscripts tips and tricksKranthi Kumar
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questionsKranthi Kumar
 
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Hybrid provider based on dso using real time data acquisition in sap bw 7.30Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Hybrid provider based on dso using real time data acquisition in sap bw 7.30Sabyasachi Das
 

What's hot (20)

Db connect with sap bw
Db connect with sap bwDb connect with sap bw
Db connect with sap bw
 
SAP HANA SPS09 - Backup and Recovery
SAP HANA SPS09 - Backup and RecoverySAP HANA SPS09 - Backup and Recovery
SAP HANA SPS09 - Backup and Recovery
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extraction
 
Analysis process designer (apd) part 2
Analysis process designer (apd) part   2Analysis process designer (apd) part   2
Analysis process designer (apd) part 2
 
LSA++ english version
LSA++ english versionLSA++ english version
LSA++ english version
 
Using error stack and error dt ps in sap bi 7.0
Using error stack and error dt ps in sap bi 7.0Using error stack and error dt ps in sap bi 7.0
Using error stack and error dt ps in sap bi 7.0
 
Lo extraction part 4 update methods
Lo extraction   part 4 update methodsLo extraction   part 4 update methods
Lo extraction part 4 update methods
 
Sap fiori-ux-architecture-for-s4h
Sap fiori-ux-architecture-for-s4hSap fiori-ux-architecture-for-s4h
Sap fiori-ux-architecture-for-s4h
 
Sap hana tutorial
Sap hana tutorialSap hana tutorial
Sap hana tutorial
 
Sap architecture
Sap architectureSap architecture
Sap architecture
 
Lo extraction part 2 database update logic
Lo extraction   part 2 database update logicLo extraction   part 2 database update logic
Lo extraction part 2 database update logic
 
Sap bw4 hana architecture archetypes
Sap bw4 hana architecture archetypesSap bw4 hana architecture archetypes
Sap bw4 hana architecture archetypes
 
SAP ECC to S/4HANA Move
SAP ECC to S/4HANA MoveSAP ECC to S/4HANA Move
SAP ECC to S/4HANA Move
 
How to run v3 job
How to run v3 jobHow to run v3 job
How to run v3 job
 
HANA Modeling
HANA Modeling HANA Modeling
HANA Modeling
 
S4H_399 2 SL _Onboarding Presentation (2).pptx
S4H_399 2  SL _Onboarding Presentation (2).pptxS4H_399 2  SL _Onboarding Presentation (2).pptx
S4H_399 2 SL _Onboarding Presentation (2).pptx
 
Sap sapscripts tips and tricks
Sap sapscripts tips and tricksSap sapscripts tips and tricks
Sap sapscripts tips and tricks
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
 
SAP Basis Overview
SAP Basis OverviewSAP Basis Overview
SAP Basis Overview
 
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Hybrid provider based on dso using real time data acquisition in sap bw 7.30Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
 

Similar to How to use abap cds for data provisioning in bw

How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...Jaime Marchant Benavides
 
Testing SAP HANA applications with SAP LoadRunner by HP
Testing SAP HANA applications with SAP LoadRunner by HPTesting SAP HANA applications with SAP LoadRunner by HP
Testing SAP HANA applications with SAP LoadRunner by HPSAP Solution Extensions
 
How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...Ganesh Kumar
 
How to part 2 build an agentry based app from scratch
How to part 2 build an agentry based app from scratchHow to part 2 build an agentry based app from scratch
How to part 2 build an agentry based app from scratchGanesh Kumar
 
End user experience monitoring
End user experience monitoringEnd user experience monitoring
End user experience monitoringSanjay Sahita
 
Ac409c27 5a7c-0010-82c7-eda71af511fa
Ac409c27 5a7c-0010-82c7-eda71af511faAc409c27 5a7c-0010-82c7-eda71af511fa
Ac409c27 5a7c-0010-82c7-eda71af511faNagendra Babu
 
White papersap sollandscape
White papersap sollandscapeWhite papersap sollandscape
White papersap sollandscapeGiuseppe Caselli
 
Ppf in sap_ewm_1
Ppf in sap_ewm_1Ppf in sap_ewm_1
Ppf in sap_ewm_1Yuan Lin
 
How to call an enterprise service from jsf
How to call an enterprise service from jsfHow to call an enterprise service from jsf
How to call an enterprise service from jsfSoufiane Boujamaoui
 
How to configure and use change recording
How to configure and use change recordingHow to configure and use change recording
How to configure and use change recordingPhani Kumar
 
F05fba45 0b5f-2c10-a697-f36efa24e899
F05fba45 0b5f-2c10-a697-f36efa24e899F05fba45 0b5f-2c10-a697-f36efa24e899
F05fba45 0b5f-2c10-a697-f36efa24e899Deepa Bisht
 
2011 BtoB Magazine Net Marketer Seminar "Digital branded experiences"
2011 BtoB Magazine Net Marketer Seminar  "Digital branded experiences"2011 BtoB Magazine Net Marketer Seminar  "Digital branded experiences"
2011 BtoB Magazine Net Marketer Seminar "Digital branded experiences"Kevin Cox
 
Smau Roma 2010 Massimo Sala
Smau Roma 2010 Massimo SalaSmau Roma 2010 Massimo Sala
Smau Roma 2010 Massimo SalaSMAU
 
SAP BI BO roadmap BO analytics editions
SAP BI BO roadmap BO analytics editionsSAP BI BO roadmap BO analytics editions
SAP BI BO roadmap BO analytics editionsJuan Frias
 
How to guide-fiori-mm_en_xx
How to guide-fiori-mm_en_xxHow to guide-fiori-mm_en_xx
How to guide-fiori-mm_en_xxLokesh Modem
 
Funds management configuration sap ag
Funds management configuration sap agFunds management configuration sap ag
Funds management configuration sap agLluckyy
 
Sap me how to-guide - barcode scanning
Sap me how to-guide - barcode scanningSap me how to-guide - barcode scanning
Sap me how to-guide - barcode scanningBob Grochowski
 

Similar to How to use abap cds for data provisioning in bw (20)

How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...
 
Testing SAP HANA applications with SAP LoadRunner by HP
Testing SAP HANA applications with SAP LoadRunner by HPTesting SAP HANA applications with SAP LoadRunner by HP
Testing SAP HANA applications with SAP LoadRunner by HP
 
How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...How to build an agentry based mobile app from scratch connecting to an sap ba...
How to build an agentry based mobile app from scratch connecting to an sap ba...
 
How to part 2 build an agentry based app from scratch
How to part 2 build an agentry based app from scratchHow to part 2 build an agentry based app from scratch
How to part 2 build an agentry based app from scratch
 
End user experience monitoring
End user experience monitoringEnd user experience monitoring
End user experience monitoring
 
Ac409c27 5a7c-0010-82c7-eda71af511fa
Ac409c27 5a7c-0010-82c7-eda71af511faAc409c27 5a7c-0010-82c7-eda71af511fa
Ac409c27 5a7c-0010-82c7-eda71af511fa
 
White papersap sollandscape
White papersap sollandscapeWhite papersap sollandscape
White papersap sollandscape
 
Ppf in sap_ewm_1
Ppf in sap_ewm_1Ppf in sap_ewm_1
Ppf in sap_ewm_1
 
Badi
BadiBadi
Badi
 
How to call an enterprise service from jsf
How to call an enterprise service from jsfHow to call an enterprise service from jsf
How to call an enterprise service from jsf
 
How to conf_mopz_22_slm
How to conf_mopz_22_slmHow to conf_mopz_22_slm
How to conf_mopz_22_slm
 
How to configure and use change recording
How to configure and use change recordingHow to configure and use change recording
How to configure and use change recording
 
F05fba45 0b5f-2c10-a697-f36efa24e899
F05fba45 0b5f-2c10-a697-f36efa24e899F05fba45 0b5f-2c10-a697-f36efa24e899
F05fba45 0b5f-2c10-a697-f36efa24e899
 
2011 BtoB Magazine Net Marketer Seminar "Digital branded experiences"
2011 BtoB Magazine Net Marketer Seminar  "Digital branded experiences"2011 BtoB Magazine Net Marketer Seminar  "Digital branded experiences"
2011 BtoB Magazine Net Marketer Seminar "Digital branded experiences"
 
Smau Roma 2010 Massimo Sala
Smau Roma 2010 Massimo SalaSmau Roma 2010 Massimo Sala
Smau Roma 2010 Massimo Sala
 
SAP BI BO roadmap BO analytics editions
SAP BI BO roadmap BO analytics editionsSAP BI BO roadmap BO analytics editions
SAP BI BO roadmap BO analytics editions
 
How to guide-fiori-mm_en_xx
How to guide-fiori-mm_en_xxHow to guide-fiori-mm_en_xx
How to guide-fiori-mm_en_xx
 
Funds management configuration sap ag
Funds management configuration sap agFunds management configuration sap ag
Funds management configuration sap ag
 
Sap me how to-guide - barcode scanning
Sap me how to-guide - barcode scanningSap me how to-guide - barcode scanning
Sap me how to-guide - barcode scanning
 
Sap me how to-guide - barcode scanning
Sap me how to-guide - barcode scanningSap me how to-guide - barcode scanning
Sap me how to-guide - barcode scanning
 

More from Luc Vanrobays

Build and run an sql data warehouse on sap hana
Build and run an sql data warehouse on sap hanaBuild and run an sql data warehouse on sap hana
Build and run an sql data warehouse on sap hanaLuc Vanrobays
 
Bi05 fontes de_dados_hana_para_relatorios_presentação_conceitual_2
Bi05 fontes de_dados_hana_para_relatorios_presentação_conceitual_2Bi05 fontes de_dados_hana_para_relatorios_presentação_conceitual_2
Bi05 fontes de_dados_hana_para_relatorios_presentação_conceitual_2Luc Vanrobays
 
Dmm203 – new approaches for data modelingwith sap hana
Dmm203 – new approaches for data modelingwith sap hanaDmm203 – new approaches for data modelingwith sap hana
Dmm203 – new approaches for data modelingwith sap hanaLuc Vanrobays
 
Text analysis matrix event 2015
Text analysis matrix event 2015Text analysis matrix event 2015
Text analysis matrix event 2015Luc Vanrobays
 
Dmm302 - Sap Hana Data Warehousing: Models for Sap Bw and SQL DW on SAP HANA
Dmm302 - Sap Hana Data Warehousing: Models for Sap Bw and SQL DW on SAP HANA Dmm302 - Sap Hana Data Warehousing: Models for Sap Bw and SQL DW on SAP HANA
Dmm302 - Sap Hana Data Warehousing: Models for Sap Bw and SQL DW on SAP HANA Luc Vanrobays
 
Dmm300 – mixed scenarios for sap hana data warehousing and BW: overview and e...
Dmm300 – mixed scenarios for sap hana data warehousing and BW: overview and e...Dmm300 – mixed scenarios for sap hana data warehousing and BW: overview and e...
Dmm300 – mixed scenarios for sap hana data warehousing and BW: overview and e...Luc Vanrobays
 
DMM270 – Spatial Analytics with Sap Hana
DMM270 – Spatial Analytics with Sap HanaDMM270 – Spatial Analytics with Sap Hana
DMM270 – Spatial Analytics with Sap HanaLuc Vanrobays
 
Dmm212 – Sap Hana Graph Processing
Dmm212 – Sap Hana  Graph ProcessingDmm212 – Sap Hana  Graph Processing
Dmm212 – Sap Hana Graph ProcessingLuc Vanrobays
 
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and Predictive
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and PredictiveDmm117 – SAP HANA Processing Services Text Spatial Graph Series and Predictive
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and PredictiveLuc Vanrobays
 
What is mmd - Multi Markdown ?
What is mmd - Multi Markdown ?What is mmd - Multi Markdown ?
What is mmd - Multi Markdown ?Luc Vanrobays
 
Dmm300 - Mixed Scenarios/Architecture HANA Models / BW
Dmm300 - Mixed Scenarios/Architecture HANA Models / BWDmm300 - Mixed Scenarios/Architecture HANA Models / BW
Dmm300 - Mixed Scenarios/Architecture HANA Models / BWLuc Vanrobays
 
DMM161_2015_Exercises
DMM161_2015_ExercisesDMM161_2015_Exercises
DMM161_2015_ExercisesLuc Vanrobays
 
DMM161 HANA_MODELING_2015
DMM161 HANA_MODELING_2015DMM161 HANA_MODELING_2015
DMM161 HANA_MODELING_2015Luc Vanrobays
 
EA261_2015_Exercises
EA261_2015_ExercisesEA261_2015_Exercises
EA261_2015_ExercisesLuc Vanrobays
 
Tech ed 2012 eim260 modeling in sap hana-exercise
Tech ed 2012 eim260   modeling in sap hana-exerciseTech ed 2012 eim260   modeling in sap hana-exercise
Tech ed 2012 eim260 modeling in sap hana-exerciseLuc Vanrobays
 
Sap esp integration options
Sap esp integration optionsSap esp integration options
Sap esp integration optionsLuc Vanrobays
 

More from Luc Vanrobays (19)

Abap Objects for BW
Abap Objects for BWAbap Objects for BW
Abap Objects for BW
 
Build and run an sql data warehouse on sap hana
Build and run an sql data warehouse on sap hanaBuild and run an sql data warehouse on sap hana
Build and run an sql data warehouse on sap hana
 
Bi05 fontes de_dados_hana_para_relatorios_presentação_conceitual_2
Bi05 fontes de_dados_hana_para_relatorios_presentação_conceitual_2Bi05 fontes de_dados_hana_para_relatorios_presentação_conceitual_2
Bi05 fontes de_dados_hana_para_relatorios_presentação_conceitual_2
 
Dmm203 – new approaches for data modelingwith sap hana
Dmm203 – new approaches for data modelingwith sap hanaDmm203 – new approaches for data modelingwith sap hana
Dmm203 – new approaches for data modelingwith sap hana
 
Text analysis matrix event 2015
Text analysis matrix event 2015Text analysis matrix event 2015
Text analysis matrix event 2015
 
Dmm302 - Sap Hana Data Warehousing: Models for Sap Bw and SQL DW on SAP HANA
Dmm302 - Sap Hana Data Warehousing: Models for Sap Bw and SQL DW on SAP HANA Dmm302 - Sap Hana Data Warehousing: Models for Sap Bw and SQL DW on SAP HANA
Dmm302 - Sap Hana Data Warehousing: Models for Sap Bw and SQL DW on SAP HANA
 
Dmm300 – mixed scenarios for sap hana data warehousing and BW: overview and e...
Dmm300 – mixed scenarios for sap hana data warehousing and BW: overview and e...Dmm300 – mixed scenarios for sap hana data warehousing and BW: overview and e...
Dmm300 – mixed scenarios for sap hana data warehousing and BW: overview and e...
 
DMM270 – Spatial Analytics with Sap Hana
DMM270 – Spatial Analytics with Sap HanaDMM270 – Spatial Analytics with Sap Hana
DMM270 – Spatial Analytics with Sap Hana
 
Dmm212 – Sap Hana Graph Processing
Dmm212 – Sap Hana  Graph ProcessingDmm212 – Sap Hana  Graph Processing
Dmm212 – Sap Hana Graph Processing
 
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and Predictive
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and PredictiveDmm117 – SAP HANA Processing Services Text Spatial Graph Series and Predictive
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and Predictive
 
What is mmd - Multi Markdown ?
What is mmd - Multi Markdown ?What is mmd - Multi Markdown ?
What is mmd - Multi Markdown ?
 
Dmm300 - Mixed Scenarios/Architecture HANA Models / BW
Dmm300 - Mixed Scenarios/Architecture HANA Models / BWDmm300 - Mixed Scenarios/Architecture HANA Models / BW
Dmm300 - Mixed Scenarios/Architecture HANA Models / BW
 
Dev104
Dev104Dev104
Dev104
 
DMM161_2015_Exercises
DMM161_2015_ExercisesDMM161_2015_Exercises
DMM161_2015_Exercises
 
DMM161 HANA_MODELING_2015
DMM161 HANA_MODELING_2015DMM161 HANA_MODELING_2015
DMM161 HANA_MODELING_2015
 
EA261_2015_Exercises
EA261_2015_ExercisesEA261_2015_Exercises
EA261_2015_Exercises
 
EA261_2015
EA261_2015EA261_2015
EA261_2015
 
Tech ed 2012 eim260 modeling in sap hana-exercise
Tech ed 2012 eim260   modeling in sap hana-exerciseTech ed 2012 eim260   modeling in sap hana-exercise
Tech ed 2012 eim260 modeling in sap hana-exercise
 
Sap esp integration options
Sap esp integration optionsSap esp integration options
Sap esp integration options
 

Recently uploaded

INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一F La
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 

Recently uploaded (20)

INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 

How to use abap cds for data provisioning in bw

  • 1. SAP How-to Guide Business Analytics SAP HANA™ Appliance
  • 2. SAP How-to Guide Business Analytics SAP HANA™ Appliance Applicable Releases: SAP BW 7.5 SP5 powered by SAP HANA and BW/4HANA SP01 Author: Anna Coniglio Version 1.0 January 2017 How to use ABAP CDS for Data Provisioning in BW
  • 3. © Copyright 2017 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase, Inc. Sybase is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose without the express prior written permission of SAP AG. This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains only intended strategies, developments, and functionalities of the SAP® product and is not intended to be binding upon SAP to any particular course of business, product strategy, and/or development. Please note that this document is subject to change and may be changed by SAP at any time without notice. SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, or other items contained within this material. This document is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitation shall not apply in cases of intent or gross negligence. The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages. SAP “How-to” Guides are intended to simplify the product implement- tation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using SAP NetWeaver. Should you wish to receive additional information, clarification or support, please refer to SAP Consulting. Any software coding and/or code lines / strings (“Code”) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent. Disclaimer Some components of this product are based on Java™. Any code change in these components may cause unpredictable and severe malfunctions and is therefore expressively prohibited, as is any decompilation of these components. Any Java™ Source Code delivered with this product is only to be used by SAP’s Support Services and may not be modified or altered in any way.
  • 4. Document History Document Version Description 1.10 << Enter your summary of changes in this version >> 1.00 First official release of this guide
  • 5. Typographic Conventions Type Style Description Example Text Words or characters quoted from the screen. These include field names, screen titles, pushbuttons labels, menu names, menu paths, and menu options. Cross-references to other documentation Example text Emphasized words or phrases in body text, graphic titles, and table titles Example text File and directory names and their paths, messages, names of variables and parameters, source text, and names of installation, upgrade and database tools. Example text User entry texts. These are words or characters that you enter in the system exactly as they appear in the documentation. <Example text> Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system. EXAMPLE TEXT Keys on the keyboard, for example, F2 or ENTER. Icons Icon Description Caution Note or Important Example Recommendation or Tip
  • 6. Table of Contents 1. Introduction ..................................................................................................................... 4 2. Prerequisites.....................................................................................................................5 2.1 Minimum system Requirements ........................................................................................ 5 2.2 Creating the ODP Source system....................................................................................... 5 2.3 Application Development using ABAP CDS...................................................................... 5 3. Background.......................................................................................................................5 3.1 Delta with deletion.................................................................................................................8 4. Scenario 1 – Directly Access CDS-ODP source from BW .................................................. 8 4.1 Step 1 – Inspect CDS View...................................................................................................9 4.2 Step 2 – Create Datasource .............................................................................................. 10 4.3 Step 3 – Consume CDS view within BW modeling tools...............................................13 5. Scenario 2 – Delta Extraction of CDS-ODP source to BW ................................................ 18 5.1 Step 1 – Create CDS View .................................................................................................. 18 5.2 Step 2 – Create BW DataSource ......................................................................................20 5.3 Step 3 – Create BW Dataflow............................................................................................23 5.4 Optional Step 4 – Activate Real-Time Streaming.........................................................28 6. Replacing BW Extractors with CDS views in S/4HANA ................................................... 29 7. Appendix........................................................................................................................ 30
  • 7. How to integrate external data into SAP BW powered by SAP HANA 4 | P a g e 1. Introduction With the availability of the SAP HANA platform there has been a paradigm shift in the way business applications are developed at SAP. The rule of thumb: Do as much as you can in the database to get the best performance. To take advantage of the SAP HANA Database, SAP has introduced a new concept for data modelling called Core Data Service (CDS) which helps to facilitate the push-down of processes to the SAP HANA database. Data models based on CDS serve as central definitions that can be used in many different domains, such as transactional and analytical applications. CDS is defined using an SQL-based data definition language (DDL) leveraging standard SQL with some additional concepts, such as associations, which define the relationships between CDS views, and annotations, which direct the domain-specific use of CDS artefacts. There are two types of CDS available, the HANA CDS (defined in XS engine) and ABAP CDS. CDS has become the cornerstone for application development at SAP. A key example of this can be seen in S/4HANA which uses CDS to provide both core transactional functionality as well as analytical content for reporting. From release BW 7.5 SP05 powered by HANA (BW/4HANA SP01), ABAP based CDS views can be used for data extraction. It is the purpose of this document to provide a step-by-step guide on how to configure this scenario. This paper will cover 2 use cases - Direct access to a CDS view from BW and - Delta extraction from a CDS view to BW The following diagram describes these two scenarios
  • 8. How to integrate external data into SAP BW powered by SAP HANA 5 | P a g e 2. Prerequisites 2.1 Minimum system Requirements Extracting data using a CDS view and the ODP framework requires a minimum version on both the source (ABAP) and target (BW) systems Source Requirements Full Extraction or Direct Access scenarios require a minimum of NetWeaver 7.5 SP04 or equivalent. Delta Extraction scenarios require a minimum of NetWeaver 7.5 SP05 or SAP BW/4HANA SP01 Target Requirements All ODP-CDS Extraction scenarios require a minimum of NetWeaver 7.3 SP08 or equivalent (ODP recommendation) 2.2 Creating the ODP Source system For the extraction of data into BW, ensure an ODP source system of type ABAP_CDS is available to connect to the source system. This may require configuration by the system administrator. For further information on setting up the ODP Source System see the help documentation Creating an ODP Source System 2.3 Application Development using ABAP CDS CDS views in S/4HANA should be developed in line with the customer development standards and guidelines. Discussion into the correct usage of CDS views and annotations is beyond the scope of this documentation For further information see the help documentation See ABAP CDS Help See ABAP CDS Development User Guide 3. Background Data extraction is enabled within the CDS definition through a suitable Analytics Annotation. The following annotations are relevant for data provisioning purposes and are applicable only from NetWeaver 7.5 SP05. Analtics : { dataExtraction : { enabled : boolean default true; delta : { byElement : { name : RefToElement; maxDelayInSeconds : Integer default 1800; detectDeletedRecords: boolean default true; ignoreDeletionAfterDays : Integer; }; }; }; };
  • 9. How to integrate external data into SAP BW powered by SAP HANA 6 | P a g e Analytics.dataExtraction.enabled Application developers can use this annotation to mark views that are suitable for data replication (for example, delta capabilities must be provided for mass data). Scope: #VIEW Evaluation Runtime (Engine): Specifies which view will be exposed in replication scenarios. Note This view must be annotated with Analytics.dataCategory (except the value AGGREGATIONLEVEL). Value Description True The view is suitable for data replication. This is the default setting. False The view is not suitable for data replication. Analytics.dataExtraction.delta.byElement.name Application developers can enable the generic delta extraction with this annotation. This is the element that should be used for filtering during generic delta extraction. This element can either be a date (ABAP type DATS) or a UTC time stamp. Scope: #VIEW Evaluation Runtime (Engine): Specifies which view will be exposed in replication scenarios. Value Description True The view is suitable for data replication. This is the default setting.
  • 10. How to integrate external data into SAP BW powered by SAP HANA 7 | P a g e False The view is not suitable for data replication. Analytics.dataExtraction.delta.byElement.maxDel ayInSeconds There is always a time delay between taking a UTC time stamp and the database commit. This annotation specifies the maximum possible delay in seconds. Scope: #VIEW Evaluation Runtime (Engine): Specifies which view will be exposed in replication scenarios. Value Description Integer Maximum number of seconds between taking the time stamp and the successful database commit. The default is 1800 seconds. Analytics.dataExtraction.delta.byElement. detectDeletedRecords Value Description True Delta extraction captures deleted records False Delta extraction does not capture deleted records Analytics.dataExtraction.delta.byElement. ignoreDeletionAfterDays Maximum retention of deleted data based on number of days Value Description Integer Number of days delta queue captures deleted records. Further information and a full list of analytical annotation go to the Analytical Annotations Help Documentation.
  • 11. How to integrate external data into SAP BW powered by SAP HANA 8 | P a g e 3.1 Delta with deletion The CDS analytics annotation supports delta extraction with deletion. When delete records are requested, an additional table is created, storing key fields which have already been extracted. During the extraction process the key fields of the source table and extracted records table are compared and delete records are generated. 4. Scenario 1 – Directly Access CDS-ODP source from BW In this scenario data will be extracted from a standard CDS view in S/4HANA. The CDS view chosen represents Cost Center Activity Type master data, I_COSTCENTERACTIVITYTYPE. I_COSTCENTERACTIVITYTYPE is delivered as part of the Virtual Data Model (VDM) in S/4HANA Analytics and in this case already contains the data extraction annotation allowing the view to be used for data extraction. The reference to this annotation is highlighted below Please note that because the delivered CDS view does not include the delta extraction annotation, only full extraction or direct access can be used in this scenario. Also keep in mind that not all VDM CDS views will contain the dataextraction:enabled annotation, this will only be used where extraction is possible and appropriate. Scenario 1 will detail the process described below
  • 12. How to integrate external data into SAP BW powered by SAP HANA 9 | P a g e 4.1 Step 1 – Inspect CDS View For this scenario, a pre-delivered CDS view will be used for data extraction. Although the object itself is already configured, some information from the CDS view is required and gathered in Step 1. 4.1.1 In the HANA studio navigate to the S/4HANA project using the ABAP Development Perspective 4.1.2 In the S/4HANA project, locate the CDS view which should be used for data extraction. In this case I_COSTCENTERACTIVITYTYPE will be used Note: If using a standard CDS View ensure the ‘dataExtraction.enabled:true’ annotiation is available. The dataExtraction annotation is used in standard VDM where data extraction from the view makes sense.
  • 13. How to integrate external data into SAP BW powered by SAP HANA 10 | P a g e 4.1.3 In the CDS view definition make the note of the CDS view name, Analytics data Category and SQL view name. This information will be used in subsequent steps In this case, The CDS view name = I_CostCenterActivityType Data Category = DIMENSION SQLViewName = IFICCActTyp 4.2 Step 2 – Create Datasource 4.2.1 Navigate to the BW/4HANA Project using the BW perspective 4.2.2 Under the DataSources folder find the ODP_CDS source system for the S/4HANA system Note: As data extraction is client dependent, ensure the correct client for the system is selected – in this case 910 is used
  • 14. How to integrate external data into SAP BW powered by SAP HANA 11 | P a g e 4.2.3 Right click on the Source System object and select New -> DataSource 4.2.4 In the DataSource creation screen, select the browse button to use the Operational Data Provider as a template
  • 15. How to integrate external data into SAP BW powered by SAP HANA 12 | P a g e 4.2.5 In the browse screen use the SQLView name identified in the previous section to find the ODP source and click OK. Note: You must use the SQL view name, not the CDS view name, 4.2. 6 The DataSource input screen will be automatically filled with the information relating to the ODP source. Click Finish to continue the DataSource configuration
  • 16. How to integrate external data into SAP BW powered by SAP HANA 13 | P a g e 4.2.7 The fields of the CDS view will be automatically included in the DataSource definition. Save and Activate the Datasource. Make note of the Datasource name for the next step in this scenario. In this case the DataSource name is IFICCACTTYP_P The CDS view data can now be used within BW models and dataflows. 4.3 Step 3 – Consume CDS view within BW modeling tools BW/4HANA offers a variety of data acquisition options. In this scenario direct access (through the ODP Framework) or a more traditional full data load scenario could be used. The following section will demonstrate the consumption of the data through direct access using an Open ODS View. 4.3.1 Navigate to the BW/4HANA system using the BW perspective
  • 17. How to integrate external data into SAP BW powered by SAP HANA 14 | P a g e 4.3.2 Right click on the BW/4HANA project and select New -> Open ODS View
  • 18. How to integrate external data into SAP BW powered by SAP HANA 15 | P a g e 4.3.3 In the Open ODS View creation screen fill details for: - InfoArea, - Technical name - Description Choose the Semantic type for the Open ODS View. In this case the CDS view in the S/4HANA system has been defined with the DIMENSION annotation (identified in Step 1), so this Open ODS will be for Master Data. Note: CDS views with analytics annotation type AGGREGATIONLEVEL cannot be used for data extraction. Select the source type. This example will use direct access from a DataSource so DataSource(BW) is selected. Click Next.
  • 19. How to integrate external data into SAP BW powered by SAP HANA 16 | P a g e 4.3.4 Search for the BW Datasource name (noted in the previous steps). Select and click next In this case the DataSource name is IFICCACTTYP_P 4.3.5 BW/4HANA will automatically make a proposal for the fields in the Open ODS view definition. Save and Activate.
  • 20. How to integrate external data into SAP BW powered by SAP HANA 17 | P a g e 4.3.6 To view the data, use the Data Preview button. The open ODS view will provide direct access to the CDS view via the BW DataSource.
  • 21. How to integrate external data into SAP BW powered by SAP HANA 18 | P a g e 5. Scenario 2 – Delta Extraction of CDS-ODP source to BW Scenario 2 will demonstrate data extraction from a custom CDS view in S/4HANA using the Delta mechanism. In this case, GL Line Item information will be extracted, sourcing data primarily from the table ACDOCA in S/4HANA. The ACDOCA table is typically a very large table, so extracting all the records regularly (as full loads) or using direct access to BW would not be recommended. Instead, data extraction using the delta mechanism is preferred whereby only ‘New’, ‘Changed’ or ‘Deleted’ records are extracted periodically. CDS views allow delta extraction via the data extraction and delta element annotations. These annotations require a delta element or a ‘pseudo delta’ field to be defined – typically a last changed timestamp on the record. Not all tables/views in S/4HANA will contain the last changed timestamp and may need to be derived by joining CDS views. In this case the standard model is enhanced with data from table BWFI_AEDAT which supplies the last changed at timestamp. The following diagram describes the steps of this scenario. 5.1 Step 1 – Create CDS View 5.1.1 In the HANA studio navigate to the S/4HANA project using the ABAP Development Perspective
  • 22. How to integrate external data into SAP BW powered by SAP HANA 19 | P a g e 5.1.2 Right click on the Project and select New -> Other 5.1.3 From the Wizard, navigate to ABAP- >Core Data Services -> Data Definition and click Next 5.1.4 Choose the Package, Technical Name and Description. In this case the technical name is ZI_BW_GLACCTLI NE 5.1.5 Enter the CDS view code. The full code is available in the appendix of this document.
  • 23. How to integrate external data into SAP BW powered by SAP HANA 20 | P a g e Note: Ensure the Analytics Annotation is available with the following details Tip: The Timestamp format may need to be converted 5.2 Step 2 – Create BW DataSource 5.2.1 Navigate to the BW/4HANA system using the BW perspective 5.2.2 In the DataSources folder, find the ABAP CDS source system for the S/4HANA system. Right click and select New -> Datasource
  • 24. How to integrate external data into SAP BW powered by SAP HANA 21 | P a g e 5.2.3 Click the Browse button to use an ODP source as a template 5.2.4 Find the CDS View and click OK
  • 25. How to integrate external data into SAP BW powered by SAP HANA 22 | P a g e 5.2.5 The DataSource input fields will be automatically be filled. Click Finish 5.26 The fields of the CDS view will be automatically included in the DataSource definition. Save and Activate the Datasource. Make note of the Datasource name for the next step in this scenario. In this case the DataSource name is IFICCACTTYP_P
  • 26. How to integrate external data into SAP BW powered by SAP HANA 23 | P a g e The CDS View can now be used within BW models and dataflows. A simple data flow will be created to load the data into BW. 5.3 Step 3 – Create BW Dataflow 5.3.1 Locate the DataSource created above. Right Click and select ‘Explore DataFlow’ The dataflow is very simple containing only the Source System object and Datasource itself. 5.3.2 Drag the aDSO object to the Dataflow working area 5.3.2 Right click on the aDSO object (which has not been created yet) and select New Connection
  • 27. How to integrate external data into SAP BW powered by SAP HANA 24 | P a g e 5.3.3 Select the DataSource and click OK 5.3.4 Right click the aDSO object and select Create Persistent BW object
  • 28. How to integrate external data into SAP BW powered by SAP HANA 25 | P a g e 5.3.5 Fill out the technical Name and description and click Finish 5.3.6 All the fields of the DataSource have automatically been copied to the aDSO definition. Save and Activate 5.3.7 In the Dataflow definition, right click on the aDSO object, click Transformation - > Create Transformation
  • 29. How to integrate external data into SAP BW powered by SAP HANA 26 | P a g e 5.3.8 BW/4HANA will automatically provide suggestions within the transformation definition. Save and Activate 5.3.9 Right click on the aDSO definition and select DTP’s-> Create DTP 5.3.10 Select the transformation and click OK
  • 30. How to integrate external data into SAP BW powered by SAP HANA 27 | P a g e 5.3.11 In the extraction screen, notice that both Delta and Full load options are available. In this case select Delta. Activate DTP Note: In the DTP definition, Filter values can also be selected 5.3.12 To Load Data to the aDSO, go to the Execute tab and click Execute 5.3.13 In this step the data will be extracted from S/4HANA to BW/4HANA. Go to the monitor to check the BW Load.
  • 31. How to integrate external data into SAP BW powered by SAP HANA 28 | P a g e 5.3.14 The loads and delta can be monitored and managed in the Source system (S/4HANA) through transaction ODQMON 5.4 Optional Step 4 – Activate Real-Time Streaming Real-time streaming can be enabled for the dataflow created in the previous step. 5.4.1 In the HANA Studio, locate the BW project and select ‘Open SAP GUI’ button 5.4.2 Go to transaction RSPC 5.4.3 Click the Create new button Enter Process Chain Technical Name and Description 5.4.4 Enter the Start Process technical name and description
  • 32. How to integrate external data into SAP BW powered by SAP HANA 29 | P a g e Add the DTP and aDSO activation processes to the Process Chain 5.4.5 Select the streaming properties button from the menu and select the ‘Process Chain Runs in Streaming Mode’ check box. Set the Error threshold and Log retention according to requirements. Click OK 5.4.6 Save and activate the process chain The process chain is now streaming. 6. Replacing BW Extractors with CDS views in S/4HANA For the most-part, traditional BW extractors can be used to extract data from an S/4HANA system. Due to simplifications in the S/4HANA system, some extractors have been deprecated or can no longer be used in the same way. For these extractors, SAP may deliver CDS Views which are extraction relevant (via the analytical annotations). In this case, the methods of extracting and consuming data described in this document can be used.
  • 33. How to integrate external data into SAP BW powered by SAP HANA 30 | P a g e 7. Appendix @AbapCatalog.sqlViewName: 'ZIBWGLLINE2' @AbapCatalog.compiler.compareFilter: true @AccessControl.authorizationCheck: #CHECK @EndUserText.label: 'GL Account Line Item (BW Extraction)' @Analytics: { dataCategory: #FACT, dataExtraction: { enabled :true, delta.byElement.name : 'lastChangedAt', delta.byElement.maxDelayInSeconds : '100'}} define view Zi_Bw_Glacctline2 as select from I_GLAccountLineItem association [1..*] to Zi_Bwfi_Aedat as _BWDELTA on I_GLAccountLineItem.CompanyCode = _BWDELTA.CompanyCode and I_GLAccountLineItem.AccountingDocument = _BWDELTA.AccountingDocument and I_GLAccountLineItem.FiscalYear = _BWDELTA.FiscalYear { key I_GLAccountLineItem.CompanyCode, key I_GLAccountLineItem.FiscalYear, key I_GLAccountLineItem.AccountingDocument, key I_GLAccountLineItem.LedgerGLLineItem, I_GLAccountLineItem.Ledger, I_GLAccountLineItem.SourceLedger, I_GLAccountLineItem.LedgerFiscalYear, I_GLAccountLineItem.ChartOfAccounts, I_GLAccountLineItem.ControllingArea, I_GLAccountLineItem.GLAccount, I_GLAccountLineItem.CostCenter, I_GLAccountLineItem.ProfitCenter, I_GLAccountLineItem.FunctionalArea, I_GLAccountLineItem.BusinessArea, I_GLAccountLineItem.Segment, I_GLAccountLineItem.BalanceTransactionCurrency, I_GLAccountLineItem.AmountInBalanceTransacCrcy, I_GLAccountLineItem.BaseUnit, I_GLAccountLineItem.Quantity, I_GLAccountLineItem.FixedQuantity, I_GLAccountLineItem.CostSourceUnit, /* Associations */ _BWDELTA.ChangedTimeStamp, @Semantics.systemDate.lastChangedAt case when _BWDELTA.ChangedTimeStamp > I_GLAccountLineItem.CreationDateTime then cast(cast(cast(substring(cast(_BWDELTA.ChangedTimeStamp as abap.char(25)), 1, 14) as abap.numc( 14 )) as abap.dec (15, 0)) as rvlsttstmp) else cast(cast(cast(substring(cast(I_GLAccountLineItem.CreationDateTime as abap.char(25)), 1, 14) as abap.numc( 14 )) as abap.dec (15, 0)) as rvlsttstmp) end as lastChangedAt }
  • 34. How to integrate external data into SAP BW powered by SAP HANA 2 | P a g e