Ansicht
Dokumentation

ABAPSELECT_ALLOW_PRECISION_LOSS - SELECT ALLOW PRECISION LOSS

ABAPSELECT_ALLOW_PRECISION_LOSS - SELECT ALLOW PRECISION LOSS

Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

- ALLOW_PRECISION_LOSS

... ALLOW_PRECISION_LOSS( SUM( $[DISTINCT$] sql_exp )

Effect

The ALLOW_PRECISION_LOSS statement can improve the performance of an aggregate expression agg_exp at the cost of accuracy of the result. This function should only be used on decimal values and when loss of precision is acceptable. Currently, SUM is the only supported aggregate expression.

Note

A different result is not necessarily obtained when using the ALLOW_PRECISION_LOSS statement to sum up decimal values. A different result and simultaneous improvement in performance is only obtained during certain complex operations. One example is when operations are carried out in a different order to reduce the total number of operations. See the executable example below for further details.

Aggregate function, allow precision loss






ROGBILLS - Synchronize billing plans   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 1515 Date: 20240420 Time: 133614     sap01-206 ( 32 ms )