/AWS1/CL_PP2FIELDCONDITION¶
A single condition on a dependency field's value. Conditions are combined into a ConditionalRule and evaluated together with logical AND.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_dependsonfieldpath TYPE /AWS1/PP2FIELDPATH /AWS1/PP2FIELDPATH¶
The path of the field whose value determines this condition, for example companyInfo.businessType.
iv_operator TYPE /AWS1/PP2CONDITIONOPERATOR /AWS1/PP2CONDITIONOPERATOR¶
The comparison operator to apply between the dependency field's value and Values. Valid values are EQUALS, NOT_EQUALS, IN, NOT_IN, HAS_VALUE, and NO_VALUE. Operators not in this list are treated as evaluating to false, which causes the containing rule to be skipped. This allows forward-compatible additions of new operators without breaking older SDK clients.
Optional arguments:¶
it_values TYPE /AWS1/CL_PP2CONDVALUELIST_W=>TT_CONDITIONVALUELIST TT_CONDITIONVALUELIST¶
The values to compare the dependency field's value against. Required for the EQUALS, NOT_EQUALS, IN, and NOT_IN operators. Omitted for HAS_VALUE and NO_VALUE, which test only presence.
Queryable Attributes¶
DependsOnFieldPath¶
The path of the field whose value determines this condition, for example companyInfo.businessType.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DEPENDSONFIELDPATH() |
Getter for DEPENDSONFIELDPATH, with configurable default |
ASK_DEPENDSONFIELDPATH() |
Getter for DEPENDSONFIELDPATH w/ exceptions if field has no |
HAS_DEPENDSONFIELDPATH() |
Determine if DEPENDSONFIELDPATH has a value |
Operator¶
The comparison operator to apply between the dependency field's value and Values. Valid values are EQUALS, NOT_EQUALS, IN, NOT_IN, HAS_VALUE, and NO_VALUE. Operators not in this list are treated as evaluating to false, which causes the containing rule to be skipped. This allows forward-compatible additions of new operators without breaking older SDK clients.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_OPERATOR() |
Getter for OPERATOR, with configurable default |
ASK_OPERATOR() |
Getter for OPERATOR w/ exceptions if field has no value |
HAS_OPERATOR() |
Determine if OPERATOR has a value |
Values¶
The values to compare the dependency field's value against. Required for the EQUALS, NOT_EQUALS, IN, and NOT_IN operators. Omitted for HAS_VALUE and NO_VALUE, which test only presence.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VALUES() |
Getter for VALUES, with configurable default |
ASK_VALUES() |
Getter for VALUES w/ exceptions if field has no value |
HAS_VALUES() |
Determine if VALUES has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_FIELDCONDITIONLIST¶
TYPES TT_FIELDCONDITIONLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_PP2FIELDCONDITION WITH DEFAULT KEY
.