<?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 Dynamic XML to Dynamic Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133639#M1905564</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;I am able to read XML file stored in application server into internal table using &lt;STRONG&gt;cl_xml_document &lt;/STRONG&gt;class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am stuck with the requirement that the fields of XML files will be dynamic. There is no fix no. of fields as files will be coming from different types of interfaces. for those have to create a single dynamic internal table whose structure is unknown and data will be in tabular format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never used transformation before. I am wondering whether a ABAP logic will work for the requirement or a transformation will be required ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 07:21:59 GMT</pubDate>
    <dc:creator>MKM</dc:creator>
    <dc:date>2015-06-24T07:21:59Z</dc:date>
    <item>
      <title>Dynamic XML to Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133639#M1905564</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;I am able to read XML file stored in application server into internal table using &lt;STRONG&gt;cl_xml_document &lt;/STRONG&gt;class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am stuck with the requirement that the fields of XML files will be dynamic. There is no fix no. of fields as files will be coming from different types of interfaces. for those have to create a single dynamic internal table whose structure is unknown and data will be in tabular format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never used transformation before. I am wondering whether a ABAP logic will work for the requirement or a transformation will be required ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 07:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133639#M1905564</guid>
      <dc:creator>MKM</dc:creator>
      <dc:date>2015-06-24T07:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic XML to Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133640#M1905565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have worked for single structure fileds to generate an xml using transformation and reading it using &lt;STRONG&gt;cl_xml_document.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;here you are telling about the data is coming from different interfaces and&amp;nbsp; which are not fixed structures.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here i can suggest you that you can make use field symbols as well.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reagards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hiriyappa.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 07:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133640#M1905565</guid>
      <dc:creator>hiriyappa_myageri</dc:creator>
      <dc:date>2015-07-23T07:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic XML to Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133641#M1905566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question. I tried several things but i do not think a dynamic XML -&amp;gt; ABAP table is possible.&lt;/P&gt;&lt;P&gt;My idea was to read the XML and use a parser to find the attributes which are relevant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 11:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133641#M1905566</guid>
      <dc:creator>rb</dc:creator>
      <dc:date>2015-08-24T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic XML to Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133642#M1905567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have at least some control over the structure of the XML document or are these document completely different without any prior knowledge of the structure?&lt;/P&gt;&lt;P&gt;If you have at least some control of the structure I'd suspect that it should be possible to write a simple transformational to convert the different XML formats into ABAP data (&lt;A href="http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm" title="http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm"&gt;http://help.sap.com/abapdocu_70/en/ABENABAP_ST.htm&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;If you don't have any control I guess you will need to manually parse the XML file using the ABAP XML classes (&lt;A href="http://help.sap.com/abapdocu_740/en/abenabap_xml_libs.htm" title="http://help.sap.com/abapdocu_740/en/abenabap_xml_libs.htm"&gt;ABAP Class Library for XML&lt;/A&gt;) and build the result structure depending on the tags you find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 12:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-xml-to-dynamic-internal-table/m-p/11133642#M1905567</guid>
      <dc:creator>ceedee666</dc:creator>
      <dc:date>2015-08-24T12:19:39Z</dc:date>
    </item>
  </channel>
</rss>

