Skip to content

/AWS1/CL_APCTREATMENT

Describes a treatment in an experiment, including its traffic allocation weight and feature flag value.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_weight TYPE /AWS1/RT_FLOAT_AS_STRING /AWS1/RT_FLOAT_AS_STRING

The traffic allocation weight for this treatment.

io_flagvalue TYPE REF TO /AWS1/CL_APCFLAGVALUE /AWS1/CL_APCFLAGVALUE

The feature flag value served to users assigned to this treatment.

Optional arguments:

iv_key TYPE /AWS1/APCTREATMENTKEY /AWS1/APCTREATMENTKEY

The unique key that identifies this treatment.

iv_description TYPE /AWS1/APCDESCRIPTION /AWS1/APCDESCRIPTION

A description of the treatment.


Queryable Attributes

Key

The unique key that identifies this treatment.

Accessible with the following methods

Method Description
GET_KEY() Getter for KEY, with configurable default
ASK_KEY() Getter for KEY w/ exceptions if field has no value
HAS_KEY() Determine if KEY has a value

Weight

The traffic allocation weight for this treatment.

Accessible with the following methods

Method Description
GET_WEIGHT() Getter for WEIGHT
ASK_WEIGHT() Getter for WEIGHT w/ exceptions if field has no value
STR_WEIGHT() String format for WEIGHT

Description

A description of the treatment.

Accessible with the following methods

Method Description
GET_DESCRIPTION() Getter for DESCRIPTION, with configurable default
ASK_DESCRIPTION() Getter for DESCRIPTION w/ exceptions if field has no value
HAS_DESCRIPTION() Determine if DESCRIPTION has a value

FlagValue

The feature flag value served to users assigned to this treatment.

Accessible with the following methods

Method Description
GET_FLAGVALUE() Getter for FLAGVALUE

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_TREATMENTLIST

TYPES TT_TREATMENTLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_APCTREATMENT WITH DEFAULT KEY
.