Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can an internal table be converted to XML output with Encoding ISO-8859-2?

0 Kudos

I need to convert the Internal table into an XML format, with encoding ISO-8859-2. I tried using some FMs but the encoding was UTF-8.

I specifically need ISO-8859-2.

2 REPLIES 2

Former Member
0 Kudos

Hi

Please use the below method. may be it will helpful.

Perform the XSLT stylesheet

  g_ixml = cl_ixml=>create( ).

  g_stream_factory = g_ixml->CREATE_STREAM_FACTORY( ).

  g_encoding = g_ixml->create_encoding( character_set = 'utf-16' "unicode

    byte_order = 0 ).

  resstream = g_stream_factory->CREATE_OSTREAM_ITABLE( table = gt_xml_itab ).

  call method resstream->set_encoding

    exporting encoding = g_encoding.

Regards,

Kalyan.

Former Member
0 Kudos

Please look into this