ABAP Keyword Documentation → ABAP − Release-Specific Changes → Changes in Releases 4.0 and 4.5
Bit Operations and Bit Comparisons in Release 4.0
Other versions: 7.31 | 7.40 | 7.54
New variants SET BIT and GET BIT
SET BIT n of f sets the nth bit of field f.
GET BIT n OF f INTO g puts the nth bit of field f in field g.
,,New bit operations BIT-NOT, BIT-AND, BIT-XOR and BIT-OR
In the COMPUTE statement,
the new operators BIT-NOT, BIT-AND, BIT-XOR and BIT-OR can be used for bit operations.
SET BITGET BITnew bit operations
Changes in Bit Comparisons
The comparison is now performed in the second operand for the
compare operators O,
Z and M, where the operand must be of type X.
Up to Release 3.0 the comparison was performed in length 1 and the second field was considerd to be a X field, regardless of its type and length.