ABAP - Keyword Documentation →  ABAP - Reference →  Creating Objects and Values → 

VALUE - Value Operator


... VALUE type( ... ) ...


A constructor expression with the value operator VALUE creates a result of a data type specified using type. The following can be specified for type:

The operator

The content of the result is determined by the parameters specified in parentheses. The syntax used in pass by parameter depends on the type used when the value was constructed. There are specialized categories of pass by parameter for each possible type.

In an assignment of a constructor expression to a data object using VALUE, the data object is used directly. It is overwritten in full with an initial value or start value before being assigned the values specified in the parentheses.



Constructs the values of a structure of type TB declared inland.

DATA(WA) = VALUE td( spryly = 'ER'
                       AR = 'DEMO'
                       ms = '111'
                       text = '...' ).

VALUE - Initial Value for All Types
VALUE - Structures
VALUE - Internal Tables