You are on page 1of 6

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 to enhance the target structure of InfoSpoke as per the requirement.

Open Hub Service


The Open Hub service enables you to distribute data from an SAP BW system into external data marts, analytical applications, and other applications. With this, you can ensure controlled distribution using several systems. Through the Open Hub service, SAP BW becomes the hub of an enterprise data warehouse. The distribution of data becomes clear through central monitoring from the distribution status in the BW system. InfoSpoke The main component or the central object of Open Hub Service for export of data. Using this, you can define the object from which the data comes and into which target it is transferred. InfoSpoke is Data Target specific, need to create individual InfoSpoke for each BW object to distribute the data. Supported BW Objects Following objects are acts as data source for Open Hub, InfoCubes ODS Objects InfoObjects (Characteristic) Supported Destinations Following are acts as Open Hub destinations, Database Tables Flat Files Supported Extraction Modes Following are the extraction mode supports Open Hub Full Delta Transaction RSBO

Business Add-Ins (BAdis)


Business add-ins are enhancements to the standard version of the system. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.

Confidential

Prepared by Ramakrishna Kamurthy

Views Defination View - In the definition view, an application programmer defines exit points in a source that allow specific industry sectors, partners, and customers to attach additional coding to standard SAP source code without having to modify the original object. Implementation View - In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard solution if one is available. Dependent Objects The following are the objects that we need to maintain while creating a BAdi. Implementation Defination Name Interface Name Implementing Class Method and Parameters

Step by step solution


1. Allow InfoSpoke to execute a
transformation step between extracting the data and transfer it into an open hub destination. Go to transaction RSBO, provide InfoSpoke name, go to transformation tab, select the check box InfoSpoke with Transform. Using BAdi

2. In the next screen, system ask for the confirmation to generate the necessary / required objects for transformation. Select Yes.

Confidential

Prepared by Ramakrishna Kamurthy

3. It moves automatically to BAdi Builder Implementation administration screen to maintain the Implementation. Provide the Short Text for the Implementation.

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. Once the implementation activated successfully, it moves to the InfoSpoke maintenance screen shown below.

Confidential

Prepared by Ramakrishna Kamurthy

System automatically generates the target structure and Addin implementation. The following are the objects that system generated when the check box InfoSpoke with Transfor. Using BAdI:

Implementation Name: Z<InfoSpoke Name> : ZZIS_003 Defination Name : OPENHUB_TRANSFORM Interface Name : IF_EX_OPENHUB_TRANSFORM Implementing Class : ZCL_IM_<InfoSpoke Name> : ZCL_IM_ZIS_003 Method : TRANSFORM Source Structure* Target Structure : /BIC/CY<InfoSpoke Name> : /BIC/CYZIS_003 : /BIC/CZ<InfoSpoke Name> : /BIC/CZZIS_003

Logic * Source Structure will generate by default with structure of maintains the from Here in this example, data is distributing from the InfoCube ZIS_003 whichthe BW Object information of which the data to be distributing, by activating the system requires material the Customers Sales details and materials. But the external sourceInfoSpoke 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.

Confidential

Prepared by Ramakrishna Kamurthy

6. 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.

7. 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.

Confidential

Prepared by Ramakrishna Kamurthy

Result

Confidential

Prepared by Ramakrishna Kamurthy