Dialog TDM Wizard for SAP BAPI

In this dialog, you configure the selected functions and business object methods as well as the task that will be generated.

Name of the task to be generated

Name of the task that will be generated. A default name is suggested, but you can change this as required. If a task with the same name already exists in the target project, an incremental number is added to the name to make it unique.

Name of the Tricentis TDM Studio function to be generated

The name of the function that encloses the RFC. A default name is suggested, but you can change this as required. However, the name must be unique within the project.

The wizard will not be able to reliably check the uniqueness of the name in all cases. This could for example be the case if a function already exists in a function file that is stored in a directory which was added as an additional directory in the project options. Or if a function exists in a file whose name does not match the function name.

Data structure

Here you specify which data will be written to SAP or returned from there. For each element that you select, the wizard creates variables to be used in the data traffic.

If you select or deselect a structural element that contains subordinate elements, then all these elements are also selected/deselected.

You can use the command Search variable... in the context menu to search for initialization values for a field or for an entire structure (see chapter "Field settings").

Additional target...

Opens the dialog Select SAP call target where you can open an additional function in a new tab.

Generate

Generates the task in the current project. If no project is currently open, the Tricentis TDM Studio dialog New project is displayed.

The TDM Wizard for SAP BAPI remains open while you create a new project.

The wizard allows functions to be generated that define neither import nor export operations for the enclosed RFC.

However, it will lead to errors if a function that requires import data is called without data. Whether a function actually requires import data or whether all import data are optional is determined by the user who configures the function.

Generate and Close

Generates the task in the current project. If no project is currently open, the Tricentis TDM Studio dialog New project is displayed.

After the task was successfully generated, the TDM Wizard for SAP BAPI is closed.

The wizard allows functions to be generated that define neither import nor export operations for the enclosed RFC.

However, it will lead to errors if a function that requires import data is called without data. Whether a function actually requires import data or whether all import data are optional is determined by the user who configures the function.

Close

Closes the TDM Wizard for SAP BAPI without any further actions. The user is given the option to save any changes made, since unsaved settings will be lost.

Close current page

Closes the current tab and its function without any further actions. The user is given the option to save any changes made, since unsaved settings will be lost.

Table settings

Name of the Tricentis TDM Studio variable

Specifies the name of the variable that will be used in TDL for the table.

Table contains import data

Specifies whether the table contains import data (from SAP's point of view).

Table contains export data

Specifies whether the table contains export data (from SAP's point of view).

Field settings

SAP data type

The underlying SAP data type of the field. This value is for information only and cannot be changed.

Length

The length of the SAP data type of the field. This value is for information only and cannot be changed.

Number of decimal places

The number of decimal places for the SAP data type of the field. This value is for information only and cannot be changed.

Tricentis TDM Studio data type

The Tricentis TDM Studio data type of the variable that will hold the content of the field. This value is for information only and cannot be changed.

Name of the Tricentis TDM Studio variable

Specifies the name of the variable that will be used for the field in TDL.

This entry row is only available if the field selected under Data structure is part of a SAP BAPI structure.

Name of the Tricentis TDM Studio index variable

Specifies the name of the variable that will be used in TDL for identifying the table column.

This entry row is only available if the field selected under Data structure is part of a SAP BAPI table.

Type of the initialization value

Specifies the type of variable initialization. The TDM Wizard for SAP BAPI offers the options listed in the table below.

Initialization value

Specifies the initialization value to be used. This depends on the selection under Type of the initialization value. The possible options are shown in this table:

Type of the initialization value

Possible initialization values

Description

Single Value

1; John

A single value that will be interpreted according to the Tricentis TDM Studio data type. This will be used in every record to initialize the variable.

Sequence of Values

1 2 3 4; John Doe Jane

A number of values that will be used sequentially as initialization values. If more records are generated than there are values, then the sequence begins again from the beginning.

Randomly Chosen Value

1 2 3 4; John Doe Jane

A number of values out of which one will be randomly (but not uniquely) used for one record as an initialization value.

TDL Expression

Rand(100); SRand(5, 25, "A-Za-z")

A valid expression in TDL. This will be used in every record to initialize the variable.

The entries in the table column Possible initialization values should be interpreted as follows:

  • A semicolon serves as the separator between two different entries.

  • A space stands for a line feed.

Because the original line feeds and the separation between different entries in the table are difficult to represent, this convention was used here. This was only done for reasons of readability and the values should not be taken 1:1 from the table into the dialog elements.