sapdev logo background
sapdev logo sapdev logo
Comments

SAP CONVERSION ELEMENTARY documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Conversion Rules for Elementary Data Objects
The programming language ABAP includes a set of predefined elementary data types . It supports automatic type conversions and length adjustments for assignments between all these data types (with the exception of date fields and time fields , where many conversions are not applicable).
The conversion tables in the following sections define the rules for converting all possible elementary target fields for
  • Numeric source fields

  • Character-like source fields

  • Byte-like source fields

  • In all conversions, it must be possible to create a value from the type-specific value range from the content of the source field; o
    therwise the system raises an exception that is defined in one of the subclasses of the class CX_SY_CONVERSION_ERROR .
    After an exception, the contents of the target field are 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).
    ABAP_PGL Avoid unexpected conversion results
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    CONVERSION_COSTS_ABEXA
    CONVERSION_EXITS




    comments powered by Disqus