Академический Документы
Профессиональный Документы
Культура Документы
Applies to:
SAP Business Information Warehouse 3.x, SAP NetWeaver Business Intelligence 7.0 all support packs
For more information, visit the Business Intelligence homepage.
Summary
This document describes how to use the functionality of BAdI Transformations in Open Hub InfoSpoke.
Using BAdI Transformation how to distribute data from multiple Data Targets to an external system.
Author Bio
Ramakrishna Kamurthy is working in SITA CORP India Pvt. Ltd., as SAP BI Conslutant having more than 3
years of SAP BW/BI experience. He is having more than a year experience on SAP BI Data Archiving.
Table of Contents
Scenario..............................................................................................................................................................3
Open Hub Service...........................................................................................................................................3
InfoSpoke with BAdI Transformations..........................................................................................................................3
Prerequisites ................................................................................................................................................................3
Procedure ....................................................................................................................................................................4
Step by Step Solution .........................................................................................................................................4
Logic ...................................................................................................................................................................8
Related Content................................................................................................................................................11
Disclaimer and Liability Notice..........................................................................................................................12
Scenario
Distributing the data from SAP BW to an external system as a CSV file. Open Hub Service is the SAP
delivered tool to distribute the data from SAP to an external system. The scenario here is how to work or use
BAdI Transformations in Open Hub InfoSpoke, when the BW Data Target structures are not meeting the
external system required structure. Using BAdI Transformations, system allows enhancing the target
structure of InfoSpoke as per the requirement.
Prerequisites
For the Transformation tab page, set the indicator for InfoSpoke with Transformation Using BAdI so that the
InfoSpoke is activated first. Then you arrive in the BAdI builder.
Procedure
Create your implementation for a BAdI called OPENHUB_TRANSFORM
In the BAdI Builder, provide the short text for the Implementation. The Implementation name is
always the same as the technical name of the InfoSpoke
The Implementation of this BAdI is always filter-dependent. Enter your InfoSpoke name as the filter
element. You can have only one implementation for each InfoSpoke
Activate the class
Maintain your code in Method of a class
Activate your method, return to your BAdI, return to your InfoSpoke
2. In the next screen, system asks for the confirmation to generate the necessary / required objects for
transformation. Select Yes.
4. Add defined filters in the same screen of Implementation maintenance. Select the InfoSpoke for
which the BAdI Transformation is to be implementing.
5. Select the Implementation Type in the Interface Tab. Select ABAP Code, activate the
Implementation.
6. Once the implementation activated successfully, it moves to the InfoSpoke maintenance screen,
system automatically generates the target structure and Addin Implementation
The following are the objects that system generated when the check box InfoSpoke with
Transformation using BAdI is checked.
Logic
Here in this example, data is distributing from the InfoCube ZIS_003 which maintains the information of the
Customers Sales details and materials. But the external source system requires material manufacturer
details along with this information. The manufacturer details are available in 0material InfoObject. So, using
BAdI Transformation providing the required solution.
Source Structure in the InfoSpoke maintains the same structure of InfoCube ZIS_003, Target Structure is
generated by enabling the BAdI Transformation check box. In order to distribute the required information as
per the external system, Target Structure is to be enhanced with Manufacturer InfoObject, and need to write
ABAP code to populate the data to the appended InfoObject.
1. Add the required field in the Target Structure of the InfoSpoke. Go to SE11, provide the Target
Structure name ie, /BIC/CZZIS_003 and select change or double click on Target Structure in
InfoSpoke maintenance. Add component Manufacturer of component type /BI0/0MANUFACTOR,
then activate.
2. Write ABAP code to populate the data to the appended field in the target structure. Go to SE19,
provide the Implementation name ZZIS_003 and go with change or double click on the
implementation name in the InfoSpoke screen, select the interface tab, double click on method
TRANSFORM. It takes to the ABAP editor to write the code.
The code shown here populates the data to MANUFACTOR field in the Target Structure
/BIC/CZIS_003 form the InfoObject 0MANUFACTOR.
3. Save the Class, return to the InfoSpoke maintenance screen and activate. Schedule the InfoSpoke, it
generates two excel files ie, one for schema and one for data, observe both the files, the schema file
contains the appended field and the data file contains the appended field with data.
Related Content
http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c5/03853c01c89d7ce10000000a11405a/content.htm