Professional Documents
Culture Documents
592 Step by Step Instructions On Enhancing A Datasource
592 Step by Step Instructions On Enhancing A Datasource
http://www.sdn.sap.com
Agenda
Data Load Overview
Extraction Performance
PSA, Transfer Rules, Update Rules
Loading InfoCubes and ODS Objects
Parallel Data Load
Aggregate Maintenance
Agenda
Data Load Overview
Extraction Performance
PSA, Transfer Rules, Update Rules
Loading InfoCubes and ODS Objects
Parallel Data Load
Aggregate Maintenance
Source
System
Business Information
Warehouse
ALE
InfoCube
BW
BW
S-API
S-API
Update
Rules
ODS
2003 SAP Labs, LLC,Know-How Netowke , Ron Silberstein5
Transfer
Rules
PSA
ALE
BW
BW
S-API
S-API
IDOC
tRFC
IDOC
Extractor
Extractor
Loading
Process
ALE
BW
BW
S-API
InfoCube
ODS
Master Data
Attributes
NEW
BW 3.0
Texts
Update rules
Update rules
Communication
Communication Structure
Structure
Communication
Communication Structure
Structure
Transfer Rules
Transfer Rules
transfer
transfer structure
structure
transfer
transfer structure
structure
transfer
transfer structure
structure
transfer
transfer structure
structure
Extraction
Extraction Source
Source Structure
Structure
Extraction
Extraction Source
Source Structure
Structure
Source
System
BW
S-API
BW
S-API
Header
Transaction Data
Item
DataSource
Master Data
DataSource
ATTR
TXT
Agenda
Data Load Overview
Extraction Performance
PSA, Transfer Rules, Update Rules
Loading InfoCubes and ODS Objects
Parallel Data Load
Aggregate Maintenance
Determine the
extraction time:
Extraction
S-API
ALE
Business Information
Warehouse
Source
System
Extractor
Extractor
Loading
Process
ALE
Scheduler
Update
rules
Transfer
rules
PSA
IDOC
tRFC
IDOC S-API
Check SM51 /
SM50 in the
source system
10
11
Identify
expensive
SQL
Statements
12
Expected Results:
Avoid CPU/Memory bottlenecks on one server
Greater Throughput: Faster time to completion per request
13
Scenario:
Set up the parameters according to the recommendations; if upload
performance is not improved, try to find other values that fit exactly your
requirements.
Expected results:
In a resource constrained systems, reduce DataPackage size
In larger systems, increasing the package size to speed collection;
but take care not to impact communication process and unnecessarily hold work
processes in SAP source system.
14
Further
Analysis
in case of
Resource
problems
when
extracting
data...
OSS note
409641 for
details
15
16
?
?
Consider building indices on DataSource
Tables based on selection criteria
17
Generic extractors:
Collector jobs can be executed in parallel
InfoPackages executed in parallel to extract data
Not possible for delta extracts from one generic data source
18
19
Agenda
Data Load Overview
Extraction Performance
PSA, Transfer Rules, Update Rules
Loading InfoCubes and ODS Objects
Parallel Data Load
Aggregate Maintenance
20
21
S-API
ALE
Business Information
Warehouse
Source
System
ALE
ALE
InfoCube
ODS
Update
rules
Transfer PSA
rules
IDOC
tRFC
IDOC S-API
Extractor
Extractor
Loading
Process
ALE
Scheduler
PSA Partitioning
22
PSA
Data Load
PSA Table
Partitions
23
S-API
ALE
Business Information
Warehouse
Source
System
ALE
Extractor
Extractor
Loading
Process
ALE
Scheduler
ALE
InfoCube
ODS
Update
rules
Transfer PSA
rules
IDOC
tRFC
IDOC S-API
24
S-API
ALE
Business Information
Warehouse
Source
System
ALE
Extractor
Extractor
Loading
Process
ALE
Scheduler
ALE
InfoCube
ODS
Update
rules
Transfer PSA
rules
IDOC
tRFC
IDOC S-API
Update Rules
25
26
Agenda
Data Load Overview
Extraction Performance
PSA, Transfer Rules, Update Rules
Loading InfoCubes and ODS Objects
Parallel Data Load
Aggregate Maintenance
27
28
S-API
ALE
Business Information
Warehouse
Source
System
ALE
Extractor
Extractor
Loading
Process
ALE
Scheduler
ALE
InfoCube
ODS
Update
rules
Transfer PSA
rules
IDOC
tRFC
IDOC S-API
Scenario:
High volumes of transaction data: significant DB access
(NRIV table) to fulfill number range requests.
Expected Results:
Accelerates data load performance per load request.
Note:
After the load, reset the number ranges buffer to its
original state: minimize unnecessary memory allocation.
29
30
Scenario:
Always load master data before transaction data (ODS and
InfoCube).
When completely replacing existing data, delete before load!
Expected Results:
Accelerates transaction data load performance: all master data SIDs
are created prior to transaction load, and need not be determined
during transactional data load (large overhead).
Scenario:
When completely replacing existing data, delete before load!
Expected Results:
Data deleted from PSA can reduce PSA read times
Data deleted from InfoCube reduces deletion and compression
time.
Drop partition... DDL statement instead of delete from table... DML
statement only takes seconds
31
32
active data
Doc-No.
change log
Activation
Activation
Locking on
Activation table
Doc-No.
New/modified
data
Activation
queue
Req1
Sequential
load
Req1
Req2
Req2
Req3
Req 3,1,2
Staging
Staging Engine
Engine
Req3
33
Doc-No.
active data
change log
Activation
Activation
Doc-No.
New/modified
data
Req1
Activation
queue
Req1
Req2
Req2
Req3
Req3
Staging
Staging Engine
Engine
2003 SAP Labs, LLC,Know-How Netowke , Ron Silberstein33
Parallel load
34
Change log
Req.ID I Pack.ID I Rec.No
4711 I 10
ODSRx I P 1 I Rec.1I4711I 10
4711 I 30
ODSRy I P 1 I Rec.1I4711I-10
ODSRy I P 1 I Rec.2I4711I+30
Activation
During activation the data is sorted by the
logical key of active data plus change log key.
This guarantees the correct sequence of the
records and allows inserts instead of table
locks.
Activation
Activation queue
REQU1 I P 1 I Rec.1I4711I 10
REQU2 I P 1 I Rec.1I4711I 30
Req1
Req2
Req3
Staging
Staging Engine
Engine
36
Loads are faster as Master Data SID tables do not have to be read
and linked to the ODS data
2003 SAP Labs, LLC,Know-How Netowke , Ron Silberstein36
Index maintenance
Indexes speed querying
Slow down activation
38
Agenda
Data Load Overview
Extraction Performance
PSA, Transfer Rules, Update Rules
Loading InfoCubes and ODS Objects
Parallel Data Load
Aggregate Maintenance
39
40
System-controlled parallelism
Parallel upload by packaging the source data
Packets are created during the extraction and sent simultaneously to BW
Packet size for flat files definable in table RSADMINC (IDOCPACKSIZE)
Packet size for mySAP source systems definable in table ROIDOCPRMS
(MAXLINES)
41
Extraction
Staging
Engine
ODS Object
Data Packets
42
1
2
3
43
Option 1
Option 4
1 BTC
n DIA
1 BTC
Option 2
n DIA
Option 3
Option 5
Transaction RSPC
Process type :
Delete Index
Generate Index
Auto suggestion depending on
InfoPackage selected.
44
45
Agenda
Data Load Overview
Extraction Performance
PSA, Transfer Rules, Update Rules
Loading InfoCubes and ODS Objects
Parallel Data Load
Aggregate Maintenance
46
Aggregate Roll-Up
47
Roll-up
The roll-up process populates all aggregates of an InfoCube
with the newly loaded delta load
Basic Rule: InfoCube and all depending aggregates must be
in-sync, i.e. you must see the same data no matter if it has
been derived from the InfoCube or the aggregate
Newly loaded data is not available for reporting until it has
been rolled up into the aggregates
Aggregate Hierarchy
Aggregates can be built out of other aggregates to reduce the
amount of data to be read and, hence, to improve the roll-up
performance
Aggregate hierarchy is determined automatically
General Guideline: define few basis (large) aggregates and
many small aggregates that can be built from the hierarchy
level before
Display aggregate
hierarchy
Aggregate Hierarchy
Example: Optimized Aggregate Hierarchy
Basic InfoCube
Few large
basis
aggregates
Many small
aggregates
48
Example
{Material,
Material
Group,
Customer,
Day}
{Material
Group,
Customer,
Day}
{Material
Group,
Month}
Change Run
49
Change Run
Aggregates can contain
Dimension Characteristics
Navigational Attributes
Hierarchy Levels