Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Processing Internal Data →  Assignments →  = - Assignment Operator →  = - Assign Calculation Expressions 

=, String Expression

Other versions: 7.31 | 7.40 | 7.54


result = string_exp.


If a string expression string_exp is specified on the right side of the assignment operator =, its result of type string is calculated and assigned to the left side result.

The following can be specified for result:

  • A variable that has type string or to whose data type the result can be converted.
  • An inline declaration DATA(var). The data type of the declared variable var is string.


The first assignment declares a target field of the type string inline and assigns it the chained text "12". The second assignment converts the chained text "12" to the number 12.

DATA(text) = '1' && '2'. 

DATA number TYPE i. 
number = 1 && 2.