Вы находитесь на странице: 1из 13

Transformations

-Purna Kanagala

Use
Transformation converts the fields of the source into the format of the target. It helps to consolidate, cleanse, and integrate data. Also to semantically synchronize data from heterogeneous sources.

Sources->Targets
Source:

DataSource, InfoSource, DataStore object, InfoCube, InfoObject and InfoSet. Targets: InfoSource, InfoObject, DataStore object and InfoCube.

Whole Picture

How
Should

rule Transformation rules maps any number of source fields to at least one target field. It also has various rule types, transformation types, routine types, rule groups.

have at least one transformation

Rule type

A rule type is a specific operation that is applied to the relevant fields using a transformation rule. Direct Assignment:

The field is filled directly from the selected source InfoObject. If the source InfoObject to a target InfoObject has the same type but a different currency, then a currency translation is used Same applies as above for the units as well.

Rule type continues..


Constant:

Formula:

The field is not filled by the InfoObject; it is filled directly with the value specified. The InfoObject is updated with a value determined using a formula with the help of transformation library and formula builder. The transformation library, in collaboration with the formula builder, enables to create formulas, without using ABAP coding. The transformation library has over 70 pre-defined functions, in the following categories:

Read Master Data:

Functions for character strings, Date functions, Basic functions, Mathematical function ,Suitable functions , functions

The InfoObject is updated by reading the master data table of a characteristic that is included in the source with a key and a value and that contains the corresponding InfoObject as an attribute. The attributes and their values are read using the key and are then returned.

Rule type continues..

Routine:

The field is filled by the transformation routine written.


When performing a time update, automatic time conversion and time distribution are available. The field is not filled. It remains empty. The key figures are not written to the InfoProvider.

Time Update:

Initial:

No Transformation:

Transformation Type
The

transformation type determines how data is written into the fields of the target. Using the transformation type the user can control how a key figure or data field is updated to the InfoProvider.

Rule Group
A

rule group is a group of transformation rules. It contains one transformation rule for each key field of the target. A transformation can contain multiple rule groups. Rule groups allow you to combine various rules. This means that for a characteristic, you can create different rules for different key figures.

Routines in Transformations
You

use routines to define complex transformation rules. Routines are local ABAP classes that consist of a predefined definition area and implementation

Routines full picture

Routines

Start Routine

Routine for Key Figures or Characteristics

The start routine is run for each data package at the start of the transformation. The start routine has a table in the format of the source structure as input and output parameters. It is used to perform preliminary calculations and store these in a global data structure or in a table. This structure or table can be accessed from other routines. You can modify or delete data in the data package. This routine is available as a rule type; you can define the routine as a transformation rule for a key figure or a characteristic. The input and output values depend on the selected field in the transformation rule. An end routine is a routine with a table in the target structure format as input and output parameters. You can use an end routine to postprocess data after transformation on a package-by-package basis. For example, you can delete records that are not to be updated, or perform data checks. This type of routine is only intended for use in special cases. You can use the expert routine if there are not sufficient functions to perform a transformation. The expert routine should be used as an interim solution until the necessary functions are available in the standard routine.

End Routine

Expert Routine

Вам также может понравиться