Overview
When you create an SAP dataset, the default method is Custom Data Extraction, in which data is extracted by calling an ABAP function through RFC.
Procedure
Before creating an SAP dataset, you need to connect to SAP successfully. For details, see SAP Dataset Plugin.
1. Add an SAP dataset, as shown in the following figure.

2. On the setting page for extracting data from the SAP dataset, select a function, as shown in the following figure.
Functions here are ABAP functions defined in SAP. They are unrelated to FineReport.

3. Refresh input and output, as shown in the following figure.

| Description | |
|---|---|
Input | List of parameters input for the selected function. |
Parameter Name | Name of each parameter in the selected ABAP function. You can select a certain parameter and delete it if you do not want it. To restore it, you can click Refresh. |
SAP Data Type | Data type of each parameter in the selected ABAP function. (Note: The like type is not supported.) |
Returned Set | Name of a structure displayed as the returned set if a parameter is part of the structure. |
Data Type | Data type in FineReport corresponding to the data type of each parameter. |
Corresponding Parameter | Parameter in FineReport corresponding to each parameter in the selected ABAP function. You can manually rename the parameters in FineReport. |
Default Parameter Value | Default value of each corresponding parameter in FineReport. You can manually modify default values. |
Output | Result set output by the selected ABAP function. Only one result set can be selected at a time. |
SAP Column Name | Column name in the result rest. You can select and delete a column. To store it, click Refresh again. |
SAP Data Type | Data type corresponding to each data column in the result set. |
Data Type | Data type in FineReport corresponding to each data column. |
4. Select a result set and click Preview, as shown in the following figure.

After inputting parameters, click OK.

5. After confirming that the preview is correct, click OK to add the dataset to FineReport.