This scenario describes a two-component Job that reads data from an SAP BW database. The data is fetched and displayed on the console.
Prior to setting up the Job, make sure the following prerequisites are met:
Copy the following .jar files which compose the jdbc4olap driver to your class path:
Make sure that you have the latest version of jdbc4olap driver. You can download the latest version of jdbc4olap driver from jdbc4olap download section. For further information about the usage of jdbc4olap driver, see jdbc4olap User Guide.
The procedure of this scenario requires 4 main steps detailed hereafter:
Set up the Job.
Set up the jdbc connection to the SAP BW server.
Set up a query.
Display the fetched data on the console.
Drop a tSAPBWInput component and a tLogRow component from the Palette onto the workspace.
Connect the tSAPBWInput component and the tLogRow component using a Row > Main connection.
Double-click the tSAPBWInput component to open its Basic settings view and define the component properties.
Fill the JDBC URL field with the URL of your jdbc4olap server.
Note that the URL displayed above is for demonstration only.
Fill the Username and Password fields with your username and password for the DB access authentication.
Click the three-dot button next to Edit schema to define the schema to be used.
Click the plus button to add new columns to the schema and set the data type for each column and click OK to save the schema settings.
From the Basic settings view of tSAPBWInput, fill the Table Name field with the table name. In this scenario, table name "Measures" is for demonstration only.
Fill the Query area with the query script. In this example, we use:
"SELECT T1.\"[0D_CO_CODE].[LEVEL01]\" AS company, T0.\"[Measures].[D68EEPGGHUMSZ92PIJARDZ0KA]\" AS amount FROM \"0D_DECU\".\"0D_DECU/PRE_QRY4\".\"[Measures]\" T0, \"0D_DECU\".\"0D_DECU/PRE_QRY4\".\"[0D_CO_CODE]\" T1 "
Due to the limitations of the supported SQL queries, the query scripts you use must be based on the grammar defined in the jdbc4olap driver. For further information about this grammar, see jdbc4olap User Guide.
Double-click the tLogRow component to open its Basic settings view and define the component properties.
Click Sync columns to retrieve the schema defined in the preceding component.
Select Table in the Mode area.
Press Ctrl+S to save your Job and press F6 to execute it.
The data in the table "Measure" is fetched and displayed on the console.