<?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: Internal Table to XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596297#M1661986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way to transform ABAP data to XML, XML to ABAP data, or XML to XML should be the use of [CALL TRANSFORMATION|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSFORMATION.htm] with a specific [XSLT transformation|http://en.wikipedia.org/wiki/XSLT].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2012 14:19:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-28T14:19:18Z</dc:date>
    <item>
      <title>Internal Table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596295#M1661984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Experts,&lt;/P&gt;&lt;P&gt;I have retrived a Internal Table from FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SRTUTIL_CONVERT_XML_TO_TABLE'
    EXPORTING
      xdoc             = lv_xstring
 IMPORTING
*   ERROR_TEXT       =
     data             = lt_xml&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have manipulated the Tagnames in the Internal Table lt_xml.&lt;/P&gt;&lt;P&gt;Now I want to change the internal table to xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM or a class. can anyone help me??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kind regards &lt;/P&gt;&lt;P&gt;rana Waseem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596295#M1661984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T12:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596296#M1661985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 14:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596296#M1661985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T14:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596297#M1661986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way to transform ABAP data to XML, XML to ABAP data, or XML to XML should be the use of [CALL TRANSFORMATION|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSFORMATION.htm] with a specific [XSLT transformation|http://en.wikipedia.org/wiki/XSLT].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 14:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596297#M1661986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596298#M1661987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the FM SAP_CONVERT_TO_XML_FORMAT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Leonardo Lima Coelho on Feb 28, 2012 3:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 14:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596298#M1661987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T14:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596299#M1661988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your Reply. I am trying to manipulate the xml attributes in print report. I have the data in xstring form. I have changed it to internal Table with following code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SRTUTIL_CONVERT_XML_TO_TABLE'
    EXPORTING
      xdoc             = lv_xstring
 IMPORTING
*   ERROR_TEXT       =
     data             = lt_xml&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the change in the table lt_xml I am trying to have once again a xstring to give to the Print Report. I have tried it with class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT lt_xml INTO ls_xml.

    CALL METHOD cl_soap_xml_helper=&amp;gt;transform_to_xml
      EXPORTING
        tag_name          = ls_xml-tag_name
        data              = ls_xml-tag_value
        data_type         = ls_xml-tag_type
        ignore_init_value = 'X'
*    ignore_exception  =
      CHANGING
        xml               = lv_xstring_two
        .

*  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I try to check the XML become an error &lt;/P&gt;&lt;P&gt;The XML cannot be showed, when Stylesheet XSL  is used Remove the error and try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot understand where is the error. Because the orignal xstring from system is shown correct. But when I create the new xstring give error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;waseem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 14:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/8596299#M1661988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T14:47:48Z</dc:date>
    </item>
  </channel>
</rss>

