sapdev logo background
sapdev logo sapdev logo
Comments

SAP NEWS-40-BITOPS documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Bit Operations and Bit Comparisons in Release 4.0


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.
You can manage complex conditions and sets efficiently with the new variants SET BIT and GET BIT and the new bit operations applied to bits strings.


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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




NEWS-40-ASSIGN
NEWS-40-DICTIONARY-TYPES




comments powered by Disqus