SAP CASTING - Obsolete TYPE ABEXA



Get Example source ABAP code based on a different SAP table
  


VX_EXA_ONLY

Field Symbols, Casting Built-In Data Types
This example demonstrates how a casting is performed on built-in data types.

ABAP_SOURCE_CODE
DEMO CL_DEMO_FLD_SMBLS_ASSIGN_TYPE

ABAP_DESCRIPTION
This example demonstrates how casting works on built-in data types. First the character string txt is assigned to the field symbol <(><)> without casting. Afterwards, txt is assigned to <(><)> using casting on types i and x. The second output value depends on the byte order of the current platform. The paired numbers in the last output line represent the hexadecimal code for the character in txt and depend on the character representation on the current ABAP_ASINSTANCE .
The section of the method that has been commented out also shows the syntax for the respective obsolete casting.