Skip to content

Example Scenario

In the previous chapters data targets (InfoObjects, InfoSource, InfoPackages) are modeled in the BW system. The Xtract BWLoader component offers the possibility of creating all necessary objects right from within the editor.

You can find the BWLoaderSampleDB.sql file in the installation directory, e.g., C:\Program Files\XtracIS. This file contains all necessary SQL commands needed to create and fill in the tables used in the following examples in a test database.

Master Data Transfer

In this first example, the goal is to create and fill in a master data InfoObject.

  1. Set up a new data flow and create an OleDB source that reads the product table.
  2. Link the pipeline with a BW Loader target (after setting up the connection manager to SAP):
    BWLoader-StammDataTransfer-01
  3. Open the editor of the BW Loader. Click the New button for the InfoSource.
    BWLoader-StammDataTransfer-02
  4. Select Master Data in the following dialog window. A dialogue window opens in which an InfoSource can be set up.
    BWLoader-StammDataTransfer-03
  5. Click the Create New InfoObject button.
    BWLoader-StammDataTransfer-04
  6. Enter the name of the InfoObject (ZPROD) and click the CHAR data type (with a length of 20). In addition, short and long texts are to be filled here later, which are depending on the language, and the InfoObject will have master data:
    BWLoader-StammDataTransfer-05
  7. The color attribute has to be added to the ZPROD InfoObject. The color attribute can be newly created by clicking the Create New Attribute button. The screenshot below shows the ZCOLOR InfoObject to be created; it has no master data, but allows lower case characters (see above right).
    BWLoader-StammDataTransfer-06
  8. Save and activate the ZPROD InfoObject. The program returns to our original InfoSource setup.
  9. Edit the InfoSource according to the screenshot.
    BWLoader-StammDataTransfer-07
  10. Save and activate the InfoSource. Apart from creating an InfoSource, transfer rules for the selected source system are also created here.
  11. Create an InfoPackage in the main template with the Create New InfoPackage button. The InfoPackage is based on the previously created InfoSource.
    BWLoader-StammDataTransfer-08
  12. Define the technical access parameters for the source system and mapping of the pipeline elements to the InfoPackage's transfer structure. The main template should look like this when you're done:
    BWLoader-StammDataTransfer-09

Start the upload in debug-mode. In the monitor in transaction RSA1, the upload looks like this:

BWLoader-StammDataTransfer-10

Texts

In the previous section, we created a master data InfoObject while specifying that there are language-dependent texts. These are located in the ProductText table.

  1. Create a new data flow (or a new package)
  2. Prepare the connection manager and define an OleDB source for the ProductText table.
  3. Define a BW Loader target and draw the pipeline to the target.
    BWLoader-Text-01
  4. Create a new InfoPackage by clicking Create New InfoPackage button. The dialog should be filled in as follows:
    BWLoader-Text-02
  5. Because we already specified in the ZPROD setup that there are language dependent short and long texts, the transfer structure is already built accordingly. Now only the pipeline elements have to be mapped to the transfer structure elements, as shown in the following screenshot:
    BWLoader-Text-03
  6. A test run uploads the texts to the BW. The following screenshot shows the RSA1 transaction. It shows both InfoPackages for the attributes and texts under the ZPROD InfoSource. The XTRACTSYS source system forms the transfer layer. Depending on the release you use, this screenshot might look different.
    BWLoader-Text-04

The following screenshot shows the contents of the PSA table after posting. In an Unicode system, any fonts can be posted (e.g. Japanese).

BWLoader-Text-05

Create an InfoCube

An InfoCube into which the data can be loaded is required.

  1. Create a new SSIS package.
  2. Define an OleDB source in the Sales test table and link the pipeline with a BW Loader target.
  3. Click the link Create Cube in the editor. The following window opens:
    BWLoader-Create-InfoCube-01
    Through the already linked pipeline, Xtract IS has the correct properties of the cube. One InfoObject for each element is necessary to create a cube.
  4. Click the Create link to create an OrderID in the system as an InfoObject:
    BWLoader-Create-InfoCube-02
  5. Two key figures are needed: quantity and price. A fixed unit (ST for Stück, unit in German) is specified under quantity. For price, a reference is made to the 0CURRENCY InfoObject.

    BWLoader-Create-InfoCube-03

    BWLoader-Create-InfoCube-04

  6. The three remaining elements are defined through InfoObjects that already exist (ZPROD for product, 0CALDAY for the date and 0CURRENCY for the currency):
    BWLoader-Create-InfoCube-05

  7. Create a new InfoSource of the Transaction Data type. It is set up just like the cube. Only in the price field we have to make an explicit reference to the currency column (Unit Field column):
    BWLoader-Create-InfoCube-06
  8. Open the cube administration in the RSA1 transaction and then select Environment in the menu -> Update Rules -> Create.
  9. Select the InfoSource you just created and confirm with Enter.
  10. Save and activate the rule.

Load Transaction Data

Create an InfoPackage of the Transaction type for the InfoSource, and link the pipeline elements with the elements of the transfer structure. The following screenshot shows the completed link. The transaction data can now be loaded.

BWLoader-Load-TransactionData


Last update: July 25, 2024