SAP CONVERSION TYPE C



Get Example source ABAP code based on a different SAP table
  



Source Field Type c
ITOC

Numeric Target Fields TargetConversion i, int8, (b, s)The source field must contain a number in mathematical or commercial notation, otherwise the catchable exception CX_SY_CONVERSION_NO_NUMBER is raised. ABAP_EXCEPTION A source field that contains only blank characters is interpreted as the number zero. Scientific notation is not allowed, unless it can be interpreted as a mathematical notation. Decimal places are rounded commercially to integer values. If the number is in the value range of data types i, int8, (b, s), it is converted to the corresponding internal representation of an integer, otherwise the catchable exception CX_SY_CONVERSION_OVERFLOW is raised. pThe source field must contain a number in mathematical or commercial notation, otherwise the catchable exception CX_SY_CONVERSION_NO_NUMBER is raised. ABAP_EXCEPTION A source field that contains only blank characters is interpreted as the number zero. Scientific notation is not allowed, unless it can be interpreted as a mathematical notation. Decimal places are rounded commercially to the number of decimal places in the target field. If the number is in the value range of the data type of the target field, it is converted to the internal representation of a packed number, otherwise the catchable exception CX_SY_CONVERSION_OVERFLOW is raised. decfloat16, decfloat34The source field must contain a number in mathematical, scientific, or commercial notation, otherwise the catchable exception CX_SY_CONVERSION_NO_NUMBER is raised. ABAP_EXCEPTION A source field that contains only blank characters is interpreted as the number zero. If the number of digits is greater than 16 or 34, it is rounded commercially to 16 or 34 places. If the absolute value of the number is less than 1E-398 or 1E-6176, it is rounded to 0. If the number is in the value range of the data types decfloat16 or decfloat34, it is converted to the internal representation of a decimal floating point number, otherwise the catchable exception CX_SY_CONVERSION_OVERFLOW is raised. If the mantissa of the target field is long enough, the scaling of the source field is preserved. The sign is always preserved, even if the number has the value 0. fThe source field must contain a number in scientific notation, with the first blank after a number completing this number. If not, the catchable exception CX_SY_CONVERSION_NO_NUMBER is raised. ABAP_EXCEPTION A source field that contains only blanks or that starts with a blank that is not followed by a valid number is interpreted as zero. Mathematical or commercial notation is not allowed unless it can be interpreted as scientific notation. ABAP_EXCEPTION Commercial notation where the plus/minus sign on the right is not separated by blanks is valid if the character string starts directly with the string of digits. If the mantissa contains more than 17 digits, surplus digits are rounded up or down. If the number is in the value range of data type f, it is converted to the internal representation of a binary floating point number, otherwise the catchable exception CX_SY_CONVERSION_OVERFLOW is raised. If the decimal number cannot be represented as a binary floating point number, the nearest value is used.



Latest notes: