Get Example source ABAP code based on a different SAP table
VERSION 5 OUT • CL_ABAP_CONV_IN_CE ABAP_CLASS • CL_ABAP_CONV_OUT_CE ABAP_CLASS • CL_ABAP_CONV_X2X_CE ABAP_CLASS
System Classes for Converting Character Sets and Number Formats The system classes listed below enable the conversion of text data between different code pages> and of numeric data between different number representations. Data that is not 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 stored in binary form in an x> field or in an xstring>.
When converting to ABAP format from a non-ABAP format, data is read from an ABAP data object and written as a byte sequence.
When converting from ABAP format to a non-ABAP 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>> Importing non-ABAP formats into ABAP data objects (reads a binary input stream).
CL_ABAP_CONV_OUT_CE>> Exporting ABAP data objects to a non-ABAP format (writes to a binary output stream).
CL_ABAP_CONV_X2X_CE>> Importing data of any format and exporting data to any other format (reads from a binary input stream and writes to a binary output stream).
Latest notes:
The interfaces IF_ABAP_CONV_IN>> and IF_ABAP_CONV_OUT>> of objects that were created using the class CL_ABAP_CONV_CODEPAGE>> wrap the classes above for easier 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 vice versa. ABAP_HINT_END