Creating an SAP HANA DataSource

Before you can transfer data from a SAP HANA source system, the metadata from the source in must be available in the SAP BW system in the form of a DataSource.

Context

Procedure

  1. You are in the BW Modeling tools. In your BW project in the Data Sources tree, open the context menu on the SAP HANA source system or the application component of the source system, and choose Start of the navigation pathNew Next navigation step DataSourceEnd of the navigation path.
    The wizard for creating DataSources appears.
  2. Make the required entries in the wizard.
    1. If necessary, specify an application component using Browse.
    2. To ensure that you can find your InfoObject again without difficulty, we recommend setting the Add to Favorites flag.
    3. Specify the DataSource name, description, and type.
    4. Choose Table/View and use Browse to select the table or view in the source.

      For smart data access sources with a hierarchical file structure: The tables and views are displayed in the search results list with the Path Suffix – the remaining part of the folder structure path up to the source object (excluding the source object) that is not defined in the source system.

    5. Choose Finish.

      The DataSource editor appears.

  3. On the Overview tab, you make general settings, if required.
  4. On the Extraction tab, you make extractor-specific settings.
    1. For data provisioning adapters that support real-time replication: Under Real-Time Replication, you select the replication method by selecting the corresponding remote subscription types.
    2. For data provisioning adapters that support real-time replication: If the data provisioning adapter makes it necessary, you can specify a condition for static filters using SQL syntax. You can use a static filter to specify a particular data set or restrict the data volume. This is useful, for example, when transferring Tweets using the Twitter adapter.
  5. On the Fields tab, you maintain the properties of the DataSource fields.
    1. Specify which DataSource fields are to be used when reading from the source object (local table/view or virtual table) for packaging in the data transfer process and for the partitions of the replication table. To do this, select the relevant field in the field list and select the Use for Packaging and Partitioning indicator in the field properties under SDA-Specific Properties. If you select properties for multiple fields, disjunctive selections are made across all fields selected.
    2. For real-time replication with remote subscription type INSERT: Specify which fields are to be treated like key figures that can be totaled. To do this, select the relevant field in the field list and select the Key Figure (Summation) indicator in the field properties under SDA-Specific Properties.
      If you want the generated SAP HANA view to reverse the sign of a field value for before and reverse images (SDI_CHANGE_TYPEB and D), choose Key Figure (Summation). If you want a field to be interpreted like a characteristic, for example, like a numeric label for a person or a material, do not set the indicator.
  6. Save and activate the DataSource.
  7. Once you have created the DataSource, choose Refresh in the context menu of the source system or the application component.

Results

The DataSource is displayed in the Data Sources tree in the application component of the source system and is ready for use.

When you activate the DataSource, the system generates various objects such as the PSA table and the transfer program. In the Properties view, you can display the generated objects on the Technical Attributes tab page.

If the connection to the source is established using SAP HANA smart data access, a view on the virtual table is generated for query access. In the same way, a view is created for local tables. The main task of this view is the type conversion of SAP HANA data types and ABAP data types. The view is used in the data preview for direct access and full requests if no remote subscriptions of type UPSERT are used and for delta requests if no remote subscriptions of any type are used.

If you use real-time replication, additional SAP HANA objects are generated, depending on the real-time replication method selected:

  • Remote subscription(s)

  • Target table(s) for the real-time replication

  • SQL view(s) on the target table

In the Properties view, you can display the objects generated for SAP HANA smart data access and real-time replication on the Extraction tab page.

From the Properties view, you can call a generated object by clicking the mouse.