CL_ABAP_CONV_UC_NUMBER - Conversion to Unicode Character Number Format

PERFORM Short Reference   General Material Data  
This documentation is copyright by SAP AG.

Functionality

An input character stream is converted to its Unicode character number representation. Example: Thedata stream 'abc' is converted to 'abc', where 'x0061' is the character numberof 'a' in hexadecimal notation and 'a' is a national special character. Before a conversion, you mustalways specify the codepage of the input data stream. When you create an instance, the system demands this specification. ASCII characters are not converted.

Relationships

Example

data: conv type ref to cl_xms_xml_conv_util,

stream_in type xstring,

stream_out type xstring.

create object conv

exporting

im_source_codepage = '4110'. " UTF-8

stream_in = '616263'. "abc

call method conv->convert_raw_stream

exporting

im_stream = stream_in

importing

ex_stream = stream_out.

data: conv type ref to cl_xms_xml_conv_util,

stream_in type string,

stream_out type xstring.

create object conv

exporting

im_source_codepage = '4110'. " UTF-8

stream_in = 'abc'.

call method conv->convert_char_stream

exporting

im_stream = stream_in

importing

ex_stream = stream_out.

Notes

Further information



PERFORM Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.


Length: 1346 Date: 20120526 Time: 075856     triton ( 55 ms )