/AWS1/CL_PP2TMPLVARIABLEMET¶
Contains metadata about a template variable.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_type TYPE /AWS1/PP2TEMPLATEVARIABLETYPE /AWS1/PP2TEMPLATEVARIABLETYPE¶
The type of the variable.
iv_required TYPE /AWS1/PP2PRIMITIVEBOOLEAN /AWS1/PP2PRIMITIVEBOOLEAN¶
Whether the variable is required.
Optional arguments:¶
iv_description TYPE /AWS1/PP2STRING /AWS1/PP2STRING¶
A description of the variable.
iv_maxlength TYPE /AWS1/PP2INTEGER /AWS1/PP2INTEGER¶
The maximum length for string variables.
iv_minvalue TYPE /AWS1/PP2INTEGER /AWS1/PP2INTEGER¶
The minimum value for numeric variables.
iv_maxvalue TYPE /AWS1/PP2INTEGER /AWS1/PP2INTEGER¶
The maximum value for numeric variables.
iv_defaultvalue TYPE /AWS1/PP2STRING /AWS1/PP2STRING¶
The default value for the variable.
iv_pattern TYPE /AWS1/PP2STRING /AWS1/PP2STRING¶
The regex pattern the variable value must match.
iv_sample TYPE /AWS1/PP2STRING /AWS1/PP2STRING¶
A sample value for the variable.
iv_source TYPE /AWS1/PP2TEMPLATEVARBLSOURCE /AWS1/PP2TEMPLATEVARBLSOURCE¶
The source of the variable, either
CUSTOMERorSYSTEM.
Queryable Attributes¶
Type¶
The type of the variable.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TYPE() |
Getter for TYPE, with configurable default |
ASK_TYPE() |
Getter for TYPE w/ exceptions if field has no value |
HAS_TYPE() |
Determine if TYPE has a value |
Required¶
Whether the variable is required.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_REQUIRED() |
Getter for REQUIRED |
Description¶
A description of the variable.
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 |
MaxLength¶
The maximum length for string variables.
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 |
MinValue¶
The minimum value for numeric variables.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MINVALUE() |
Getter for MINVALUE, with configurable default |
ASK_MINVALUE() |
Getter for MINVALUE w/ exceptions if field has no value |
HAS_MINVALUE() |
Determine if MINVALUE has a value |
MaxValue¶
The maximum value for numeric variables.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MAXVALUE() |
Getter for MAXVALUE, with configurable default |
ASK_MAXVALUE() |
Getter for MAXVALUE w/ exceptions if field has no value |
HAS_MAXVALUE() |
Determine if MAXVALUE has a value |
DefaultValue¶
The default value for the variable.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DEFAULTVALUE() |
Getter for DEFAULTVALUE, with configurable default |
ASK_DEFAULTVALUE() |
Getter for DEFAULTVALUE w/ exceptions if field has no value |
HAS_DEFAULTVALUE() |
Determine if DEFAULTVALUE has a value |
Pattern¶
The regex pattern the variable value must match.
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 |
Sample¶
A sample value for the variable.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SAMPLE() |
Getter for SAMPLE, with configurable default |
ASK_SAMPLE() |
Getter for SAMPLE w/ exceptions if field has no value |
HAS_SAMPLE() |
Determine if SAMPLE has a value |
Source¶
The source of the variable, either
CUSTOMERorSYSTEM.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SOURCE() |
Getter for SOURCE, with configurable default |
ASK_SOURCE() |
Getter for SOURCE w/ exceptions if field has no value |
HAS_SOURCE() |
Determine if SOURCE 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_TEMPLATEVARIABLESMAP¶
TYPES TT_TEMPLATEVARIABLESMAP TYPE HASHED TABLE OF /AWS1/CL_PP2TMPLVARIABLEMET=>TS_TEMPLATEVARIABLESMAP_MAPROW WITH UNIQUE KEY key
.
TS_TEMPLATEVARIABLESMAP_MAPROW¶
TYPES: BEGIN OF TS_TEMPLATEVARIABLESMAP_MAPROW,
key TYPE /AWS1/PP2STRING,
value TYPE REF TO /AWS1/CL_PP2TMPLVARIABLEMET,
END OF TS_TEMPLATEVARIABLESMAP_MAPROW.