ARTIClE
Field Symbols, Casting Predefined Data Types
This example demonstrates how a casting is performed on predefined data
types.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
This example demonstrates how casting works on predefined data types.
First the character string txt is assigned to the field symbol
fs without casting. Afterwards, txt is assigned to
fs using casting on types i and x . The
value of the second task depends on the byte sequence of the current
platform. The paired numbers in the last output row represent the
hexadecimal code for the character in txt and depend on the
character display of the current application server.
The section of the method that has been commented out also shows the
syntax for the relevant obsolete
casting .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved