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

=, String Expression

Syntax

result = string_exp.

Effect

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:

Example

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.