P. 1
BADI In Infospoke

BADI In Infospoke

|Views: 192|Likes:
Published by Aadil Mohammed

More info:

Published by: Aadil Mohammed on Feb 23, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/04/2015

pdf

text

original

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

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

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

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

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

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

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

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

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

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

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

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->