Upload
others
View
10
Download
0
Embed Size (px)
Citation preview
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 1
InfoSpokes and OpenHubs in SAP
BI
Applies to:
SAP NetWeaver BW. For more information, visit the EDW homepage.
Summary
Detailed description of the usage of InfoSpokes and OpenHubs in SAP BI
Authors: Shyam Uthaman & Gundeep Singh
Company: Accenture Services Pvt. Ltd.
Created on: 10 March 2011
Author Bio
Shyam Uthaman is working as SAP-BI Consultant in Accenture Services Private He is working simultaneously on multiple projects for different clients in Accenture.
Gundeep Singh is working as SAP BI Consultant in Accenture Services Private Ltd and having extensive experience in implementation of BI/ABAP projects specializing in SCM areas.
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 2
Table of Contents
Open Hub Service .............................................................................................................................................. 3
Functions ......................................................................................................................................................... 3
Components of the Open Hub Service ........................................................................................................... 3 InfoSpoke ..................................................................................................................................................................... 3
Open Hub Data Source ................................................................................................................................................ 4
Extraction Mode ........................................................................................................................................................... 4
Open Hub Destination .................................................................................................................................................. 4
Creating InfoSpokes ........................................................................................................................................... 4
General tab ..................................................................................................................................................... 6
Destination tab ................................................................................................................................................ 6
InfoObjects tab ................................................................................................................................................ 7
Selection tab ................................................................................................................................................. 10
Transformation tab ........................................................................................................................................ 11
Activating and Executing InfoSpokes ............................................................................................................ 12
Creating OpenHubs .......................................................................................................................................... 13
Result:………. ................................................................................................................................................... 18
Related Content ................................................................................................................................................ 19
Disclaimer and Liability Notice .......................................................................................................................... 20
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 3
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. The central object for the export of data is the InfoSpoke. Using this, you can define the object from which the data comes and into which target it is transferred.
Through the open hub service, SAP BW becomes a hub of an enterprise data warehouse. The distribution of data becomes clear through central monitoring from the distribution status in the BW system.
Functions
BW objects such as InfoCubes, ODS objects, or InfoObjects (attributes or texts) can act as open hub data sources. You can select database tables or flat files as open hub destinations. Both a full and a delta mode are also available as the extraction mode.
Components of the Open Hub Service
The open hub service is made up of the following objects:
InfoSpoke
The central object for the data export is the InfoSpoke.
The InfoSpoke defines the following:
The open hub data source from which the data is extracted
The extraction mode
The open hub destination into which the data is delivered.
In addition, you can also select which data selection is to be extracted from which InfoProviders. This selection ensures that a destination for different points in time from the same InfoProvider can be supplied with data for different selection criteria using a delta. The selection set is freely configurable as long as extraction has not taken place in the delta mode. Once it has, this no longer applies.
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 4
As of SAP NetWeaver 7.0 SPS 6, the new Open Hub Destinationobject replaces the InfoSpoke that was previously used for the open hub service. You can still use existing InfoSpokes, however we recommend that you do not create any new InfoSpokes, but use the new open hub destination concept instead.
Open Hub Data Source
BW objects such as InfoCubes, ODS objects, MultiProviders and MultiProviders and InfoObjects (attributes or texts) can function as open hub data sources.
Extraction Mode
An InfoSpoke can extract data in two ways: in full mode (F) and in delta mode (D).
Open Hub Destination
Database tables (from the database in the BW system) and flat files (CSV) can act as open hub destinations. You can extract the data from a database to a non-SAP system using APIs with a third-party tool.
The open hub destination includes all information about a target system for the InfoProvider data: type of destination, name of the flat file or the database table. It also contains a logical target system. The logical target system is used to structure the individual open hub destinations in the open hub monitor. The open hub monitor groups the requests according to logical target system, open hub destination and InfoSpoke. By specifying a logical target system, you get a better overview of the individual open hub requests.
Creating InfoSpokes
Go to RSA1 transaction
You will get the following screen:
Go to tools-> Open Hub Service -> Create InfoSpoke as shown below
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 5
You will get the following screen.
Enter the InfoSpoke name and press Create
You will be directed to the following page:
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 6
General tab
On the General tab page, select a data source. You can choose from an InfoCube, ODS objects, MultiProviders or InfoObjects (attributes or texts).
Select a destination. You can also enter the technical name of a destination that you are about to create.
Select an extraction mode.
Specify the number of rows per data package for the data records to be extracted. You can use this parameter to control the maximum size of a data package, and hence also how many main memories need to be made available to structure the data package.
1. The following image shows the General tab filled with relevant data.
Destination tab
2. Choose the Destination tab page and enter a description.
3. Select a Logical Target System.
4. Select one of the following destination types:
Database table
File (CSV). Either choose Application Server or specify a local directory; specify a delimiter of type Character. If you choose the application server as the storage for the file, you can select a Logical File Name or Logical File Name from the dropdown box. If you choose Logical File Name, you get to the transaction for creating logical file names by double clicking on the field for the file name.
5. The following image shows the General tab filled with relevant data.
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 7
InfoObjects tab
6. On the InfoObjects tab page, select the InfoObjects that need to be transferred. In doing so, the available fields are displayed in the right half of the screen, and you can transfer them into the left half of the screen by using the arrow keys.
7. The pushbutton Key Fields for the Table Start enables you to place key fields at the start of the field list. When extracting in database tables, it is necessary to extract such a field list. With flat files, you need to specify the field list sequence yourself.
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 8
8. Here, we are selecting all the fields for extraction
9. Select the button to select the required values to the left pane
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 9
10. The following image shows that the selected fields have been transferred.
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 10
Selection tab
11. From the Selection tab page, you can restrict the selected fields even further. As a restriction, only simple selections of single values and intervals are possible. After confirming you selection, you
can also exclude single values or intervals via Selection Category. Do so by clicking only the icon
or (included) and then switch to or (excluded). The default setting is Included.
12. In this example we are excluding rows containing ‘PDS01’ as ‘Product’ field value .
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 11
Transformation tab
13. From the tab page Transformation, you can transform the data to be transferred using a BAdI.
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 12
Activating and Executing InfoSpokes
14. Choose Activate InfoSpoke .
15. After successful activation, choose Extraction in the Dialog Process. A status log is displayed.
Note: If you do not want to start extraction straight away, that is, you want to schedule it, you need to include the InfoSpoke into a process chain
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 13
Creating OpenHubs
16. Go to RSA1 transaction and select Open Hub Destination in the modeling tab
Create a new Info Area as shown below and press
Right Click on the Info-Area and select ‘Create Open Hub Destination’
Put in the relevant details as shown below: To reduce the development time, you can also use the object from which you are going to load data as a template to the OHD definition( as we are using the cube ZAD_SALES in this example)
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 14
Press and you get the following screen for open Hub destination definition
Here we will select flat file as out destination type.
In the field def tab you will all the fields of the cube as we used it as a template.
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 15
Input the path in which you want to store your file on application server or local workstation.
Save and activate your OpenHub
Now we need to create a transformation between the cube and the OpenHub.
Right Click on your OpenHub and click on Create Transformation
Here the source is an InfoCube by the name of ZAD_SALES.
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 16
Input the relevant details and press
Complete the transformation mapping.
Save, Check and activate the transformation.
Now create a DTP for transferring data from the cube to the OpenHub
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 17
Select full mode of extraction.
Now, Save, check and Activate the DTP.
Press the button to start the DTP
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 18
A green status in the DTP request monitor shows that the transfer is successful
Result:
The contents of the cube have been saved as a flat file in the user System(OpenHub Destination)
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 19
Related Content
http://forums.sdn.sap.com/thread.jspa?threadID=1659855
http://help.sap.com/saphelp_nw04/helpdata/en/ce/c2463c6796e61ce10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/a8/a6eae34c9e9b4cbd8fbc7acd2845d0/content.htm
For more information, visit the EDW homepage
InfoSpokes and OpenHubs in SAP BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 20
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. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.
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, 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, or seek to hold, SAP responsible or liable with respect to the content of this document.