Definition
You can use rules of the type Help Texts and Checks
to display messages directly in the attribute. You can select inadmissible values accordingly and provide an explanatory text for them. You can acccess SAP message classes here.
Application usage | CI - Help texts and checks |
Reference object / cardinality | Attribute / 1:n |
Versioned | Yes |
Redefinition | Yes |
Implementation class |
|
Inbound parameter | Variable according to the context generated |
Return value | See table |
Expression Type for Function: Decision Table
The following table contains an overview of the help texts and checks characteristics:
Column | Description | Possible Entries | Data Element | Comment |
---|---|---|---|---|
Condition | ||||
Such as attribute X | Attribute used as the basis for defining the field value | |||
Boolean expression | Applies or does not apply | |||
Result | ||||
| Inadmissible value indicator | ' ' Attribute is admissible 'X' Attribute is not admissible | CHAR1 | |
| Descriptive text for inadmissible values | Free text | String | This text is displayed for the attribute if an error occurs. |
| Message category | E: Error W: Warning I: Information S: Success Message | See ABAP documentation for message and message class | |
| Message class | |||
| Message number | |||
| Placeholder 1 | |||
| Placeholder 2 | |||
| Placeholder 3 | |||
| Placeholder 4 |
Note
At runtime, the system processes the decision table again if an attribute created by choosing Add Context Attribute
has changed.
Example
A product contains an attribute Requested Contract Start
and an indicator Change of Supplier
. If Change of Supplier
is selected, the contract start must not be less than 21 days in the future.. The system creates a new rule for the attribute Requested Contract Start
. The attribute Change of Supplier
and the attribute Requested Contract Start
are used as context-dependent input parameters and the return value ISURSLT_INVALID is calculated using a formula. The formula compares whether the contract start date is found less than 21 days in the future and returns the value 'X' for this column with an error message if this is the case. This defines the value as being inadmissible
and a corresponding message is displayed behind the input field at runtime.
The decison table contains the following values in the example shown here:
Condition - Change of Supplier | Result - | Result - |
---|---|---|
'X' (Option selected) | Boolean value formula: 'Start date of contract' < | Contract start must be at least 21 days in the future |
' ' (Option not selected) | ' ' (Option not selected) |