Convert Data actions

Convert Data actions take the data stored in one or more input parameters or datasets, and convert it to data stored in one or more output datasets.

Action property Description
Convert Type A String parameter or dataset specifying the conversion type. This is only used for some types of conversion.
In<Type>, String1 - String9 A <Type> or String parameter or dataset that provides the data to be converted.
Out<Type> A <Type> dataset that is used to store the converted data.
XSL XML code defining an XSL transformation for input XML parameters or datasets (optional).

The following matrix shows the data types that may be converted. Each Convert Data action node may only be used for a single type of conversion:

Convert Data Action Matrix.

1

Used when the Convert Type property is set to ‘TableKey_Table’.

2

Used when the Convert Type property is set to ‘StringsToTwoColumnTable’.

3

Used when the Convert Type property is set to ‘CombineXMLs’.

4

Optional. XML code defining an XSL transformation.

5

Used when the Convert Type property is set to ‘JoinStrings’.

Convert AAQ Select Lists to Tables

An AAQ Select List may be converted to a Table by specifying the Convert Data action’s InAAQSelectList and OutTable properties. In this type of conversion, the output table that stores the AAQ Select List has an ID column which stores rule names, and a CATEGORY_ID column which stores category names.

Convert BSP Applications to performance history data

If the Convert Data action’s Convert Type property is set to ‘WebToWAPA’, the action converts a table of BSP Application ENTRY_IDs retrieved by the SWNC_COLLECTOR_GET_AGGREGATES function to a table of WAPA application statistics that may provide usage data for other actions.

Each WAPA name is retrieved from the O2APPL table’s APPNAME field on the specified RFC Destination.

For this type of conversion, the InRfcDestination, InTable and OutTable properties should be specified. The input table should have a NAME column which stores BSP Application ENTRY_IDs, and a COUNT column which stores their usage counts. The output table has the following columns:

Column Description
TYPE This column is set to ‘WAPA’.
NAME The retrieved WAPA name.
ACCOUNT This column is empty.
COUNT The COUNT value from the input table.
SOURCE_NAME The NAME column from the input table.

Convert Floats to Tables

A Float may be converted to a Table by specifying the Convert Data action’s InFloat and OutTable properties. In this type of conversion, the output table that stores the Float has a single FLOAT column.

Convert Hierarchy Datasets to Tables

A Hierarchy dataset may be converted to two output tables. For this type of conversion, the Convert Data action’s InHierarchy, OutTable and OutTable2 properties should be specified.

The OutTable dataset stores objects from the hierarchy, and has the following columns:

Column Description
~ This column is set to ‘=’.
System This column is not used.
ID The internal identifier for the hierarchy object.
STATUS The internal identifier for the object’s comparison status.
ROLLUP_STATUS For objects with subobjects, this column stores the internal identifier for the object’s rolled-up comparison status.
TYPE The type of the object.
NAME The name of the object.
DESCRIPTION The object’s description.

The STATUS and ROLLUP_STATUS columns may contain the following values:

status Description
0 The object was not compared.
2 The object exists in the first compared system only.
3 The object exists in the second compared system only.
4 The object is the same in each compared system.
5 The object is different in each compared system.
6 The object could not be compared.

Convert Images to Strings

If the Convert Data action’s Convert Type property is set to ‘Image_String’, the action converts an Image parameter or dataset to a String dataset. For this type of conversion, the Convert Data action’s InImage and OutString properties should be specified.

Convert IMG Select Lists to Tables

An IMG Select List may be converted to a Table by specifying the Convert Data action’s InIMGSelectList and OutTable properties. In this type of conversion, the output table that stores the IMG Select List has CLASS and OBJECT columns.

Convert Integers to Tables

An Integer may be converted to a Table by specifying the Convert Data action’s InInteger and OutTable properties. In this type of conversion, the output table that stores the Integer has a single INTEGER column.

Convert LiveCompare names to SAP names

If the Convert Data action’s Convert Type property is set to ‘LCNameToSAPName’ the action converts a compound object name without padding:

TYPE NAME
DYNP SAPLZUTL 0100

… to a compound object name with padding

TYPE NAME
DYNP SAPLZUTL                                0100

Unpadded compound object names are returned by the Uses What action in its Tree dataset, however the Get SAP Objects action requires padded compound object types in its Objects dataset. For this type of conversion, the InTable and OutTable properties should be specified, and the input table should include TYPE and NAME columns.

Convert Pipelines to Analysis Systems

If the Convert Data action’s Convert Type property is set to ‘PipelineToAnalysisSystem’, the action converts a Pipeline parameter or dataset to an RFC Destination dataset containing the Pipeline’s Analysis System. For this type of conversion, the Convert Data action’s InPipeline and OutRFCDestination properties should be specified.

Convert Pipelines to Comparison Systems

If the Convert Data action’s Convert Type property is set to ‘PipelineToComparisonSystem’, the action converts a Pipeline parameter or dataset to an RFC Destination dataset containing the Pipeline’s Comparison System. For this type of conversion, the Convert Data action’s InPipeline and OutRFCDestination properties should be specified.

Convert Pipelines to Usage Systems

If the Convert Data action’s Convert Type property is set to ‘PipelineToUsageSystem’, the action converts a Pipeline parameter or dataset to an RFC Destination dataset containing the Pipeline’s Usage System. For this type of conversion, the Convert Data action’s InPipeline and OutRFCDestination properties should be specified.

Convert Pipelines to Business Critical Objects External Data Sources

If the Convert Data action’s Convert Type property is set to ‘PipelineToBusinessCritical’, the action converts a Pipeline parameter or dataset to an External Data Source dataset containing the Pipeline’s Business Critical Objects External Data Source. For this type of conversion, the Convert Data action’s InPipeline and OutExternalDataSource properties should be specified.

Convert Pipelines to SAP Solution Manager Systems

If the Convert Data action’s Convert Type property is set to ‘PipelineToSolutionManagerSystem’, the action converts a Pipeline parameter or dataset to an RFC Destination dataset containing the Pipeline’s SAP Solution Manager System. For this type of conversion, the Convert Data action’s InPipeline and OutRFCDestination properties should be specified.

Convert Pipelines to Most-at-risk Search Test Repositories

If the Convert Data action’s Convert Type property is set to ‘PipelineToSearchTestRepos’ the action converts a Pipeline parameter or dataset to a Table dataset containing the Pipeline’s distinct Most-at-risk Search Test Repositories. For this type of conversion, the Convert Data action’s InPipeline and OutTable properties should be specified.

Convert Pipelines to Most-at-risk Gaps Test Repositories

If the Convert Data action’s Convert Type property is set to ‘PipelineToGapsTestRepo’, the action converts a Pipeline parameter or dataset to a Test Repository dataset containing the Pipeline’s Most-at-risk Gaps Test Repository. For this type of conversion, the Convert Data action’s InPipeline and OutTestRepository properties should be specified.

Convert Pipelines to Most-at-risk Hits Execution Test Repositories

If the Convert Data action’s Convert Type property is set to ‘PipelineToExecuteTestRepo’, the action converts a Pipeline parameter or dataset to a Table dataset containing the Pipeline’s distinct Most-at-risk Hits Execution Test Repositories. For this type of conversion, the Convert Data action’s InPipeline and OutTable properties should be specified.

Convert Pipelines to Tosca Most-at-risk Search Test Repositories

If the Convert Data action’s Convert Type property is set to ‘PipelineToToscaRepo’ the action converts a Pipeline parameter or dataset to a Test Repository dataset containing the Pipeline’s first Tosca Most-at-risk Search Test Repository. For this type of conversion, the Convert Data action’s InPipeline and OutTestRepository properties should be specified.

Convert Pipeline to Execution Names

If the Convert Data action’s Convert Type property is set to ‘PipelineToExecuteName’, the action converts a Pipeline parameter or dataset to a Table dataset containing the Pipeline’s distinct Execution Names. For this type of conversion, the Convert Data action’s InPipeline and OutTable properties should be specified.

Convert Pipelines to Execution Paths

If the Convert Data action’s Convert Type property is set to ‘Pipeline_ExecutePath’, the action converts a Pipeline parameter or dataset to a Table dataset containing the Pipeline’s distinct Most-at-risk Hits Execution Test Repository Execution Paths. For this type of conversion, the Convert Data action’s InPipeline and OutTable properties should be specified.

Convert Pipelines to Execution List Paths

If the Convert Data action’s Convert Type property is set to ‘Pipeline_ExecuteListPath’, the action converts a Pipeline parameter or dataset to a Table dataset containing the Pipeline’s Most-at-risk Hits Execution Test Repository Execution List Paths. For this type of conversion, the Convert Data action’s InPipeline and OutTable properties should be specified.

Convert Pipelines to Known Test Gaps External Data Sources

If the Convert Data action’s Convert Type property is set to ‘PipelineToKnownTestGaps’, the action converts a Pipeline parameter or dataset to an External Data Source dataset containing the Pipeline’s Known Test Gaps External Data Source. For this type of conversion, the Convert Data action’s InPipeline and OutExternal Data Source properties should be specified.

Convert Pipeline to Strings

A Pipeline may be converted to a String by specifying the Convert Data action’s InPipeline and OutString properties.

Convert RFC Destinations to Tables

An RFC Destination may be converted to a Table by specifying the Convert Data action’s InRfcDestination and OutTable properties. In this type of conversion, the output table has the following columns:

Column Description
NAME The name of the RFC Destination.
TYPE The type of the SAP server used for the connection. This column is set to ‘A’ if the connection uses an Application Server, or to ‘M’ if the connection uses a Message Server.
SYSID The SAP system ID used for the connection.
ASHOST The DNS name, domain name or IP address of the SAP Application Server or Message Server.
GROUP For Message Servers, this field is set to the name of the logon group.
INSTANCENR The application instance number of the SAP system.
USER The SAP user ID used for this connection.
CLIENT The SAP client.
LANGUAGE The SAP logon language.

Convert SAP names to LiveCompare names

If the Convert Data action’s Convert Type property is set to ‘SAPNameToLCName’ the action converts a compound object name with padding:

TYPE NAME
DYNP SAPLZUTL                                0100

… to a compound object name without padding

TYPE NAME
DYNP SAPLZUTL 0100

For this type of conversion, the InTable and OutTable properties should be specified, and the input table should include TYPE and NAME columns.

Convert Strings to Images

If the Convert Data action’s Convert Type property is set to ‘String_Image’, the action converts a String parameter or dataset to an Image dataset. For this type of conversion, the Convert Data action’s InString and OutImage properties should be specified.

Convert Strings to Pipelines

A String may be converted to a Pipeline by specifying the Convert Data action’s InString and OutPipeline properties.

Convert Strings to String Lists

A String may be converted to a String List, for example so that it can be used as the To property for a Send Email action. For this type of conversion, the Convert Data action’s InString and OutStringList properties should be specified.

Convert Strings to Tables

A String may be converted to a Table by specifying the Convert Data action’s InString and OutTable properties. In this type of conversion, the output table that stores the String has a single NAME column.

Convert Strings to Test Repositories

A String may be converted to a Test Repository by specifying the Convert Data action’s InString and OutTestRepository properties.

Convert Strings to two-column Tables

If the Convert Data action’s Convert Type property is set to ‘StringsToTwoColumnTable’, the action converts a String parameter or dataset to table with NAME and VALUE columns. The NAME column stores the name of the String parameter or dataset, and the VALUE column stores its value.

For this type of conversion, one or more of the String1 - String9 properties should be specified as inputs, and the OutTable property should be specified as an output. The output table may be used as the Create Dashboard Report action’s Additional Resources dataset.

Concatenate Strings

If the Convert Data action’s Convert Type property is set to ‘JoinStrings’, the action concatenates the values stored in its String1 to String<n> properties in 1 to n order, and stores its result in a String dataset. For this type of conversion, two or more String<n> properties should be specified, as well as the OutString property.

  • Empty String<n> parameters and datasets are included in the concatenation.

  • Empty literal String<n> properties are not included in the concatenation.

  • If the Convert Data action’s Separator property is specified, the separator string (which may be of any length) is included between each of the strings.

Convert String Lists to Strings

A String List may be converted to a String by specifying the Convert Data action’s InStringList and OutString properties. The String value stores the first item in the String List.

Convert String Lists to Tables

A String List may be converted to a Table by specifying the Convert Data action’s InStringList and OutTable properties. In this type of conversion, the output table that stores the String List has a single NAME column.

Convert Table Keys to selection tables

If the Convert Data action’s Convert Type property is set to ‘TableKey_Table’, the action converts a table containing table keys to a table of field selections for the corresponding tables. For this type of conversion, the InTable, OutTable and InRfcDestination properties should be specified.

The input table should have at least a NAME column that contains table key data. For example, the NAME column returned by the Get SAP Objects action for objects with type TABK. The InRfcDestination property should refer to the RFC Destination from which to obtain table key data. The OutTable dataset has the following columns, and may be used as the Rows to Read property for the Retrieve Table Set action.

Column Description
TABLE The name of the SAP table containing the table key.
FIELD A key field from the SAP table.
OP This column is set to ‘EQ’ (equals).
LO The field value associated with the table key.
HI This column is not set.
IE This column is set to ‘I’ (include).

See the Select List parameters help topic for further details.

Convert Tables to AAQ Select Lists

A table may be converted to an AAQ Select list, for example so it can be used as the AAQ Select List property for the Analyze ABAP Quality action. For this type of conversion, the InTable and OutAAQSelectList properties should be specified. The input table should include an id column which stores rule names, and a categoryId column which stores category names.

Convert Tables to Booleans

A table may be converted to the Boolean value ‘true’ if it contains any rows, or to the Boolean value ‘false’ if it is empty. For this type of conversion, the InTable and OutBoolean properties should be specified, and the Convert Type property should be set to ‘Table_Boolean’.

Convert Tables to Hierarchy Datasets

Two input tables may be converted to a Hierarchy dataset by specifying the Convert Data action’s InTable, InTable2 and OutHierarchy properties. The two input tables should be those generated by the ‘Hierarchy Datasets to Tables’ conversion described above (modified if necessary to support your own workflow requirements).

Convert Tables to Pair Lists

A Table may be converted to a Pair List, for example so that it can be used as the Key Map property for the Read SAP Table and Join action. For this type of conversion, the Convert Data action’s InTable and OutPairList properties should be specified. Rows from the first two columns in the table are converted to items in the Pair List.

Convert Tables to RFC Destinations

A Table may be converted to an RFC Destination by specifying the Convert Data action’s InTable and OutRfcDestination properties. The action converts an RFC Destination name in the top left table cell to an RFC Destination. If LiveCompare is resource group- controlled, you should make sure that the RFC Destination is available in your current resource group.

This type of conversion may be used in conjunction with the Get Administration Objects action, specifying ‘RfcDestination’ as the value of the action’s Object Type parameter.

Convert Tables to Select Lists

A Table may be converted to a Select List, for example so that it can be used as the Selects property for a Get SAP Objects action. For this type of conversion, the Convert Data action’s InTable and OutSelectList properties should be specified. The input table should have at least the following columns:

Column Description
FIELD An SAP object type or table field name.
OP The comparison operator to use: One of EQ, GT, GE, LT, LE, BT or CP.
LO The ‘Low’ comparison value.
HI If the ‘BT’ operator is used, this field refers to the ‘high’ comparison value.
IE Enter ‘I’ to include objects or table rows that match this specification, or ‘E’ to exclude them.

See the Select List parameters help topic for further details.

Convert Tables to Strings

If the Convert Data action’s Convert Type property is set to ‘TableToHtmlString’, the action converts a table to its HTML representation stored as a string. For this type of conversion, the InTable and OutString properties should be specified. To prevent converting a large amount of data, the action will report an error if there are more than 30 columns in the input table, or more than 8,192 characters in the resulting HTML string.

The String dataset returned by this type of conversion may be substituted into the Send Email action’s Message parameter. This allows the contents of a Table parameter or dataset to be included in an email.

If the Convert Type property is not specified, the action converts the first cell in the input table to a string. The string value is returned in the action’s OutString dataset.

Convert Tables to String Lists

A Table may be converted to a String List by specifying the Convert Table action’s InTable and OutStringList properties. The String List stores values from the first column in the input table.

Convert Tables to Test Repositories

If the Convert Data action’s Convert Type property is set to ‘Table_TestRepository’, the action converts the first column of the first row of a table to a Test Repository. For this type of conversion, the InTable and OutTestRepository properties should be specified.

Convert Tables to XML

If the Convert Data action’s Convert Type property is set to ‘TableToXML’, the action converts a table to its XML representation. For this type of conversion, the InTable and OutXML properties should be specified. In the resulting XML, the Name node is named after the parameter or dataset used in the conversion.

Convert Test Repositories to Strings

A Test Repository may be converted to a String by specifying the Convert Data action’s InTestRepository and OutString properties.

Convert XML External Data Sources to XML Datasets

An XML External Data Source may be converted to an XML dataset by specifying the InExternalDataSource and OutXML properties.

XML conversions

The Convert Data action supports the following conversions for XML data types:

  • If the InString and OutXML properties are set, the input string is parsed as XML and stored in the output dataset.
  • If the InXML property is set, the input XML may be converted to a table, a string or XML by specifying the OutTable, OutString or OutXML properties. One or more of these output properties may be set.
  • The XSL property stores an XML parameter or dataset specifying an XSL transformation. If this property is set, the XSL transformation is applied to the InXML parameter or dataset before the conversion is performed.

Obtain field definitions from a Table

If the Convert Data action’s Convert Type property is set to ‘Table_TableDefinition’, the action obtains the field definitions from an input Table parameter or dataset. For this type of conversion, the InTable and OutTable properties should be specified.

The OutTable dataset has the following columns:

Column Description
TABLE For SAP tables, this column stores the name of the table. For tables that have not been read from an SAP system, this column is left blank.
NAME The name of a field from the table.
TYPE The type of the field.
LENGTH The length of the field.
ISKEY This column is set to ‘true’ if the field from the input table is a key field, and to ‘false’ otherwise.

Remove Status Details from the Results of the Compare Tables Action

If the Convert Data action’s Convert Type property is set to ‘ConvertStatus’, the action converts table with status information returned by the Compare Tables action to a table with NAME, TYPE and Status columns. For this type of conversion, the InTable and OutTable properties should be specified.

Combine XMLs Convert Type

If the Convert Data action’s Convert Type property is set to ‘CombineXMLs’, the action combines two or more XML parameters or datasets to a single XML dataset, using the specified string value as a top-level XML tag. For this type of conversion, the InXML, InXML2, InString and OutXML properties should be specified. The combined XML is stored in the OutXML dataset.

ObjectListToSelectList Convert Type

If the Convert Data action’s Convert Type property is set to ‘ObjectListToSelectList’, the action converts a table of objects to a table of object selections. For this type of conversion, the InTable and OutTable properties should be specified.

The input table should have at least a NAME and a TYPE column, for example:

NAME TYPE
VA01 TCOD

This is converted to an output table with the following columns:

  • TABNAME
  • SELNAME
  • KIND
  • SIGN
  • OPTION
  • LOW
  • HIGH

For example:

TABNAME SELNAME KIND SIGN OPTION LOW HIGH
  TCOD S I EQ VA01  

The OutTable dataset returned for this type of conversion may be used as the input for a number of Tricentis-supplied SAP functions, called from LiveCompare using the Generic RFC Call action.

Implicit conversion types

LiveCompare attempts to determine the type of conversion to be performed by examining the action’s input parameters and output datasets. If the Convert Type property is not set, LiveCompare uses its determined conversion type. If the Convert Type property and the determined conversion type are different, LiveCompare uses the Convert Type property.

Convert Data actions support the use of the Define Action Parameters Wizard, which allows new input parameters to be created with type ‘Xml’.

Example

 

Convert Data action example.

To examine the details for a Convert Data action, double-click the action node, or select ‘View Details’ from the node’s context menu. If the action uses input or output tables, the Details screen displays the number of rows in the tables and the time taken for the action to complete.