Overview
Similar to SQL statements, simple general query is used to retrieve data from certain column in a table and list some conditions that the data needs to satisfy. Unlike SQL statements, simple general query is not entirely implemented through statements. Table Name and Selected Column are completed through visualization, while Filter Condition is implemented through statements.
Note:Procedure
Before creating an SAP dataset, you need to connect to SAP successfully. For details, see SAP Dataset Plugin.
Adding an SQL Dataset
1. Add an SAP dataset, as shown in the following figure.
2. Select a data connection and select Simple General Query from the drop-down list of Function, as shown in the following figure.

Table Name: Enter a table name existing in the SAP system. Fuzzy search is not supported. Only complete input is allowed.
Column Selected: Select the names of the data columns that need to be output.
Filter Condition: Set the condition to filter the content of the selected columns that need to be output.
Selecting Tables and Columns
Enter the table name (not supporting fuzzy search; requiring you to input the exact table name), and select the required data columns in the table, as shown in the following figure.

Note:Setting Filter Conditions
Click Preview. The following figure shows data without filter conditions.

Filter Condition Without Parameters
Filter out data where column C is not empty. You can view the filter conditions by clicking Format Description. The syntax here can refer to the syntax of OPEN SQL.
Enter the filter condition C <>'', as shown in the following figure.

Filter Condition with Parameters
When writing filter conditions, you can use parameters (similar to those used in database query) to allow the condition values to changes dynamically.
1. Write a conditional statement with a parameter, for example, C='${c}', as shown in the following figure.

2. Click Preview. You can view that data in column C is the parameter value 3, as shown in the following figure.

Completing the SAP Dataset Adding Process
After confirming that the preview is correct, click OK to add the dataset to FineReport.