SAP BW Info Source and Update Rule

26
Confidential SAP BW Info Source and Update Rule

description

SAP BW INFO SOURCE

Transcript of SAP BW Info Source and Update Rule

Page 1: SAP BW Info Source and Update Rule

Confidential

SAP BW Info Source and Update Rule

Page 2: SAP BW Info Source and Update Rule

Confidential

Content

2

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

3. Use of Transformation 3. Use of Transformation

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

Page 3: SAP BW Info Source and Update Rule

Confidential

Content

3

2. Introduction to SAP BW Update Rule

3. Use of Transformation

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

Page 4: SAP BW Info Source and Update Rule

Confidential

1. Introduction to Info Source

Data Source and Info Source Data Flow

Page 4

Page 5: SAP BW Info Source and Update Rule

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

Page 6: SAP BW Info Source and Update Rule

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

Page 7: SAP BW Info Source and Update Rule

Confidential

1. Introduction to Info Source

Defining Transfer Rule

Page 7

Page 8: SAP BW Info Source and Update 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

Page 9: SAP BW Info Source and Update Rule

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side

Page 9

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

Page 10: SAP BW Info Source and Update Rule

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side

Page 10

Choose create info source

Page 11: SAP BW Info Source and Update Rule

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side

Page 11

If we want to create info source for transaction

If we want to create info source for master data

Page 12: SAP BW Info Source and Update Rule

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side

Page 12

Every info source has to be 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 13: SAP BW Info Source and Update Rule

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.

Page 13

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 14: SAP BW Info Source and Update Rule

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side Communication Structure

Page 14

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 15: SAP BW Info Source and Update Rule

Confidential

1. Introduction to Info Source

Creating Info Source on SAP BW side Transfer Rule

Page 15

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 16: SAP BW Info Source and Update Rule

Confidential

Content

16

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

3. Use of Transformation

1. Introduction to SAP BW Info Source

Page 17: SAP BW Info Source and Update Rule

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

Page 18: SAP BW Info Source and Update Rule

Confidential

2. Introduction to SAP BW Update Rule

Extraction and Update Rule

Page 18

Page 19: SAP BW Info Source 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

Page 20: SAP BW Info Source and Update Rule

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

Page 21: SAP BW Info Source and Update Rule

Confidential

2. Introduction to SAP BW Update Rule

Start Routine (Cont.)

Page 21

Page 22: SAP BW Info Source and Update Rule

Confidential

Content

22

2. Introduction to SAP BW Update Rule

3. Use of Transformation 3. Use of Transformation

1. Introduction to SAP BW Info Source

Page 23: SAP BW Info Source and Update Rule

Confidential

3. Transformation Method

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.

Page 23

Page 24: SAP BW Info Source and Update Rule

Confidential

3. Transformation

Info Package and Data Transfer Processes

Page 24

Page 25: SAP BW Info Source and Update Rule

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

Page 26: SAP BW Info Source and Update Rule

Confidential

Content

26

Any Questions ?