Skip to content

/AWS1/CL_SUSWATERALLOCATION

Represents a water allocation quantity with its value and unit of measurement.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_value TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING

The numeric value of the allocation quantity.

iv_unit TYPE /AWS1/SUSWATERALLOCATIONUNIT /AWS1/SUSWATERALLOCATIONUNIT

The unit of measurement for the allocation value.


Queryable Attributes

Value

The numeric value of the allocation quantity.

Accessible with the following methods

Method Description
GET_VALUE() Getter for VALUE, with configurable default
ASK_VALUE() Getter for VALUE w/ exceptions if field has no value
STR_VALUE() String format for VALUE, with configurable default
HAS_VALUE() Determine if VALUE has a value

Unit

The unit of measurement for the allocation value.

Accessible with the following methods

Method Description
GET_UNIT() Getter for UNIT, with configurable default
ASK_UNIT() Getter for UNIT w/ exceptions if field has no value
HAS_UNIT() Determine if UNIT 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_WATERALLOCATIONMAP

TYPES TT_WATERALLOCATIONMAP TYPE HASHED TABLE OF /AWS1/CL_SUSWATERALLOCATION=>TS_WATERALLOCATIONMAP_MAPROW WITH UNIQUE KEY key
.

TS_WATERALLOCATIONMAP_MAPROW

TYPES: BEGIN OF TS_WATERALLOCATIONMAP_MAPROW,
  key TYPE /AWS1/SUSWATERALLOCATIONTYPE,
  value TYPE REF TO /AWS1/CL_SUSWATERALLOCATION,
END OF TS_WATERALLOCATIONMAP_MAPROW.