SAP CALCULATION ASSIGNMENT STRING



Get Example source ABAP code based on a different SAP table
  


• = ABAP_ASSIGN_OPERATOR

=, Calculation Assignment

ABAP_SYNTAX
lhs = rhs.

What does it do?
Calculation assignment with the concatenation assignment operator =.
This assignment has the same effect 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 they are character-like:
Variables
Writable expressions
rhs is a character-like expression position and the following can be specified if they are character-like:
Data objects
Constructor expressions
String expressions
Table expressions
Functions Type inference with the character # is not currently possible in constructor expressions. No numeric expressions and bit expressions can be specified.



Latest notes:

No inline declarations are possible for lhs .
Calculation assignments can currently only be specified as standalone statements and after NEXT in the reduction operator REDUCE. They are not possible in other expressions.
See also the addition assignment operator (+=), the subtraction assignment operator ( -=), the multiplication assignment operator (*=), and the division assignment operator ( /=).
NON_V5_HINTS
ABAP_HINT_END

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