Implementing BAdI Transformations in Open Hub InfoSpoke

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: Ramakrishna Kamurthy

Company: SITA CORP India Pvt. Ltd. Created on: 16 February 2009

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.

SAP COMMUNITY NETWORK © 2009 SAP AG

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

...................................................com | BPX ...............................................................................................com 2 .................8 Related Content...........................................................................................................3 Prerequisites .......................................................................................................................................................................................................................................................................................sdn.....................................................................................sap...................................................bpx............................sap................................................................................4 Step by Step Solution ..................................Implementing BAdI Transformations in Open Hub InfoSpoke Table of Contents Scenario...........................................................11 Disclaimer and Liability Notice...................3 InfoSpoke with BAdI Transformations.............4 Logic ............................................................................3 Open Hub Service...com | BOC ...........................................................................................................................................................................12 SAP COMMUNITY NETWORK © 2009 SAP AG SDN ...............3 Procedure ............................................sap......................................................................boc......................

system allows enhancing the target structure of InfoSpoke as per the requirement. Open Hub Service is the SAP delivered tool to distribute the data from SAP to an external system. Open Hub Service The open hub service enables you to distribute data from an SAP BW system into external data marts. and other applications. The central object for the export of data is the InfoSpoke.com 3 . Using this.sap. InfoSpoke with BAdI Transformations You have the option of transforming the data to be transferred using a Business Add-In (BAdI). you can define the object from which the data comes and into which target it is transferred. when the BW Data Target structures are not meeting the external system required structure. set the indicator for InfoSpoke with Transformation Using BAdI so that the InfoSpoke is activated first.boc.sdn.sap.Implementing BAdI Transformations in Open Hub InfoSpoke Scenario Distributing the data from SAP BW to an external system as a CSV file.bpx. Then you arrive in the BAdI builder.com | BPX . The original structure for transfer is thereby the InfoObject list. Prerequisites For the Transformation tab page. With this. analytical applications. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . The scenario here is how to work or use BAdI Transformations in Open Hub InfoSpoke. you can ensure controlled distribution using several systems.sap.com | BOC . Using BAdI Transformations.

Using BAdI SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sap. return to your BAdI.com 4 . The Implementation name is always the same as the technical name of the InfoSpoke The Implementation of this BAdI is always filter-dependent. Allow InfoSpoke to execute a transformation step between extracting the data and transfer it into an open hub destination.boc.sap. and select the check box – InfoSpoke with Transform. Go to transaction RSBO. return to your InfoSpoke Step by Step Solution 1. provide InfoSpoke name.com | BOC .bpx.Implementing BAdI Transformations in Open Hub InfoSpoke Procedure Create your implementation for a BAdI called OPENHUB_TRANSFORM In the BAdI Builder. You can have only one implementation for each InfoSpoke Activate the class Maintain your code in Method of a class Activate your method. go to transformation tab.com | BPX .sdn. Enter your InfoSpoke name as the filter element.sap. provide the short text for the Implementation.

3.sap.com | BOC .bpx. In the next screen. It moves automatically to BAdI Builder – Implementation administration screen to maintain the implementation.com 5 . system asks for the confirmation to generate the necessary / required objects for transformation. Select Yes. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sap.Implementing BAdI Transformations in Open Hub InfoSpoke 2.sap. Provide the Short Text for the Implementation.com | BPX .boc.sdn.

com | BPX .boc.Implementing BAdI Transformations in Open Hub InfoSpoke 4.sap.sap.sap.com | BOC . SAP COMMUNITY NETWORK © 2009 SAP AG SDN . Select the Implementation Type in the Interface Tab. 5.sdn.bpx. Add defined filters in the same screen of Implementation maintenance. activate the Implementation. Select the InfoSpoke for which the BAdI Transformation is to be implementing. Select ABAP Code.com 6 .

sap.sap.bpx.sap. 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. Once the implementation activated successfully.com | BOC .boc.Implementing BAdI Transformations in Open Hub InfoSpoke 6.com 7 . Implementation Name : Z<InfoSpoke Name> : ZZIS_003 Defination Name Interface Name Implementing Class Method Source Structure* : OPENHUB_TRANSFORM : IF_EX_OPENHUB_TRANSFORM : ZCL_IM_<InfoSpoke Name> : ZCL_IM_ZIS_003 : TRANSFORM : /BIC/CY<InfoSpoke Name> : /BIC/CYZIS_003 SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com | BPX . it moves to the InfoSpoke maintenance screen.sdn.

com 8 . In order to distribute the required information as per the external system. So.boc. 1.sap.sdn. and need to write ABAP code to populate the data to the appended InfoObject.com | BOC . Go to SE11.sap. then activate. Add component Manufacturer of component type /BI0/0MANUFACTOR. /BIC/CZZIS_003 and select change or double click on Target Structure in InfoSpoke maintenance. data is distributing from the InfoCube ZIS_003 which maintains the information of the Customers Sales details and materials. provide the Target Structure name ie. using BAdI Transformation providing the required solution.bpx. The manufacturer details are available in 0material InfoObject. Target Structure is to be enhanced with Manufacturer InfoObject. Add the required field in the Target Structure of the InfoSpoke. But the external source system requires material manufacturer details along with this information. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . Source Structure in the InfoSpoke maintains the same structure of InfoCube ZIS_003.sap.Implementing BAdI Transformations in Open Hub InfoSpoke Logic Here in this example.com | BPX . Target Structure is generated by enabling the BAdI Transformation check box.

provide the Implementation name ZZIS_003 and go with change or double click on the implementation name in the InfoSpoke screen. Go to SE19.com | BOC . double click on method TRANSFORM. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sdn. Write ABAP code to populate the data to the appended field in the target structure.sap.sap.sap.com | BPX .Implementing BAdI Transformations in Open Hub InfoSpoke 2.bpx. The code shown here populates the data to MANUFACTOR field in the Target Structure /BIC/CZIS_003 form the InfoObject 0MANUFACTOR.com 9 .boc. select the interface tab. It takes to the ABAP editor to write the code.

boc.sap. return to the InfoSpoke maintenance screen and activate. it generates two excel files ie. one for schema and one for data. observe both the files.Implementing BAdI Transformations in Open Hub InfoSpoke 3. the schema file contains the appended field and the data file contains the appended field with data.bpx.com 10 . SAP COMMUNITY NETWORK © 2009 SAP AG SDN . Schedule the InfoSpoke. Save the Class.sap.com | BPX .sdn.com | BOC .sap.

sap.htm http://help.htm SAP COMMUNITY NETWORK © 2009 SAP AG SDN .htm http://help.com 11 .sap.com | BOC .sap.com | BPX .boc.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.sdn.sap.Implementing BAdI Transformations in Open Hub InfoSpoke Related Content http://help.bpx.sap.com/saphelp_nw04/helpdata/en/c5/03853c01c89d7ce10000000a11405a/content.

com | BPX .Implementing BAdI Transformations in Open Hub InfoSpoke 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.bpx.sap.sap.sdn.boc. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP responsible or liable with respect to the content of this document.sap. code or methods suggested in this document. 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. SAP will not be held liable for any damages caused by using or misusing the information. and anyone using these methods does so at his/her own risk.com | BOC . including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com 12 . or seek to hold.

Sign up to vote on this title
UsefulNot useful