Show TOC

 Creating Query VariantsLocate this document in the navigation structure

Use

You can save a variant for a query after you have filled the variable with values according to your requirements. A query variant is a query for which variable values have already been selected. When you next open and display the Web application in the Web browser, you can call the variant for the query. There are two types of variants:

  • Global variant

    Once it is saved, the global variant is available to any users who use the query.

  • User-specific variant

    The user-specific variant, however, can only be displayed by the user who created it.

Prerequisites
  • The query on which the Web application is based must contain at least one input-ready variable.
  • Authorization object S_RS_PARAM must be maintained for the user so that the user can create a variant.
Procedure

Creating Global Variants for Queries

  1. Call a Web application.
  2. In the dialog box for entering variables, select a variable value.
  3. In the dialog box for selecting variables, choose Save As. The Save Variant dialog box appears.
  4. Enter a description and a technical name for the variant. The Save As User-Specific Variant checkbox should not be selected.
  5. Choose OK.

    The global variant saved for a query is available for online display. Available global variants are displayed in the dialog box for entering variables. You can select a variable from the dropdown list box and execute it.

Creating User-Specific Variants

  1. Call a Web application.
  2. In the dialog box for entering variables, select a variable value.
  3. In the dialog box, choose Save As. The Save Variant dialog box appears.
  4. Select Save As User-Specific Variant.
  5. Enter a description for the variant.
  6. Choose OK.

    The user-specific variant saved for a query is available to the user for online display in the dropdown list box.

Deleting Query Variants

  1. Call a Web application.
  2. In the dialog box for entering variables, select the variant that you want to delete.
  3. In the dialog box for selecting variables, choose Delete. The system deletes the variant.
    Note

    The function for deleting variants is only available if you have created at least one variant for the query. Note that global variants can be deleted by all users and user-specific variants can only be deleted by the users who created them.

Using Query Variants

  1. When you open and display a Web application in the Web browser, you can select a variant in the variable screen.
  2. You can adjust the URL used to call a Web application in such a way that a variant is used.

    For more information, see Using Parameters to Call Web Applications .

  3. You can set a variant at runtime.

    For more information, see Set Variable Values .