Ansicht
Dokumentation

ABENMOVE_EXACT_ELEMENTARY - MOVE EXACT ELEMENTARY

ABENMOVE_EXACT_ELEMENTARY - MOVE EXACT ELEMENTARY

ABAP Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Checking Elementary Data Objects

In conversions between incompatible elementary data objects, the operator EXACT ensures that no values are lost. Regardless of the value of the argument, the operator EXACT generally does not allow conversions between data objects with the following data types, for which the values are always lost when the conversion rules are applied.

  • From x, xstring to n, d, t, and vice versa.
  • From d and t to b and s

Conversions from d to t and vice versa, and most conversions for time stamps of the type utclong are prohibited regardless of the operator EXACT. Other conversions that are not allowed are conversions in which byte-like fields are converted directly or as an interim result to the data type i and vice versa.

If the compiler detects a forbidden conversion a syntax error occurs. If a forbidden conversion is detected at runtime, an exception of the class CX_SY_CONVERSION_EXACT_NOT_SUP is raised. The same applies to types for which conversions are allowed, but for which a loss of values can be identified regardless of the content, for example, if a conversion is made to fields that are too short.

If allowed conversions are made between incompatible elementary data objects, the operator EXACT checks the content of the argument at runtime as follows:

If the elementary data types for which no conversion is required are compatible, no checks are performed, and no exceptions are raised.

Notes

  • When the operator EXACT is used, a catchable exception is always raised at runtime when a forbidden conversions is made, in particular, when an attempt is made to convert between d and t. In all other cases, an attempted conversion of this type raises an uncatchable exception.
  • If an argument contains an invalid or inappropriate value, this is assigned to its return value, even if the operator EXACT is used.

Lossless Assignment.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 3251 Date: 20240426 Time: 201333     sap01-206 ( 55 ms )