To extract data from an SAP BW/BI system, Xtract IS suite provides 3 different components supporting the following interfaces:

MDX engine: Xtract IS BWCube component supports the MDX engine and enables the extraction of InfoCubes and BEx Queries.

Open Hub Services: Xtract IS OHS component supports the Open Hub Services that allow you to distribute data from BW/BI system using Infospokes or Open Hub Destinations.

Export DataSource: An Export DataSource enables the extraction of the following InfoProviders: InfoCubes, DataStores and InfoObjects. In contrast to Export DataSources, DataSources are provided to transfer data from SAP ERP or an external System to BI. Xtract IS DeltaQ component supports both DataSources.

In this blog I will focus on Export DataSources and describe how to generate them in SAP BW/BI and how to use them with Xtract IS DeltaQ.

InfoCubes and DataStores:

Export DataSources for InfoCubes and DataStores objects contain all the characteristics and key figures of the InfoProvider. The technical name of the Export DataSource is made up of the number 8 together with the name of the
InfoProvider. (InfoCube: 0D_COPA -> DataSource: 80D_COPA).

InfoObjects (master data):

You can generate Export DataSource for master data, and thus for individual InfoObjects. Export DataSource for master data contains the metadata for all attributes, texts, and hierarchies for an InfoObject. The length of the technical name of the InfoObject must not be longer than 28 characters. The technical name of the Export DataSource is 8***M, 8***T and 8***H respectively for attributes (master data), texts and hierarchies, where *** stands for the InfoObject.

HTML clipboard

Using Export DataSource, you can transfer large amounts of data from SAP BW/BI by full upload as well by delta requests. Note that changes to the metadata of the InfoProvider can only be added to the Export DataSources by regenerating the Export DataSources.

Delta Process

A distinction is made between InfoCubes and DataStore objects:

The InfoCube used as an Export DataSource is first initialized. When the next extraction is performed, only those requests are transferred that have come in since initialization.

For DataStore objects, the requests in the change log of the DataStore object are used as the basis for determining the delta. Only the change log requests that have arisen from reactivating the DataSource object data are transferred.

How to generate an Export DataSource

The InfoProvider must be activated at first. To generate an Export DataSource, go to the Data Warehousing Workbench (transactions RSA1) in the BW/BI system, choose Modeling and select your InfoProvider. Use the context menu to choose Additional Functions -> Generate Export DataSource. In this sample I am using the SAP Demo Cube 0D_COPA. (InfoProvider -> SAP Demo -> SAP Demo Profitability analysis).

 

The Export DataSource 80D_COPA will be generated.

Extract Export DataSource with Xtract IS DeltaQ component

Drag an Xtract DeltaQ component to the data flow task and link it to an Xtract Connection. Search for your Export Datasource.

 

Fill in the fields for the technical settings and select the desired columns. Then activate the Export DataSource.

Xtract DeltaQ component has two outputs: data and protocol, therefore we use 2 OLE DB destinations. Now execute the package.

The data are successfully extracted from SAP BW/BI and saved in the SQL server.

Links:

Xtract IS website

SAP BW: http://help.sap.com/saphelp_nw70/helpdata/en/4e/4a75b87fe211d4b2c50050da4c74dc/frameset.htm

Written by Khoder Elzein

Khoder is responsible for presales and always has an attentive ear for our customers, prospectives and partners. When travelling in Germany or abroad, he provides customer support at PoCs, workshops and on training courses. He also looks after the further development of our software solutions. Khoder has been working in IT since the turn of the millennium; he has been a member of team Theobald since 2009. When it comes to private interests, family, nature and reading feature at the top of his list – along with innovative fusion cuisine, as you may infer from his favourite dish of Swabian cheese noodles with tabouleh.