Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Character String and Byte String Processing 

&&= - Calculation Assignment

Other versions: 7.31 | 7.40 | 7.54

Syntax


lhs &&= rhs.

Effect

Calculation assignment with the string assignment operator &&=.

This assignment works in the same way as the following assignment of a string expression:

lhs = lhs && rhs.

The result of the expression rhs is concatenated with the content of lhs and the result is assigned to lhs.

The following applies to the operands lhs and rhs:

  • lhs is a result position and the following can be specified (if character-like):
Type inference with the character # is not currently possible in constructor expressions. Numeric expressions and bit expressions cannot be specified.


Notes


Example

After the calculation assignments the variable text has the value 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,.

DATA text TYPE string. 
DO 10 TIMES. 
  text &&= |{ sy-index }, |. 
ENDDO.