SAP NEWS-40-BITOPS



Get Example source ABAP code based on a different SAP table
  



Bit Operations and Bit Comparisons in ABAP Release 4.0
ITOC

ABAP_MODIFICATION_NN New Variants SET BIT and GET BIT

SET BIT n of f sets the nth bit of the field f.
GET BIT n OF f INTO g passes the nth bit of the field f to the field g.

ABAP_MODIFICATION_NN New Bit Operations

In the COMPUTE statement, the new operators BIT-NOT, BIT-AND, BIT-XOR, and BIT-OR can be used for bit operations.
Complex conditions and sets can be managed efficiently using the new variants SET BIT and GET BIT and the new bit operations applied to bit strings.

ABAP_MODIFICATION_NN Changes in Bit Comparisons

In the case of the comparison operators O, Z, and M, comparisons now take place in the length of the second operand, which must have the type X.
Before ABAP_RELEASE 3.0, comparisons took place in length 1 and the second field was considered to be a X field, regardless of its type and length.