Skip to content

Knowledge Base

White Paper Libary

Database Query (HANA) Tool v1.0

Introduction to the Database Query (HANA) Tool v1.0

What is the SAP HANA Query Tool?

The SAP HANA Query Tool provides BPA Platform with direct access to an SAP HANA® database.

The Database Query (HANA) tool allows you to design and run queries that return structured data otherwise unavailable when using the tools from the SAP Business One Integration Tool Pack.

White Paper - Database Query (HANA) 1.0

White Paper - Database Query (HANA) 1.0

The Database Query (HANA) v1.0 Technical Overview introduces you to the tool. Installed as an add-on to BPA Platform, this tool provides direct communication between BPA Platform and a SAP HANA database.

Download White Paper

SAP HANA Query Tool Architecture

The diagram below demonstrates the possible architecture between BPA Platform and SAP HANA when using the Database Query (HANA) tool:

SAP HANA Query Tool

The SAP HANA client (32-bit) must be installed on the same machine hosting an installation of the Database Query (HANA) tool — this includes any remote tool installations you make use of.

Download Whitepaper

SAP HANA Query Tool Technical Summary

This section describes the external environment required for the Database Query (HANA) tool.

SAP HANA Query Tool Prerequisites

The following prerequisites must be met before installing the SAP HANA Query tool:

  • Ensure that the SAP HANA client (32-bit) is installed on the same machine hosting the Database Query (HANA) tool. Note that the 32-bit client can exist alongside the 64-bit client, if you have that edition installed already.
  • The Database Query (HANA) tool is supported from BPA Platform 2020 Update 1 onwards.
  • The Database Query (HANA) tool supports connections to both HANA 1.0 and 2.0

Download Whitepaper

SAP HANA Query Tool – Working with Other Tools

The SAP HANA Query Tool tool can work directly with the following tools:

Consuming from Other Tools

The Database Query (HANA) tool does not consume objects outputted by any other tool. Instead, it directly queries the database. However, global and task-level variables can be used to form the WHERE clause.

Exposing to Other Tools

The Database Query (HANA) tool exposes objects that can be consumed by the following tools:

IconTool NameTool Category
Call Stored Procedure (OLEDB) ToolCall Stored Procedure (OLEDB)Input, Data Connectors, Output, and Execute
Database Query (HANA) Tool v1.0Convert Recordset to XMLFormat
Database Query (HANA) Tool v1.0Create Workflow JobFormat
Database Query (HANA) Tool v1.0Format as Flat FileFormat
Database Query (HANA) Tool v1.0Format as HTMLFormat
Database Query (HANA) Tool v1.0Format as HTML ProFormat
Database Query (HANA) Tool v1.0Format as TextFormat
Run Crystal Report Tool - Crystal Reports AutomationRun Crystal ReportFormat
Run Microsoft Reporting Services ToolRun Microsoft Reporting ServicesFormat
Run Microsoft Word (Merge) ToolRun Microsoft Word (Merge)Format
Database Query (HANA) Tool v1.0Transform DataFormat
Database Query (HANA) Tool v1.0Save FileOutput
Database Query (HANA) Tool v1.0Transfer File (FTP)Output
Call COM Object ToolCall COM ObjectExecute
Run External Program ToolRun External ProgramExecute
Database Query (HANA) Tool v1.0Run VBScriptExecute
Database Query (HANA) Tool v1.0Filter DataGeneral
Database Query (HANA) Tool v1.0SAP Business One (DIAPI) IntegrationData Connectors
Database Query (HANA) Tool v1.0SAP Business One (SL) IntegrationData Connectors

Objects Exposed

The Database Query (HANA) tool exposes the following objects which can be directly consumed by the above tools:

  • Recordset — Tabular data from any BPA Platform tool capable of exposing such data (see above)
  • Step Properties — Standard step properties are available allowing you to use statistical data of the tool

Download Whitepaper

Adding SAP HANA Connections

To use the Database Query (HANA) tool in a task, you must create connections to HANA company databases first — you do this in the Global Configuration interface. You open this interface from the resources tree — expand System > Tools > Data Connectors or Input, and double-click Database Query (HANA) in the items list.

SAP HANA Query Tool

From here you can:

  • Add a new HANA connection
  • Edit an existing connection
  • Remove a connection that is no longer required — you must ensure task steps that used this connection have been moved to a new one first

Using Extended Logging

Selecting this option exposes the query sent to the HANA database. Note that this option affects all connections in use — you cannot choose which connections extended logging and which does not. If the query makes use of dynamic data, that is, formulas, functions, and variables, a separate event log entry is made for the contents of that marker:

SAP HANA Query Tool

Without extended logging, the Event Log (BPA Platform client > Tasks toolbar > Event Log) only identifies the times the Database Query (HANA) step started processing and completed, plus any error messages encountered at runtime.

Download Whitepaper

Adding HANA Instance Settings

Use the Connection Settings interface to specify the HANA instance you want to query.

SAP HANA Query Tool

Specify the HANA connection details as follows:

  • Connection Name — Enter a unique and meaningful name for this connection
  • Server — The hostname or IP address of the computer hosting the HANA instance
  • Port — The TCP port number used to communicate with the HANA instance

    The default port is 30015. If the HANA instance has been configured to use a different port, change this to match.

  • Username — The username (database users only) allocated to BPA Platform in the HANA instance
  • Password — The password allocated to the above username

Step Configuration

Even though the Database Query (HANA) tool is found under two different tool categories, using one category over the other does not affect the functionality of the tool.

To add a new Database Query (HANA) step to an existing task, you either:

  • Click and drag the Database Query (HANA) icon from the Task Browser to the task Design area.
  • From the task’s Design tab, right-click on empty space and select New > then either Data Connectors > Database Query (HANA) or Input > Database Query (HANA).

For a detailed description of how to create new tasks, refer to the product help.

Download Whitepaper

About the General Tab

The General tab is used to Name and describe (Description) this task step.

SAP HANA Query Tool

About the Connection Tab

You must specify the SAP HANA connection this task step must use.

SAP HANA Query Tool

All connections created in the global configuration window are presented here.

Alternatively, you can use a BPA Platform variable or formula to create a dynamic connection, where the connection used is determined by runtime circumstances. At runtime, the contents of the variable must match the name of one of the Global Configuration connections — this is case-sensitive.

Download Whitepaper

About the Query Tab

Use the Query tab to define the HANA script to execute at task runtime.

SAP HANA Query Tool

Enter the required HANA script into the SQL query window. Use the Paragraph symbol to show formatting marks in the script.

Use Execute (lightning bolt symbol) to test the entered script — click Yes to confirm the action.
Note that if you have enabled Do not ask again in the confirmation dialog, this only applies to this task step — the dialog continues to appear in other Database Query (HANA) steps in the same or different tasks.

About the Options Tab

The Options tab allows you to define how errors in this step are handled at task runtime.

SAP HANA Query Tool

If the step is aborted, you can choose to Continue processing onto the next step in the task, or terminate the whole task immediately (Abort Task).

In addition to error handling, you can also control whether the “Do you want to continue?” confirmation dialog appears each time the Execute button (lightning bolt) is clicked. Select Do not ask for query execution in the preview to hide the confirmation dialog.

White Paper - Database Query (HANA) 1.0

White Paper - Database Query (HANA) 1.0

The Database Query (HANA) v1.0 Technical Overview introduces you to the tool. Installed as an add-on to BPA Platform, this tool provides direct communication between BPA Platform and a SAP HANA database.