SAP CL ABAP CONV CODEPAGE



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN
• CL_ABAP_CONV_CODEPAGE ABAP_CLASS
• IF_ABAP_CONV_OUT ABAP_INTERFACE
• IF_ABAP_CONV_IN ABAP_INTERFACE

Methods for Handling Code Pages
The methods CONVERT of the interfaces IF_ABAP_CONV_OUT and IF_ABAP_CONV_IN of objects created with the class CL_ABAP_CONV_CODEPAGE make it possible to convert strings to the binary representation of various code pages and vice versa.

ABAP_EXAMPLE_VX5
Conversion of the content of a string into its UTF-8 representation. The value UTF-8 is the default value for the parameter CODEPAGE and can also be omitted. The statement ASSERT shows that the reverse conversion creates the original text again.
ABEXA 00860
ABAP_EXAMPLE_END