Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Assignments →  Value Assignments →  MOVE →  MOVE EXACT →  MOVE EXACT - Elementary Data Objects 

MOVE EXACT - appropriate values

When an elementary source field is assigned to an incompatible elementary target field, the source field must contain a value that is valid based on the data type of the target field and the information outlined in the table below. This prevents loss of values and ensures that the target field value is valid.

Other versions: 7.31 | 7.40 | 7.54

Numeric Target Fields

Target Field with Numeric Type Other Than f

Source Field Appropriate Values
Numeric data type Numbers from the value range of the target field that do not have to be rounded. Inappropriate valuesraise exceptions from the class CX_SY_CONVERSION_ROUNDING or CX_SY_CONVERSION_OVERFLOW.
Character-like data type Numbers from the value range of the target field that do not have to be rounded. In source fields of type c or string, appropriate numberrepresentations determined after applying theconversion rules are permitted if their valuelies within the value range and does not have to be rounded. Source fields of type cor string are also permitted if they contain only blanks or empty strings.Source fields of type n can contain as many digits after leading zeros that are permitted within the value range. In source fields of types d and t, allvalid date and time specifications arepermitted; however they cannot be assigned to target fields of types b ands. Inappropriate values raise exceptions from the class CX_SY_CONVERSION_ROUNDING or CX_SY_CONVERSION_OVERFLOW.
Byte-like data type Not allowed

Target Field of Type f

Source Field Appropriate Values
Numeric data type Integers with a maximum of 15 digits. In source fields of type i(b, s), all values are permitted. In source fieldsof types p, decfloat16, and decfloat34,a maximum of 15 decimal digits, but no decimal places are permitted. Inappropriate values raise an exception from class CX_SY_CONVERSION_INEXACT_FLTP.
Character-like data type Integers with a maximum of 15 digits. With source fields of type c or string, numbers can be expressed inscientific notation.The values are integers with a maximum of 15 digits. Source fields of type cor string are also permitted if they contain only blanks or empty strings.Source fields of type n can contain up to 15 digits after leading zeros. In source fields of types d and t, allvalid date and time specifications arepermitted. Inappropriate values raise an exception from class CX_SY_CONVERSION_INEXACT_FLTP.
Byte-like data type Not allowed

Character-Like Target Fields

Target Field of Type c

Source Field Appropriate Values
Numeric data type Numbers for which the result from the conversionto type c is not longer than the target field; the result cannot be rounded.Positive signs represented as blanks are ignored. Inappropriate values raise exceptions from classes CX_SY_CONVERSION_OVERFLOW or CX_SY_CONVERSION_ROUNDING.
Character-like data type Character strings not longer than the target field. For source fields of type c,trailing blanks are ignored. In source fields of type string, no charactersare ignored, including trailing blanks. Inappropriate values raise an exception from class CX_SY_CONVERSION_DATA_LOSS.
Byte-like data type Byte strings for which the result from the conversionto type c is not longer than the target field. Inappropriate values raise an exception from class CX_SY_CONVERSION_DATA_LOSS.

Target Field of Type string

Source Field Appropriate Values
Numeric data type Any valid numbers.
Character-like data type Any character strings.
Byte-like data type Any byte chains.

Target Field of Type n

Source Field Appropriate Values
Numeric data type Positive integers including 0, in which the number of digits does not exceed the length of the targetfield. Inappropriate values raise exceptions from classes CX_SY_CONVERSION_OVERFLOW or CX_SY_CONVERSION_ROUNDING.
Character-like data type A closed sequence of digits that cannot be longer than the target field (excluding the leading zeros).Source fields of type c and string can containadditional leading and trailing blanks. Source fields of type d and t cannot contain blanks and the target fields must have the same length as the source fields.Inappropriate values raise exceptions from classes CX_SY_CONVERSION_NO_NUMBER or CX_SY_CONVERSION_OVERFLOW.
Byte-like data type Not allowed

Target Field of Type d

Source Field Appropriate Values
Numeric data type Positive integers between 0 and 3652060 (which corresponds to the date 12/31/9999). Inappropriatevalues raise exceptions from classes CX_SY_CONVERSION_OVERFLOW or CX_SY_CONVERSION_ROUNDING.
Character-like data type A left-aligned valid date specificationwith the format "yyyymmdd". Source fields of type n and stringcan contain these eight digits only. Source fields of type c can also containtrailing blanks. Inappropriate values raise an exception from class CX_SY_CONVERSION_NO_DATE.
Byte-like data type Not allowed

Target Field of Type t

Source Field Appropriate Values
Numeric data type Positive integers between 0 and 86399 (which corresponds to the time 23:59:59). Inappropriate valuesraise exceptions from classes CX_SY_CONVERSION_OVERFLOW or CX_SY_CONVERSION_ROUNDING.
Character-like data type A left-aligned valid time specificationwith the format "hhmmss". Source fields of type n and stringcan contain only these six digits. Source fields of type c can also containtrailing blanks. Inappropriate values raise an exception from class CX_SY_CONVERSION_NO_TIME.
Byte-like data type Not allowed

Byte-Like Target Fields

Target Field of Type x

Source Field Appropriate Values
Numeric data type Not allowed
Character-like data type An even number of characters between "0" and "9" and "A" and "F" in a closed sequence. The numberof bytes represented must correspond exactly to the length of the target field. Other characters arenot permitted; the only exception is that trailing blanks in source fields of type care ignored. Source fields of types n, d, andt are not permitted. Inappropriate values raise exceptions from classes CX_SY_CONVERSION_SRC_TOO_SHORT, CX_SY_CONVERSION_DATA_LOSS, or CX_SY_CONVERSION_NO_RAW.
Byte-like data type A byte string that has exactly the same length as the target field. Inappropriate values raise exceptionsfrom classes CX_SY_CONVERSION_SRC_TOO_SHORT or CX_SY_CONVERSION_DATA_LOSS.

Target Field of Type xstring

Source Field Appropriate Values
Numeric data type Not allowed
Character-like data type An even number of characters between "0" and "9" and "A" and "F" in a closed sequence. Other charactersare not permitted; the only exception is that trailing blanks in source fields of type care ignored. Source fields of types n, d, andt are not permitted. Inappropriate values raise an exception from class CX_SY_CONVERSION_NO_RAW.
Byte-like data type A byte chain of any length.