Skip to content

Variants and Selections

This page shows how to handle Report variants and selections in the Xtract Universal.iQ Report service type.

About Variants and Selections

Selections and variants define which data is returned when an SAP report is executed. Xtract Universal.iQ supports the use of selections and variants in the Report service type to filter data.

  • Selections:
    Most SAP Reports provide a selection screen before execution, where users can enter selection criteria like company codes, document numbers, posting dates, or other filter values. These selections limit the result set to records that match the specified criteria.
  • Variants:
    The selection screen of a Report also allows you to save selections as a variant. A variant stores predefined selection values and settings, allowing users to run the same Report repeatedly without manually re-entering the selection criteria. For more information, see SAP Help: Selection Variants.

Note

Selections defined in Xtract Universal.iQ overwrite selections in the variant.

Load a Variant

In the main window of the Report service type, select a variant from the Variant dropdown.
If you create a new variant in SAP after creating the service, click the refresh symbol next to the dropdown to load the new variant.

Variants-Section

Tip

You can select a variant at runtime using the variant runtime parameter. This allows you to switch variants dynamically when running the service, see Runtime Parameters.

Add Selections

The Selection Screen section in the Report service type corresponds to the selection input screen in SAP. When loading a variant, its selection values are displayed in the Selection Screen section. You can modify or remove these values as needed.

Tip

Some selection fields only have a technical name and no description. To understand which field corresponds to a field in SAP, open the input screen in SAP. Click a selection field and press the function key F1 to display the technical name of the selection field.

To add selections and filter data:

  1. Go to the Selection Screen section and find the field you want to filter.
  2. Click the + symbol next to the field. A filter condition is added and displayed below the field. Sections
  3. Select one of the following filter actions:
    • Include: Includes only the specified data in the result set of the report.
    • Exclude: Excludes the specified data from the result set.
  4. Select one of the following operators:

    Operator Description
    (not) equal to True if data is (not) equal to the specified value.
    less than True if data is less than the specified value.
    more than True if data is greater than the specified value.
    at most True if data is less than or equal to the specified value.
    at least True if data is greater than or equal to the specified value.
    (not) like pattern True if data values do (not) contain the specified value.
    is (not) between True if data values does (not) lie between the 2 specified single values.
    element of True if data values are part of a specified list of values. This operator is only compatible with List parameters.
  5. Enter values directly into the input fields of the filter condition or click the $ symbol next to the input fields to assign a custom parameter to the input field. Use SAP data formats for input values, see Data Format.

  6. Use the Report Layout Designer to load a preview based on your selection. If parameters are defined, you are prompted to populate the parameters with actual values, before fetching the preview.
  7. Close the Report Layout Designer and click [Save] to save the selection.

The selection is applied whenever you run the service.

Remove Selections

You can remove manually created selections and pre-existing variant selections from the service. To remove all selections, click the X symbol next to the Variant dropdown.

To remove single selections:

  1. Go to the Selection Screen section and find the filter you want to remove.
  2. Click the Click the trashbin button ( icon) next to the field.
  3. Click [Save] to save the changes.

The filter condition is removed from the service.

Data Format

Use the following internal SAP representation for input:

  • Date: The date 01.01.1999 has the internal representation 19990101 (YYYYMMDD).
  • Year period: The year period 001.1999 has the internal representation 1999001 (YYYYPPP).
  • Numbers: Numbers must contain the leading zeros, e.g., customer number 1000 has the internal representation 0000001000.

Warning

Values accept only the internal SAP representation.
Input that does not use the internal SAP representation results in error messages. Use the internal SAP representation. Example:

ERPConnect.ABAPProgramException: RfcInvoke failed(RFC_ABAP_MESSAGE): Enter date in the format \_.\_.\_


Last update: November 24, 2026