Ansicht
Dokumentation

ABENLOGEXP_BITMASKS - LOGEXP BITMASKS

ABENLOGEXP_BITMASKS - LOGEXP BITMASKS

ROGBILLS - Synchronize billing plans   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

- Comparison Operators for Bit Patterns

The table below shows the comparison operators for comparisons of operands (single data objects or return values or bit expressions) with bit patterns in byte-like operands in comparison expressions. The data type of the right operand operand2 must be byte-like (x or xstring). It contains the bit pattern with which the left operand operand1 is compared. If operand1 is shorter than operand2, hexadecimal zeros are appended to the right of operand1 in accordance with the comparison rules to lengthen it appropriately. No further conversion takes place. The data type of operand1 must also be byte-like (x or xstring).

operator Meaning
O Ones: True, if the bits that are 1 in operand2, are also 1 in operand1. If operand2 contains only zeros, the comparison expression is always true.
Z Zeros: True, if the bits that are 1 in operand2 are 0 in operand1. If operand2 contains only zeros, the comparison expression is always true.
M Mixed: True, if of the bits that are 1 in operand2, at least one is 1 and one is 0 in operand1. If operand2 contains only zeros, the comparison expression is always false.

Note

For the result of the comparisons, it is irrelevant whether the bits that are 0 in operand2, are 1 or 0 in operand1.

The logical expression in the IF statement is false because 00 is appended to the right of hex1 before the comparison. If the content of hex2 were 111100, the comparison would be true.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2601 Date: 20240425 Time: 070915     sap01-206 ( 37 ms )