Ansicht
Dokumentation

ABENBITEXP_LENGTH - BITEXP LENGTH

ABENBITEXP_LENGTH - BITEXP LENGTH

ROGBILLS - Synchronize billing plans   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

- Calculation Length

A bit expression is assigned a calculation length in which the operation is executed.

The calculation length is the length of the longest bit expression operand involved. Unlike in the calculation type of an arithmetic expression, the type of the result is not included.

Before the entire expression is evaluated, all operands involved are converted to the length of the longest operand based on the rules for the source field type x and xstring. This means that shorter operands are padded with hexadecimal 0 on the right.

The result in the calculation length is handled as follows:

  • If used in the statement COMPUTE, the final result of the entire expression is converted to the length of the data object result based on the rules for source field type x and xstring. In assignments to an inline declaration DATA(var) or FINAL(var) the result of type xstring is in the calculation length.
  • If used in relational expressions, the result is used as an operand in the length resulting from the calculation.
  • If used as an actual parameter for input parameters of methods, the final result of the entire expression is converted to the length of the formal parameter based on the rules for source field type x and xstring. If the formal parameter is typed generically, it is set to the type x in the length determined by the operands.

Example

The result of the following bit expression is hexadecimal 11111010 with a length of 4 bytes.






Vendor Master (General Section)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2949 Date: 20240329 Time: 102638     sap01-206 ( 48 ms )