Ansicht
Dokumentation
ABENCONVERSION_ELEMENTARY - CONVERSION ELEMENTARY
BAL_S_LOG - Application Log: Log header data BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Conversion Rules for Elementary Data Objects
The programming language ABAP contains a set of built-in elementary data types. It also supports automatic type conversions and length adjustments for assignments between all these data types except for date fields, time fields, and time stamp fields, where conversions do not make sense.
The conversion tables in the following sections define the rules for converting all possible elementary target fields for
In all conversions, it must be possible to create a value from the type-specific value range from the content of the source field; otherwise an exception is raised that is defined in one of the subclasses of the class CX_SY_CONVERSION_ERROR. Conversion errors can usually be handled using CATCH. There are some statements in which assignments take place whose conversion errors are either handled implicitly or lead to a runtime error directly.
After an exception, the content of the target field is undefined and should not be used. After an exception, the target field can contain either the previous value or an invalid value (the latter is the case after an overflow of a floating point number, for example).
Avoid unexpected conversion results
Note
Enumerated types are elementary data types, but special conversion rules apply, which ensure that only allowed values can be assigned to an enumerated variable.
General Material Data Addresses (Business Address Services)
This documentation is copyright by SAP AG.
Length: 2902 Date: 20240426 Time: 054227 sap01-206 ( 46 ms )