ARTICLE
Source Field Type string
Numeric Target Fields
Target Conversion
i ,
int8 ,
( b , s )Content is handled in the same way as a
source field of type c If the
source field has a length of 0, the target field is assigned the value
0.
p Content is handled in the same way as a
source field of type c If the
source field has a length of 0, the target field is assigned the value
0.
decfloat16 , decfloat34 Content is handled in the same
way as a source field of type c If
the source field has a length of 0, the target field is assigned the
value 0.
f Content is handled in the same way as a
source field of type c If the
source field has a length of 0, the target field is assigned the value
0.
Note
Character-Like Target Fields
Target Conversion
c The content is handled in the same way as a
source field of type c , with the
difference that trailing blanks are passed. If the length of the source
field is 0, the target field is padded with blanks.
string No conversion takes place. After the assignment, the
internal reference of the target field points to the same string as the
source field. A new string is only created in the memory if a change
request for the content of the source field or target field is submit
ted.
n Content is handled in the same way as a
source field of type c If the
length of the source field is 0, the target field is padded with the
character "0".
d The content is handled in the same way as a
source field of type c , with the
difference that trailing blanks are passed. If the length of the source
field is 0, the target field is padded with the character "0".
t Content is handled in the same way as a
source field of type c If the
length of the source field is 0, the target field is padded with the
character "0" and the trailing blanks are passed.
Notes
In ABAP, the trailing blanks are respected
for source fields of type string but not for data objects of type
c .
If characters are cut off on the right when character strings containing
non-Unicode double-byte characters
are assigned, such a character can be split down the middle, which
generally produces an invalid character at the right edge. To prevent
this, the method CL_SCP_LINEBREAK_UTIL= STRING_SPLIT_AT_POSITION
can be used.
Byte-Like Target Fields
Target Conversion
x Content is handled in the same way as a
source field of type c If the
length of the source field is 0, the target field is padded with
hexadecimal 0.
xstring Content is handled in the same way as a
source field of type c If the
length of the source field is 0, the length of the target field is also
0 after the assignment.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved