SAP Tutorials Blog

 

Bitwise Operators

ABAP also provides a series of bitwise logical operators that can be used to build Boolean algebraic expressions. The bitwise operators can be combined in complex expressions using parentheses and so on.


S.No. Bitwise Operator & Description

1

BIT-NOT


Unary operator that flips all the bits in a hexadecimal number to the opposite value. For instance, applying this operator to a hexadecimal number having the bit level value 10101010 (e.g. 'AA') would give 01010101.


2

BIT-AND


This binary operator compares each field bit by bit using the Boolean AND operator.


3

BIT-XOR


Binary operator that compares each field bit by bit using the Boolean XOR (exclusive OR) operator.


4

BIT-OR


Binary operator that compares each field bit by bit using the Boolean OR operator.



Serkan AKKAVAK

Computer Engineer BSc

SAP Department Manager

Contact : serkurumsal@yandex.com