Transformations in SAP BI – Concept & Usage

Applies to:
SAP BI NetWeaver 2004s. For more information, visit the Business Intelligence homepage.

Summary
The objective of the article is to outline the details around concept and usage of Transformations in SAP BI. Author: Nalin Chawla

Company: Accenture Created on: 10 Feb 2010

Author Bio
Nalin Chawla is working as SAP BI Consultant in Accenture Services Private Ltd and having extensive experience in implementation of BI projects. Kartik Shanmuga is working as SAP BI Consultant in Accenture Services Private Ltd and having extensive experience in implementation of BI projects.

SAP COMMUNITY NETWORK © 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 1

.................Transformations in SAP BI – Concept & Usage Table of Contents Transformation: ..................................................................................................................................................................................sdn..................................................boc................................................ 11 SAP COMMUNITY NETWORK © 2009 SAP AG SDN ........................................... 9 Related Content ........ ..........................................................................................com | BOC ......................com | BPX .........sap................................................................................ 3 Click on “Transfer Values” to apply the rule for the BI target field...............bpx.......................................................sap.......................................................................................................................... 3 Standard BI transformations: .......................... 4 Data Enrichment: Cross References .............com 2 ......... 8 Programming Routines: ........ 10 Disclaimer and Liability Notice ................................................................sap..........

sap. These are: Direct Assignment: Source field value will be assigned to destination field value without any modification.bpx. which allows for integrative reporting on all these records.com 3 . 2. Standard BI transformations: BI has provided standard ways for transformations. Transformation of unit. cleanse and integrate data.com | BPX . Conditional Updates to the Infoprovider in order to make sure that only needed records will be written to the Infoprovider. Select the source field which you need to assign directly to the target field. 3.com | BOC . which converts the fields of the source into the format of the target. Modifications.sap. time or currency-code related to a uniform entity.boc. the data is passed through BI data transformation. enhancements or grouping of the loaded records before writing them into the Infoprovider which will be used for reporting afterwards.sap.Transformations in SAP BI – Concept & Usage Transformation: BI data transformation process enables you to consolidate. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . You can semantically synchronize the data flow from heterogeneous sources. There are 3 major usages for data transformation in SAP Netweaver BI: 1. When you load data from one BI object into further BI object.sdn.

sap.Transformations in SAP BI – Concept & Usage Click on “Transfer Values” to apply the rule for the BI target field.boc.sap. The constant value will be specified in the transformation rule.com | BPX .bpx. Constant: The value for field will be made constant.com 4 .sdn. For every record in BI object. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . field will have the specified constant value.com | BOC .sap.

boc.com | BOC .Transformations in SAP BI – Concept & Usage Click on “Transfer Values” to apply the rule for the BI target field.sdn.bpx.com | BPX . SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sap. Formula Calculation: The value for field will be calculated based on formula defined as per requirement. K4 will be the value for 0FISCVARNT for every record.com 5 .sap. Here In this rule.sap.

Transformations in SAP BI – Concept & Usage Select the source field to be used in formula.com | BPX .sdn.sap.com | BOC .com 6 . SAP COMMUNITY NETWORK © 2009 SAP AG SDN . Click on the “Semantic Check” after you have defined the Formula. ABAP Routine: ABAP routine will be used to calculate value for the specific field.boc.sap.sap. Target field will updated as per formula definition.bpx.

sap.Transformations in SAP BI – Concept & Usage Select the source fields to be used in ABAP Routine.com | BPX .boc.sdn.bpx.sap. Result value will be updated in the target field. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . Compounding plays significant role for reading MASTER DATA. Read Master Data: The value for field will be obtained by reading MASTER DATA of an infoobject.sap.com 7 . ABAP routine can return only one value.com | BOC .

Therefore you need to implement it yourself in Transformation using ABAP routine only. because these DDIC objects exists only after BI Content activation.boc.com | BOC . It is not recommended to program a select statement directly with regard to generated Data Store Object table instead of using the function module. For DataStore Object 0SPRO_D1 the name of the corresponding table is /BI0/ASPRO_D100. /BI0/A SPRO_D1 00 Prefix for generated DataStore Object Tables.Transformations in SAP BI – Concept & Usage Select the source field to be used for reading master data. It is often quicker and easier to implement a select to corresponding DataStore Object table instead of using function module. Make sure you read Infoprovider and master data with each read. Name of the DataStore Object without leading zero.com | BPX . SAP COMMUNITY NETWORK © 2009 SAP AG SDN . The select must be implemented with dynamic coding.sdn. Data Enrichment: Cross References There is no generic BI functionality for a read from an INFOPROVIDER.sap.sap.sap. suffix for active records (suffix 40 & 50 for inactive & change log respectively). The Data Store Table is generated if Data Store Object is created. Otherwise you will run into data inconsistency problem. especially when reading from Data Store Object tables. Note: Data load performance will decrease if you cross reference data from other Infoproviders during the upload process. The name of DataStore object table follows a naming convention.com 8 . Normally the function module RSDRI_INFOPROV_READ should be used to read the data from Infoproviders.bpx.

Transformations in SAP BI – Concept & Usage Programming Routines: Routines should be used if standard BI transformations opportunities are not sufficient. Routines can be assigned to transformations. The ABAP coding of the routines is integrated into the generated report that is responsible for data upload to the Infoproviders. You can use an end routine to postprocess data after transformation on a package-by-package basis.com 9 . If you have already created transformation rules.com | BPX .sap. In start routine. You can assign new values to the key figure or characteristic. Expert Routine: This type of routine is only intended for use in special cases. End Routine: An end routine is a routine with a table in the target structure format as input and output parameters.sap. You can use this to program the transformation yourself without using the available rule types. M and D like other BI content objects as well. Therefore the actual number of records in a data package and number of data package itself varies. Standard Routine: In standard routines you have access to single. For example. START Routine: Start Routines can be created for transformation. update rules. The expert routine should be used as an interim solution until the necessary functions are available in the standard routine. update rules and transfer rules. transfer rules and infoobject. you have access to all records of an entire data package. The routine itself is a BI object stored in table (RSAABAP). or perform data checks. During Data transfer process the coding in start routine will be called for each data package at beginning of transformation. currently processed record which has the work area SOURCE_FIELDS.sap. at end of routine. You can use the expert routine if there are not sufficient functions to perform a transformation. The routine has versions A.sdn. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . You can assign new values to key figure or characteristic by changing the value of RESULT. update rule or transfer rule processing.com | BOC . you can delete records that are not to be updated.bpx. Therefore it is not possible to calculate a new key figure values using aggregation/summation of key figures in the data package because you never know if other records for same aggregation level will be uploaded by one of the following data packages. This routine will be processed for each record after the start routine and is assigned to a single key figure or characteristic. The data package size will be determined at runtime and cannot be influenced. the system deletes them once you have created an expert routine.boc. You must implement the message transfer to the monitor yourself.

sap. visit the Business Intelligence homepage.com | BPX .Help.sdn.sap.boc.com 10 .com | BOC .Transformations in SAP BI – Concept & Usage Related Content Further Reading & References Sdn.com For more information. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sap.sap.sap.com www.bpx.

SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample.Transformations in SAP BI – Concept & Usage Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. You agree that you will not hold. or seek to hold. SAP will not be held liable for any damages caused by using or misusing the information.bpx.sdn. including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. code or methods suggested in this document. Changes made based on this information are not supported and can be overwritten during an upgrade.sap.sap.sap.com 11 . SAP responsible or liable with respect to the content of this document. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com | BOC . and anyone using these methods does so at his/her own risk.boc.com | BPX .

Sign up to vote on this title
UsefulNot useful