/AWS1/CL_PP2CONDVALIDATION¶
Per-rule validation constraints that override the field's default validation when the containing rule matches. All fields are optional; only the constraints that need to differ from the field's default validation are provided.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_minlength TYPE /AWS1/PP2INTEGER /AWS1/PP2INTEGER¶
The minimum length for the field value when this rule applies.
iv_maxlength TYPE /AWS1/PP2INTEGER /AWS1/PP2INTEGER¶
The maximum length for the field value when this rule applies.
iv_pattern TYPE /AWS1/PP2STRING /AWS1/PP2STRING¶
A regular expression that the field value must match when this rule applies.
it_allowedvalues TYPE /AWS1/CL_PP2SELECTCHOICELIST_W=>TT_SELECTCHOICELIST TT_SELECTCHOICELIST¶
The allowed values for a select field when this rule applies. A subset of the field's full option list.
Queryable Attributes¶
MinLength¶
The minimum length for the field value when this rule applies.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MINLENGTH() |
Getter for MINLENGTH, with configurable default |
ASK_MINLENGTH() |
Getter for MINLENGTH w/ exceptions if field has no value |
HAS_MINLENGTH() |
Determine if MINLENGTH has a value |
MaxLength¶
The maximum length for the field value when this rule applies.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MAXLENGTH() |
Getter for MAXLENGTH, with configurable default |
ASK_MAXLENGTH() |
Getter for MAXLENGTH w/ exceptions if field has no value |
HAS_MAXLENGTH() |
Determine if MAXLENGTH has a value |
Pattern¶
A regular expression that the field value must match when this rule applies.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PATTERN() |
Getter for PATTERN, with configurable default |
ASK_PATTERN() |
Getter for PATTERN w/ exceptions if field has no value |
HAS_PATTERN() |
Determine if PATTERN has a value |
AllowedValues¶
The allowed values for a select field when this rule applies. A subset of the field's full option list.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ALLOWEDVALUES() |
Getter for ALLOWEDVALUES, with configurable default |
ASK_ALLOWEDVALUES() |
Getter for ALLOWEDVALUES w/ exceptions if field has no value |
HAS_ALLOWEDVALUES() |
Determine if ALLOWEDVALUES has a value |