Show TOC

 Definition of Rules

Use

You use this function to create rules that you can use to control whether a back-end service is called or whether a specific operation of this service is called.

Features

Rules are based on form fields and return “true” or “false” as a result at runtime, depending on the input values. The back-end service or operation is called only if the result of the rule is "true" at runtime.

A formula editor is available for defining a rule. The following parameters can be used in a rule:

  • All fields of a form scenario, except for fields that contain more than one value at runtime (for example, repeat fields that are supported by the SAP_PA service).

  • System fields

  • Constants

  • Standard features

  • Logical operations (AND, OR, and so on)

    Note Note

    If you assign the rule to an operation of a back-end service, all form fields that you use in the rule must also be assigned to the back-end service.

    You can only use rules that were defined as Boolean rules, meaning that the result of a rule must be either “true” or “false” in each case. Other rules are not supported.

    End of the note.

Activities

You enter a Rule and a Description . When you have confirmed your entries, you can use the icons in the Formula column to define or edit the rule in the formula editor.

Example

The “Entitled to Company Car” rule could be defined as follows:

(“Annual sales of employee” > 50000) OR (“Hiring date” <= 01/01/2000)