SAP CONVERSION COSTS ABEXA



Get Example source ABAP code based on a different SAP table
  



Conversion Costs
This example demonstrates costs for type conversions in assignments and operand positions.

ABAP_SOURCE_CODE
DEMO CL_DEMO_CONVERSION_COSTS

ABAP_DESCRIPTION
The class calculates the ratio of the costs of a conversion from type n to i and the costs of a direct memory copy from type i to i. The conversion is much slower than the unconverted copy, which is visible directly in the assignment. The difference is less significant in an operand position, here when specifying the index of a READ statement. This is because the conversion costs are not as high as for a table access.