ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Assignments → 

= - Assignment Operator

Syntax

lhs = rhs.

Effect

If the character = is specified in a statement between a left side lhs (or "left hand side") and a right side rhs (or "right hand side"), it functions like an assignment operator that assigns the value of the right side to the left side, possibly using a conversion.

The right side rhs, the source of the assignment, is a general expression position and can be specified as follows:

The left side lhs, the target of the assignment, is a both a declaration position and a result position and can be specified as follows:

If an exception is raised on the right side, the statement is not executed and the value of the target field remains unchanged.

Notes

Programming Guideline

Assignments with the assignment operators = and ?= only




Continue
= - Assign Data Objects
= - Assigning Return Values and Results
= - Assign Calculation Expressions