/AWS1/CL_BDCVARIANT¶
A variant in an A/B test, representing either the control (C) or treatment (T1) configuration.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/BDCVARIANTNAME /AWS1/BDCVARIANTNAME¶
The name of the variant. Must be
Cfor control orT1for treatment.
iv_weight TYPE /AWS1/BDCINTEGER /AWS1/BDCINTEGER¶
The percentage of traffic to route to this variant. Weights across all variants must sum to 100.
io_variantconfiguration TYPE REF TO /AWS1/CL_BDCVARIANTCONF /AWS1/CL_BDCVARIANTCONF¶
The configuration for this variant, including the configuration bundle or target reference.
Queryable Attributes¶
name¶
The name of the variant. Must be
Cfor control orT1for treatment.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_NAME() |
Getter for NAME, with configurable default |
ASK_NAME() |
Getter for NAME w/ exceptions if field has no value |
HAS_NAME() |
Determine if NAME has a value |
weight¶
The percentage of traffic to route to this variant. Weights across all variants must sum to 100.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_WEIGHT() |
Getter for WEIGHT, with configurable default |
ASK_WEIGHT() |
Getter for WEIGHT w/ exceptions if field has no value |
HAS_WEIGHT() |
Determine if WEIGHT has a value |
variantConfiguration¶
The configuration for this variant, including the configuration bundle or target reference.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VARIANTCONFIGURATION() |
Getter for VARIANTCONFIGURATION |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_VARIANTLIST¶
TYPES TT_VARIANTLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_BDCVARIANT WITH DEFAULT KEY
.