ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Character String and Byte String Processing →  Expressions and Functions for Byte String Processing →  Byte String Functions → 

bit-set - Bit Function

Bit functions process individual bits and return byte-like results. At present, the one bit function is available:

Syntax

... bit-set( arg ) ...

This function expects an integer numerical value as an argument. The argument is a numerical expression position of the type i.

The length of the result is the minimum number of bytes needed to include the set bits.

The function can be used in all positions in which a bit expression can be used, particularly in bit expressions themselves.

Notes