0% found this document useful (0 votes)
403 views

SAP BW Info Source and Update Rule

This document provides an overview of SAP BW Info Sources, Update Rules, and Transformations. It discusses: - What an Info Source is and how it is used to store and transfer data from a data source using transfer rules. - How update rules are used to transfer data from an Info Source communication structure to a data target and the different update types and methods. - How transformations in SAP BW 7.0 replace update and transfer rules, using info packages to transfer data between sources and targets.

Uploaded by

Hardy Sim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
403 views

SAP BW Info Source and Update Rule

This document provides an overview of SAP BW Info Sources, Update Rules, and Transformations. It discusses: - What an Info Source is and how it is used to store and transfer data from a data source using transfer rules. - How update rules are used to transfer data from an Info Source communication structure to a data target and the different update types and methods. - How transformations in SAP BW 7.0 replace update and transfer rules, using info packages to transfer data between sources and targets.

Uploaded by

Hardy Sim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 26

SAP BW Info Source and Update Rule

Confidential

Content

1.
1. Introduction
Introduction to
to SAP
SAP BW
BW Info
Info Source
Source

2.
2. Introduction
Introduction to
to SAP
SAP BW
BW Update
Update Rule
Rule

3.
3. Use
Use of
of Transformation
Transformation

Confidential

Content

1.
1. Introduction
Introduction to
to SAP
SAP BW
BW Info
Info Source
Source
2. Introduction to SAP BW Update Rule
3. Use of Transformation

Confidential

1. Introduction to Info Source

Page 4

Data Source and Info Source Data Flow

Confidential

1. Introduction to Info Source

A DataSource describes the data supply for a source system


in the form of field structures. The DataSource consists of the
extraction source structure (all fields provided) and the
transfer structure (selection of fields from the extraction
source structure). The DataSource is replicated in SAP BW.

An InfoSource is a set of logically associated information.


The communication structure is the field structure in which
the information is stored.

Transfer rules transform data from several transfer


structures, if necessary, into a communication structure.

Update rules transform data from a communication


structure into one or more data targets.

Page 5

Confidential

1. Introduction to Info Source

Transfer rules transfer data from the DataSource into the


InfoSource and, in doing so, possibly transform and modify the
data. A prerequisite is that one or more DataSources need to be
assigned to an InfoSource. Transfer rules are specific to the
source system. With the transfer rules you determine which
InfoObjects from the communication structure are filled from
which transfer structure fields and which method is thereby
used.

Methods of transfer rule:


Data is transferred 1:1 (no data manipulation).
The communication structure fields can be assembled with a constant. This can be
useful, for example, if the InfoSource is filled from a source system that was
exclusively posted with data from company code 1000. If the DataSource does not
contain the company code, then the "Company Code" InfoObject can be occupied
with a fixed value of 1000.
Transfer rules can be flexibly structured with a local ABAP routine.

Page 6

Confidential

1. Introduction to Info Source

Page 7

Defining Transfer Rule

Confidential

1. Introduction to Info Source

Info Source:
is a quantity of InfoObjects that belong together and that contain all available information for
a business process (for example, cost center accounting). The structure in which these are
stored is called a communication structure. The communication structure is the technical
realization of the InfoSource. The communication structure is, in contrast to the transfer
structure, dependent on the source system, because the communication structure can be
supplied from different source systems. An InfoSource is created in the InfoSource tree
underneath an application component.

Two different types of InfoSource:


InfoSource with Flexible UpdatingWith an InfoSource with flexible updating, data is loaded
from the communication structure into the data targets (InfoCubes, ODS objects, InfoObjects)
when using update rules. Several data targets can be provided by one InfoSource. In doing so,
the InfoSource can also include master data. Up to and including Release 2.1C, master data
and transaction data InfoSources were differentiated. This difference no longer exists as of
Release 3.0A, because transaction data and master datacan now be flexibly updated.
InfoSource with Direct UpdateWith an InfoSource with direct updating, master data
(characteristics with attributes, texts, or hierarchies) from an InfoObject can be directly
updated (without update rules and only when using transfer rules) into the master data table
by using the communication structure.

Page 8

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side

Choose which
application
component you want
to store the info
source.

Page 9

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side


Choose create info
source

Page 10

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side


If we want to
create info
source for
transaction
If we want to
create info source
for master data

Page 11

Confidential

1. Introduction to Info Source

Every info source has to be

Creating Info Source on SAP BW side


followed by transfer rule, transfer
structure and communication
structure.
So after we create an info source
we have to create transfer rule

Transfer rule and Source system


is one to one relationship.
So we only can have one transfer
rule for one source system.
This step is to assign the transfer
rule to a specific source system
Page 12

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side


If we choose a source system other than Flat file source system, we are able to
choose the data source which the info source will be communicate with.
This is the list of available data
source from SAP R/3 DEV
client 110

Note: we only can use 1 data


source for one info source.
If the data source has already
been used by other info
source, it will be not be
appeared in the data source
list
Page 13

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side


Communication Structure

Fill all the info object that will


be communicate with other
SAP BW Object

You can use direct input or


using a template from the right
hand side and move it to your
left hand side

Page 14

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side


Transfer Rule

After we fill the


communication structure,
The right hand side of the
transfer rule will be filled
by all the info object in
communication structure.

Now, we have to assign all the


field in left hand side to at least
one info object in the right
hand side.

Page 15

Confidential

Content

1. Introduction to SAP BW Info Source

2.
2. Introduction
Introduction to
to SAP
SAP BW
BW Update
Update Rule
Rule
3. Use of Transformation

16

Confidential

2. Introduction to SAP BW Update Rule

The update rules specify how the data (key figures, time
characteristics, characteristics) is updated from the communication
structure for an InfoSource into a data target. You are thus
connecting an InfoSource to a data target.

In contrast to transfer rules, update rules are not specific to the


source system, but rather are specific to the data target

With the help of update rules, data targets can be filled with data
from one or more InfoSources. They are used for posting data in the
data targets as well as the derivation and modification of data.

Update rules assign the InfoObjects from the InfoSource to the


InfoObjects from the data targets. This means that you are
specifying how the key figures and characteristics are transferred
from the communication structure into the data target.

Page 17

Confidential

2. Introduction to SAP BW Update Rule

Page 18

Extraction and Update Rule

Confidential

2. Introduction to SAP BW Update Rule

Update Rule: Key Figure

Update Type
you can control whether or not a key figure is updated in the data target. The following
update types exist:
With Addition, the key figure values for the data records are added that have the same
value for the respective characteristics.
If you choose No Update, the key figures are not written to the data target.

Update Method
you can control how a key figure is updated in the data target. You have the following
selection options:
Source key figure: The field is filled directly from a source key figure belonging to the
communication structure.
Routine: The target field is determined by an ABAP program. All ABAP programming
functions are available in the routine. In general, routines only have one return value for
key figures.
Formula: The target field is determined by a formula from one or more source fields.
The formula editor is described in detail at the end of the lesson.

Page 19

Confidential

2. Introduction to SAP BW Update Rule

Update Rule: Characteristic


The following update methods are available for updating characteristics:
Source characteristic.
Routine.
Master data attribute from: The attribute update occurs by deriving another
characteristic from the master data table.
Constants: The target field is directly filled with a constant value.
Formula.
Initial value: The field is filled with the initial value.

Start Routine
The start routine is a routine that is executed at the beginning of the update.
Within the routine you can access the entire data package.
Example:
You can use the start routine in order to generate internal tables that you can
then use in the routines for key figures and characteristics. The advantage of
this is better performance, because you can avoid accessing the database in
update rules for key figures and routines.

Page 20

Confidential

2. Introduction to SAP BW Update Rule

Page 21

Start Routine (Cont.)

Confidential

Content

1. Introduction to SAP BW Info Source


2. Introduction to SAP BW Update Rule

3.
3. Use
Use of
of Transformation
Transformation

22

Confidential

3. Transformation Method

Page 23

In SAP BW 7.0 above, update rule and transfer rule will be replace
by Transformation methods. The purpose of the transformation is
same as both old rule. Below is the graphics for the transformation.

Confidential

3. Transformation

Page 24

Info Package and Data Transfer Processes

Confidential

3. Transformation

New Things in Transformation Methods in SAP BW 7.0


Transformation rule similar with the update rule in transformation methods in SAP
BW 3.5
End routine (completely new)
An end routine is a routine with a table in the target structure format as an input
parameter and as an output parameter. You can use an end routine to execute the
post processing of data after transformation on a package-by-package basis. For
example, you can delete records that are not to be updated, or perform data
quality checks.
Expert Routine
This type of routine is only intended for use in special cases. You can use this to
program the transformation yourself without using the available rule types.
You must implement the message transfer to the monitor yourself. Unless this is
done correctly, you will not be able to monitor the DTP. If you have already created
transformation rules, the system deletes them once you have created an expert
routine.

Page 25

Confidential

Content

Any Questions ?

26

Confidential

You might also like