ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Assignments → Assignment and Conversion Rules
System Classes for Converting Character Sets and Number Formats
The system classes described below enable the conversion of text data between different code pages and of numeric data between different number representations.
Data that is not available in ABAP format (that is, text data that is not in the system code page format, or numeric data that is not in the
byte order used on the current
host computer) can be saved in binary form in an x
field or in an xstring
.
- When converting to ABAP format from another format, data is read from a byte sequence and written to an ABAP data object.
- When converting from ABAP format to another format, data is read from an ABAP data object and written as a byte sequence.
This is done using the following classes:
- CL_ABAP_CONV_IN_CE
- CL_ABAP_CONV_OUT_CE
- CL_ABAP_CONV_X2X_CE
Other versions: 7.31 | 7.40 | 7.54
Notes
- The interfaces IF_ABAP_CONV_IN and IF_ABAP_CONV_OUT of objects created using the class CL_ABAP_CONV_CODEPAGE wrap the classes above for better handling of code pages in character and byte string processing.
- The methods UTCLONG2TSTMP, UTCLONG2TSTMP_SHORT, and TSTMP2UTCLONG of the class CL_ABAP_TSTMP convert the content of time stamp fields to representation in packed numbers and back.