<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: abap to xml help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317836#M508525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working on 6.40 already perhaps the following classes may be helpful for converting between different encodings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- CL_ABAP_CONV_IN_CE (Code Page and Endian Conversion (System Format -&amp;gt; External))&lt;/P&gt;&lt;P&gt;- CL_ABAP_CONV_OUT_CE (Code Page and Endian Conversion (System Format -&amp;gt; External))&lt;/P&gt;&lt;P&gt;- CL_ABAP_CONV_X2X_CE (Code Page and Endian Conversion Between External Formats)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 18:57:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T18:57:35Z</dc:date>
    <item>
      <title>abap to xml help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317835#M508524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallow&lt;/P&gt;&lt;P&gt;i face an issue of sending some XML documents from SAP to a non SAP System. This non SAP System stores XML documents in UTF-8 encoding format. When I create an XML document using CALL TRANSFORMATION in ABAP, the XML code generated has encoding as "ISO-.8..". Could anyone of you please guide me on how to have this changed to UTF-8?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my vendor can use just utf-8 &lt;/P&gt;&lt;P&gt;In case of no solution, I would eventually have to pick the XML generated code and replace the "ISO-..." thing with "UTF-8" at runtime within the program. However, I feel that's not a quality method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if anyone of you can suggest/opine of something better, it would be truly appreciated and rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Have a Nice Day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;this is my program i try this soltion but it not working&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ttab,&lt;/P&gt;&lt;P&gt;record(65535) TYPE c,&lt;/P&gt;&lt;P&gt;END OF ttab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: xml_table TYPE TABLE OF ttab,&lt;/P&gt;&lt;P&gt;wa_xml_table LIKE LINE OF xml_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_result TYPE string,&lt;/P&gt;&lt;P&gt;go_ixml TYPE REF TO if_ixml,&lt;/P&gt;&lt;P&gt;go_stream_factory TYPE REF TO if_ixml_stream_factory,&lt;/P&gt;&lt;P&gt;go_encoding TYPE REF TO if_ixml_encoding,&lt;/P&gt;&lt;P&gt;go_resstream TYPE REF TO if_ixml_ostream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:gt_knb1 TYPE STANDARD TABLE OF knb1,&lt;/P&gt;&lt;P&gt;gt_xml TYPE TABLE OF string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: gc_encoding TYPE string VALUE 'UTF-8'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go_ixml = cl_ixml=&amp;gt;create( ).&lt;/P&gt;&lt;P&gt;go_stream_factory = go_ixml-&amp;gt;create_stream_factory( ).&lt;/P&gt;&lt;P&gt;go_encoding = go_ixml-&amp;gt;create_encoding( character_set = gc_encoding&lt;/P&gt;&lt;P&gt;byte_order = 0 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go_resstream = go_stream_factory-&amp;gt;create_ostream_cstring( gd_result ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD go_resstream-&amp;gt;set_encoding&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;encoding = go_encoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE i_data = person_tab&lt;/P&gt;&lt;P&gt;RESULT XML xml_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND gd_result TO gt_xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BIN_FILESIZE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;filename = final_adress&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codepage = 'UTF-8'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = xml_table&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 18:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317835#M508524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: abap to xml help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317836#M508525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working on 6.40 already perhaps the following classes may be helpful for converting between different encodings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- CL_ABAP_CONV_IN_CE (Code Page and Endian Conversion (System Format -&amp;gt; External))&lt;/P&gt;&lt;P&gt;- CL_ABAP_CONV_OUT_CE (Code Page and Endian Conversion (System Format -&amp;gt; External))&lt;/P&gt;&lt;P&gt;- CL_ABAP_CONV_X2X_CE (Code Page and Endian Conversion Between External Formats)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 18:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317836#M508525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: abap to xml help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317837#M508526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ferry&lt;/P&gt;&lt;P&gt;i use ecc6&lt;/P&gt;&lt;P&gt;im new in abap and i wont to now how i can use the classes in my program&lt;/P&gt;&lt;P&gt;please u can give example?&lt;/P&gt;&lt;P&gt;if i use this classes is with my program or i have to change it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 19:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317837#M508526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T19:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: abap to xml help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317838#M508527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this thread for sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1306782"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 19:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-to-xml-help/m-p/2317838#M508527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T19:06:26Z</dc:date>
    </item>
  </channel>
</rss>

