Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  ABAP Syntax →  ABAP Statements →  Operators and Expressions 

Operators

ABAP contains the following operators:

  • Assignment Operators
    The assignment operators = and ?= associate the source and target field of an assignment. The operator = also associates actual parameters with formal parameters, for example in procedure calls or when working with data clusters.
  • Arithmetic Operators
    The arithmetic operators +, -, *, /, DIV, MOD, and ** associate two or more numeric operands with an arithmetic expression. In addition, the characters + and - act as plus/minus signs in arithmetic expressions.
  • Bit Operators
    The bit operators BIT-AND, BIT-OR, and BIT-XOR associate two or more byte-like operands with a bit expression. The bit operator BIT-NOT negates a byte-like operand.
  • String Operators
    The string operator && chains two character-like operands to a string expression.
  • Relational Operators
    The relational operators =, <>, <, >, <=, >=, and so on associate two operands of any data type with a logical expression. There are additional relational operators for specific data types.
  • Boolean Operators
    The Boolean operators AND, OR, and EQUIV associate the results of individual logical expressions with a logical expression. The result of a logical expression is either true or false. The Boolean operator NOT inverts the result of a logical expression.
  • Literal Operator
    The literal operator & associates two literals or two string templates with a literal or a string template.

Other versions: 7.31 | 7.40 | 7.54