There are several reasons why you might want to filter and transform your data, such as the following:
To retrieve only the data of the last fiscal year
To save memory and transfer time by filtering
To avoid duplicates during N:1 replication
To recalculate fields on the fly
To scramble HR data
There are different tools to solve challenges such as those listed. Some of them are easier to use, while others require more technical knowledge and are thus for experts only. The different tools are described later.

Filter and Rule Options

The figure outlines the concept of transformation rules, which can be explained as follows:
The data for transformation is split into portions.
The default is as follows:
- Load: 10,000 lines
- Replication: 5,000 lines
The portions are processed successively, mapped, and transferred to the sender.
The extension of functionality, for example, data conversion, is possible at several points of the process.
The implementation of filter or data transformation occurs as ABAP coding.

A rule can filter or transform data during the load and replication process.
In transaction LTRS, choose Rule Assignment and add the relevant table. A new user interface appears, and you can create a new rule for the table.
You can choose between two different rule types:
Event-Related Rule
- More flexible
- Knowledge of data processing within the SAP Landscape Transformation Replication Server
- Has access to all fields of a record
Field-Related Rule
- Less flexible
- Easy to create by using parameters
As briefly discussed, there are different use cases for rules. However, you can group them into two different types:
Data Transformation Rule
For example, the SID field is newly created and is not available in the source table. No value is available.
- You want to fill the SID field with the unique value T40, which you see on SAP HANA, where the record is coming from.
- This is especially important in an N:1 scenario so that you avoid duplicates and see the origin.
Filter Rule
For example, within the table, you have several carriers, such as Lufthansa (LH), American Airlines (AA), and many more.
You want to move the data from the carrier Lufthansa ( CARRID = "LH") to SAP HANA.
Note
Remember that a rule is a small piece of ABAP code that can be defined as a separate ABAP include (or also defined directly in LTRS depending on the SLT version).
For cluster tables (such as BSEG), create a transformation or filter for BSEG for the initial load, and a transformation or filter for RFBLG for the replication.







