ARTICLE
Source Field Type n
The conversion rules are designed in such a way that when data objects
of type n are assigned to character-like data objects they behave
as character-like data objects. Valid data for data objects of type
n is in the form of pure character strings. When assigning valid data
to numeric data objects, the numeric value of the character string is
assigned to the target object. The conversion rules, however, also allow
assignment of numeric text fields that contain invalid data. The latter
is not recommended.
Numeric Target Fields
Target Conversion
i ,
int8 ,
( b , s )Content is handled in the same way as a
source field of type c
p Content is handled in the same way as a
source field of type c
decfloat16 , decfloat34 Content is handled in the same
way as a source field of type c
f Content is handled in the same way as a
source field of type c
Note
Character-Like Target Fields
Target Conversion
c Content is handled in the same way as a
source field of type c
string Content is handled in the same way as a
source field of type c
n The characters in the source field are inserted in the
target field, right-aligned. Trailing blanks are copied. If the target
field is longer than the characters passed, the field is padded with "0"
characters from the left. If the target field is shorter, the characters
are cut off from the left.
d Content is handled in the same way as a
source field of type c
t Content is handled in the same way as a
source field of type c
Byte-Like Target Fields
Target Conversion
x The content of the source field is first converted to the
data type i (see above), and then to the type x (see the
conversion table for source field type
i ,
int8 ,
( b , s ) ).
xstring The content of the source field is first converted to
the data type i (see above), and then to the type x (see
the conversion table for source field type
i ,
int8 ,
( b , s ) ).
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved