(DV-2405) Table Variant Generator
The Table Variant Generator functionality enables you to generate the Table Variants for either custom tables or standard SAP tables. You can access it from the Table Variants screen.
Accessing the Table Variant Generator
Table Variant Generator
Import Standard Tables: SAP standard tables can be imported via this button. For more information navigate to this section Import Standard Tables.
Before Image Table: Table names for Before Image can be specified here.
After Image Table: Table names for After Image can be specified here.
Before Image Box: Contains all Before Image related parameters that can be set.
After Image Box: Contains all After Image related parameters that can be set.
RFC destination: Set RFC destination parameter for specific Image.
Description: By default, the description is set to [GEN]<INDEX>. <IMG>variant for table <TABNAME> [<PORTION>]. If the After Image description will not be specified, the default description will be used. Patterns in the default description will be accordingly replaced:
<INDEX>: Represents a number for a generated variant of a specific image.
<IMG>: Represents a specific image for which the variant will be generated.
<TABNAME>: This is a table name for which the variant will be generated.
<PORTION>: Represents the index of a portion.
A pop-up window with an explanation of the default description will be displayed.
Storage ID: Set storage ID parameter for specific Image (This parameter is not yet supported, thus is hidden. We are aware of this situation and we will proceed with adequate steps to incorporate this parameter).
Key fields: Set Key Fields that will be either included for a display of variant results or excluded from a display of variant results.
Value fields: Set Value Fields that will be either included for a display of variant results or excluded from a display of variant results.
Static filter: New screen will be displayed where it is possible to define a static filter. The static filter can be set either for a field name or a data element.
Dynamic filter: Set dynamic filter.
Tags: Set tags.
Field Mapping ID: Set table field mapping name. To create a new mapping fill the field with the mapping name and double-click it. If mapping with such a name does not exist yet, you will be navigated into the field mapping definition screen. See the section Field Mapping for more information on how to define the mapping.
Data Conversion: Set Data Conversion enables the creation of Value mapping or ABAP rule Conversion Rule type. See Conversion Rules for more information about available Conversion Rule types.
Select Number of Rows: An option for the column ‘ROWCOUNT' to be added to the output of Table. If there is no match for the key fields of the table from the ‘Proposal list for key fields’ and simultaneously there are no suitable non-key fields in the table for value fields, the generated variant will have this option enabled (so the Table Variant won't have an empty output).
Max portion size for variant: Defines the maximum portion size in MB for the output image of generated Table Variants. If the selected data from the table are bigger than the maximum size, there will be generated an adequate number of Table Variants for each portion. Each portion will have generated where condition with the range of values for determining the maximum portion size in the output image.
This button allows copying a specific parameter from Before Image to After Image.
This button allows copying all parameters set in Before Image to After Image.
This button allows the user to perform a check if everything was set right. The correctness of set parameters and table names will be checked. The same check is performed right before generation. If the check was successful following message will be displayed:
If something went wrong during the check with:
Set parameters: The user will be notified with an error message adequate to an invalid parameter.
Table Names for a specific Image, the following pop-up, will be displayed:
Two options can be performed:
Yes: The user is allowed to continue but all invalid rows will be deleted.
No, Cancel: All invalid cells will be highlighted and the user can make the correction.
Execute Table Variant Generation in the background job. Only one BG job will be triggered and the SAP GUI notification message will be sent to the user after the job will finish the generation of variants.
Notification when BG job is finished
It is important to note that you should not try to adjust/change the variants on the selection screen while the generating jobs are running. You can exit the selection screen but should not save the variants selection because variants that are generated in the background are automatically saved under the appropriate Test Case / Run.
Generation of table variants is fast only if no portioning is required. If portioning is required then always execute the generator in the background job if the proximal count of records from all involved tables is greater than 3 million for 1MB portions.
Import Standard Tables
On the first access to the screen, the Table Variant Generator scans the systems tables and determines the classification of SAP Application Components (SAP modules) with the table size (only informative value from DB statistics). This takes some time, therefore there is a progress bar on the bottom left corner of the screen to show the state of the scanning procedure.
The estimated number of records in each table is determined from DB table statistics. If DB table statistics could not be used the following message is displayed in the status bar.
Each next access is fast till a refresh of the content is via the Refresh button.
The Table Variant Generator shows all the found tables in a tree structure, classified into SAP Application Components. Selecting a node in the tree also selects all the nodes in the nodes sub-tree.
SAP Standard tables screen
RFC destination: If set, a tree for SAP standard tables on specified RFC destination will be displayed.
Find: Input field for a table name to be searched in the tree.
Refresh: Re-scans the target systems tables (needed if RFC destination is changed).
Search/Find: Functionality for searching in the tree, supports search patterns.
Allows the filtering of the output tree by the table name, component name, and description.
Expand All: Expands the tree.
Collapse All: Collapses the tree.
Select All: Selects all the tree nodes.
Deselect All: Deselects all the tree nodes.
Export table list: Allows exporting the list of all the tables (with selection) from the tree into a CSV file.
Imports tables selection from a CSV file.
After pressing the button to continue, all selected table names will be imported and appended to the Before Image Table column.