Hierarchy
⤷ PA-AS (Application Component) HR Administrative Services
⤷ PAOC_ASR_CONTROLLER (Package) Controller
Basic Data
Data Element | ASR_RULE |
Short Description | Rule |
Data Type
Category of Dictionary Type | D | Domain |
Type of Object Referenced | No Information | |
Domain / Name of Reference Type | ASR_RULE | |
Data Type | CHAR | Character String |
Length | 32 | |
Decimal Places | 0 | |
Output Length | 32 | |
Value Table | T5ASRFSCNRULE |
Further Characteristics
Search Help: Name | ||
Search Help: Parameters | ||
Parameter ID | ||
Default Component name | ||
Change document | ||
No Input History | ||
Basic direction is set to LTR | ||
No BIDI Filtering |
Field Label
Length | Field Label | |
Short | 10 | Rule |
Medium | 15 | Rule |
Long | 20 | Rule |
Heading | 10 | Rule |
Documentation
Definition
Are based on the fields of the form scenario and return the result "true" or "false" at runtime depending on the values.
Use
Rules can be used when defining a form scenario to control the backend services for the following purposes:
- Call a backend service under certain conditions only
- Call an operation of a backend service under certain conditions only
The backend service or operation is called only if the result of the rule is "true" at runtime.
The rules are modeled using a formula editor. You can use the following parameters to model a rule:
- Potentially all fields of the form scenario (see below for exceptions)
- System fields
- Constants
- Standard features
- Logical operations (AND, OR, and so on)
Call the formula editor using the Formula pushbutton.
For more information, choose Formula -> Information in the formula editor.
Dependencies
If the rule is assigned to an operation of a backend service, then all form fields that are used in the rule must also be assigned to the backend service.
You can only use rules that were defined as so-called Boolean rules, that is, the result of a rule must be either "true" or "false" in each case. Other rules are not supported.
Only form fields that contain just one value at runtime may be used as a parameter of a rule. If a field contains more than one value at runtime (for example, the so-called repeat fields), it may not be used in a rule.
Example
The "Entitled to Company Car" rule could be defined as follows:
- ("Annual sales of employee" > 50000) OR ("Hiring date" >= 01/01/2000)
History
Last changed by/on | SAP | 20050428 |
SAP Release Created in | 600 |