Professional Documents
Culture Documents
Applies to:
SAP BI 7.0
Summary
This article demonstrates how to use the Rule Group functionality in Transformation Rules. It is explained
with the help of an example where data is the source system is modeled as a Key Figure Model and while
loading it into Business Warehouse it is converted into Account Model using Rule Groups in Transformation.
Author:
Chintan Doshi
Author Bio
Chintan Doshi is a BI Consultant and has been involved in numerous BI implementations in North America.
At present he is working with a Public Sector Company in NYC where he is the SAP BI Specialist.
Table of Contents
Business Scenario: .............................................................................................................................................3
Introduction to Rule Group..................................................................................................................................3
Step by Step Solution .........................................................................................................................................4
Related Content..................................................................................................................................................9
Disclaimer and Liability Notice..........................................................................................................................10
Business Scenario:
DataModel in the source system is a KeyFigure Model where each KPI is represented as a separate field. In
Business Warehouse you decide to model the same data using the Account Model.
Records in source system: Actual and Plan Amount are represented as separate fields.
Company Code
1000
1000
1000
Account
5010180001
5010180001
5010180001
Actual Amount
100
200
300
Currency
USD
USD
USD
Plan Amount
400
450
500
Currency
USD
USD
USD
Records in business warehouse: Single KeyFigure represents both Actual and Plan Amount. They are
differentiated using the characteristic Version (Version = 010 represents Actual Amount and Version = 020
represents Plan Amount in this example).
Company Code
1000
1000
1000
1000
1000
1000
Account
5010180001
5010180001
5010180001
5010180001
5010180001
5010180001
Version
010
010
010
020
020
020
Amount
100
200
300
400
450
500
Currency
USD
USD
USD
USD
USD
USD
2. Default Transformation which is created is always assigned to the Standard Rule Group. In this
example we will make use of Standard Rule Group to derive the actual amount.
3. Set version to constant 010 (to represent actual amount).
4. Map source field representing the actual amount to the KeyFigure in InfoCube.
5. Create a new Rule Group (Click the drop down in the box which says Rule Group and select New
Rule Group)
6. Specify the description for the New Rule Group and hit enter.
7. Set version to constant 020 (to represent plan amount). System will display a pop-up as shown in
figure below. New Rule Group is created as a reference of the Standard Rule Group. If we select
No here than the change we do here will also apply to the referenced Rule Group (in this case the
Standard Rule Group). Selecting Yes will create a copy of the original rule removing the reference
to the original rule. Select Yes and set the version to the required value.
8. Map source field representing the actual amount to the KeyFigure in InfoCube.
13. If you check the request monitor of the DTP there it can be seen that 3 records from the source were
converted into 6 records while updating the InfoCube.
14. Finally figure below shows the content of the InfoCube after data load.
Related Content
http://help.sap.com/saphelp_nw2004s/helpdata/en/f8/7913426e48db2ce10000000a1550b0/frameset.htm