Get Example source ABAP code based on a different SAP table
ARTICLE
Source Field Type x ITOC
Numeric Target FieldsTargetConversion i, int8, (b, s)Only the last 4 bytes of the source field are converted. If the source field is shorter than four bytes, it is extended to the left with the hexadecimal 0 until it reaches a length of four bytes. The content of these bytes is interpreted as a number stored in big endian order, of type i. The hexadecimal values from '00000000' to '7FFFFFFF' are assigned to numbers from +0 to +2 147 483 647 and the hexadecimal values from '80000000' to 'FFFFFFFF' are assigned to the numbers 2 147 483 648 to -1. The numbers obtained in this way are converted in the internal representation of the corresponding integer. If the value range of data types b or s is not sufficient, the handleable exception CX_SY_CONVERSION_OVERFLOW is raised. pThe content of the source field is first converted to the data type i (see above), and then to the type p (see the conversion table for source field type i, int8, (b, s)). decfloat16, decfloat34The content of the source field is first converted to data type i (see above) and then to type decfloat16 or decfloat34 (see conversion table for source field type i, int8, (b, s)). fThe content of the source field is first converted to the data type i (see above), and then to the type f (see the conversion table for source field type i, int8, (b, s)).
Character-Like Target FieldsTargetConversion cThe values of each half-byte in the source field are converted to the hexadecimal characters '0' to '9' and 'A' to 'F', and passed to the target field, left-aligned. If the target field is longer than the number of characters passed, it is padded on the right with blank characters. If it is too short, the number is truncated on the right. stringThe values of each half-byte in the source field are converted to the hexadecimal characters '0' to '9' and 'A' to 'F', and passed to the target field, left-aligned. The resulting length of the target field is determined by the number of characters passed. nThe content of the source field is first converted to the data type i (see above), and then to the type n (see the conversion table for source field type i, int8, (b, s)). dThe content of the source field is first converted to the data type i (see above), and then to the type d (see the conversion table for source field type i, int8, (b, s)). tThe content of the source field is first converted to the data type i (see above), and then to the type t (see the conversion table for source field type i, int8, (b, s)).
Byte-Like Target FieldsTargetConversion xThe bytes in the source field are inserted in the target field, left-aligned. The length of the target field is specified by the number of bytes passed. If the target field is shorter, it is truncated on the right. xstringThe bytes in the source field are inserted in the target field, left-aligned. The resulting length of the target field is determined by the number of bytes passed.