Creating DataSources for DB Connect
Use
Before you are able to transfer data from a database source system, the metadata, meaning the information on the tables, views, and fields, must be available in BW in the form of a DataSource.
Prerequisites
See Requirements for Database Tables or Views
You have connected a DB Connect source system.
Procedure
You are in the BW Modeling tools in the Project Explorer view.
-
In the Data Sources tree of your BW project, select the application component in which you want to create the DataSource and choose in the context menu.
The screen for creating source systems appears. The system also opens the Data Warehousing Workbench in an Eclipse editor embedded in the BW Modeling tools.
-
Enter a technical name for the DataSource, select the type of the DataSource and choose Apply. The DataSource maintenance screen appears.
-
Go to the General tab page.
-
Enter descriptions for the DataSource (short, medium, long).
-
If required, specify whether the DataSource builds an initial non-cumulative and has the ability to return duplicate data records in a request.
-
-
Go to the Extraction tab page.
-
Define the delta process for the DataSource.
-
Specify whether you want the DataSource to support direct access to data.
-
The system displays Database Table as the adapter for the DataSource.
-
Choose Properties if you want to display the general adapter properties.
-
Select the source from which you want to transfer data.
-
For the connection types One logical system per DB schema and HANA Smart Data Access, select the table or view. You have already specified the database user/schema (where the table or view is located) with the DB connect source system.
-
For the connection type source system = DB connection, you can initially specify a database user, because the user is not defined in the DB Connect source system for this connection type. This allows you to select a table or view, which is located in the schema of this database user. To perform an extraction, the database user used for the connection to BW (also called BW user) needs read permission in the schema of the database user. If you do not specify the database user, the tables and views of the BW user are offered for selection.
-
Call the value help for field Table/View.
-
In the next screen, select whether tables and/or views should be displayed for selection and enter the necessary data for the selection under Table/View.
-
Choose Execute.
The database connection is established and the database tables are read. The Choose DB Object Names screen appears. The tables and views belonging to the specified database user that correspond to your selections are displayed on this screen. The technical name, type and database schema for a table or view are displayed.
-
-
-
-
Go to the Proposal tab page.
The fields of the table or view are displayed here. The overview of the database fields tells you which fields are key fields, the length of the field in the database compared with the length of the field in the ABAP data dictionary, and the field type in the database and the field type in the ABAP dictionary. It also gives you additional information to help you check the consistency of your data.
A proposal for creating the DataSource field list is also created. Using the field properties defined in the database, the system suggests a field name and field properties for the DataSource. Conversions such as lowercase to uppercase or " " (space) to "_" (underscore) are performed. You can also change names and other properties of the DataSource field. Type changes are necessary, for example, if a suitable data type is not proposed. Changes to the name may be necessary if the first 16 places of field names in the database are identical. The field name in the DataSource is cut off after 16 places. This means a field name could occur more than once in DataSource proposals.
-
Choose Copy to Field List to select the fields that you want to transfer to the field list for the DataSource. In the default setting, all fields are selected.
-
Go to the Fields tab page.
Here you edit the fields that you have taken over from the Proposal tab page to the DataSource's field list.
If the system detects changes between the proposal and the field list when switching from the Proposal tab to the Fields tab, a dialog box is displayed where you can specify whether you want to copy changes from the proposal to the field list.
-
Under Transfer, specify the decision-relevant DataSource fields that you want to be available for extraction and transferred to BW.
-
If required, change the values for the key fields of the source.
These fields are generated as a secondary index in the PSA. This is important to ensure good performance for data transfer process selections, in particular with semantic grouping.
-
Specify whether the source provides the data in the internal or external format.
-
If you choose an External Format, make sure that the output length of the field (external length) is correct. Change the entries if necessary.
-
If necessary, specify a conversion routine that converts data from an external format into an internal format.
-
Select the fields that you want to be able to set selection criteria for when scheduling a data request using an InfoPackage. Data for this type of field is transferred in accordance with the selection criteria specified in the InfoPackage.
-
Choose the selection options (such as EQ, BT) that you want to be available for selection in the InfoPackage.
-
If necessary, define whether the data to be selected is language-dependent or time-dependent in the field type.
-
-
Check the DataSource.
The field names are checked for upper and lower case letters, special characters, and field length. The system also checks whether an assignment to an ABAP data type is available for the fields.
-
Save and activate the DataSource.
-
Go to the Preview tab.
If you select Read Preview Data, the number of data records you specified in your field selection is displayed in a preview.
This function allows you to check whether the data formats and data are correct. If you can see in the preview that the data is incorrect, try to localize the error.
See also: Localizing Errors
-
Once you have created a DataSource, open the Data Source tree in your BW project in BW modeling tools and navigate to the source system or the application component. Open the context menu (for either the source system or the application component) and choose Refresh.
Result
The DataSource is created and is visible in the Data Source tree of your BW project in the BW modeling tools. When you activate the DataSource, the system generates a PSA table and a transfer program.
After completing this lesson, you can now:
-
Create an InfoPackage. You define the selections for the data request in the InfoPackage. The data can be loaded into the Persistent Staging Area (PSA).
-
Access the data directly, if the DataSource supports direct access.
-
Use the DataSource as a source in an Open ODS view.

