<?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 Xml string to abap internal  table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046933#M1351764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to parse this XML file to abap internal table ,i read as usual  the Help and i think &lt;/P&gt;&lt;P&gt;that something is missing on my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is someone can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields is type string and the value is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Containers&amp;gt; &amp;lt;Container workitemid = "00000017" IsParent = "X"&amp;gt;&amp;lt;Element name = "_WF" value = "USI029"/&amp;gt;&amp;lt;Element name = "_WF_PRIOR" value = "5"/&amp;gt;&amp;lt;Element name = "_WF_VERSION" value = "0000"/&amp;gt;&amp;lt;Element name = "_WF_NESTING_LEVEL" value = ""/&amp;gt;&amp;lt;Element name = "XUBNAME" value = ""/&amp;gt;&amp;lt;Element name = "XUACCNT" value = ""/&amp;gt;&amp;lt;Element name = "SHORTTEXT" value = ""/&amp;gt;&amp;lt;Element name = 
.....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use the call transformation code and there i put this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?sap.transform simple?&amp;gt;
&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates"&amp;gt;
&amp;lt;tt:root name="XML_TAB"/&amp;gt;
  &amp;lt;tt:template&amp;gt;
    &amp;lt;Containers&amp;gt;
      &amp;lt;tt:loop name="a" ref=".XML_TAB"&amp;gt;
        &amp;lt;Container&amp;gt;
          &amp;lt;tt:attribute name="Element name" value-ref="$a.name"/&amp;gt;
          &amp;lt;tt:attribute name="value" value-ref="$a.value"/&amp;gt;
        &amp;lt;/Container&amp;gt;
      &amp;lt;/tt:loop&amp;gt;
    &amp;lt;/Containers&amp;gt;
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that i miss something with the line :&amp;lt;Container workitemid = "0000007" IsParent = "X"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dump is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt; The exception, which is assigned to class 'CX_ST_MATCH_ATTRIBUTE', was not&lt;/P&gt;&lt;P&gt;  caught and&lt;/P&gt;&lt;P&gt; therefore caused a runtime error.&lt;/P&gt;&lt;P&gt; The reason for the exception is:&lt;/P&gt;&lt;P&gt; XML matching error&lt;/P&gt;&lt;P&gt; Expected was attribute: "Elementname" [ ] Read was element-start: "Container" [&lt;/P&gt;&lt;P&gt;  ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chris Teb on Aug 6, 2009 9:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2009 06:57:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-06T06:57:17Z</dc:date>
    <item>
      <title>Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046933#M1351764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to parse this XML file to abap internal table ,i read as usual  the Help and i think &lt;/P&gt;&lt;P&gt;that something is missing on my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is someone can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields is type string and the value is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Containers&amp;gt; &amp;lt;Container workitemid = "00000017" IsParent = "X"&amp;gt;&amp;lt;Element name = "_WF" value = "USI029"/&amp;gt;&amp;lt;Element name = "_WF_PRIOR" value = "5"/&amp;gt;&amp;lt;Element name = "_WF_VERSION" value = "0000"/&amp;gt;&amp;lt;Element name = "_WF_NESTING_LEVEL" value = ""/&amp;gt;&amp;lt;Element name = "XUBNAME" value = ""/&amp;gt;&amp;lt;Element name = "XUACCNT" value = ""/&amp;gt;&amp;lt;Element name = "SHORTTEXT" value = ""/&amp;gt;&amp;lt;Element name = 
.....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use the call transformation code and there i put this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?sap.transform simple?&amp;gt;
&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates"&amp;gt;
&amp;lt;tt:root name="XML_TAB"/&amp;gt;
  &amp;lt;tt:template&amp;gt;
    &amp;lt;Containers&amp;gt;
      &amp;lt;tt:loop name="a" ref=".XML_TAB"&amp;gt;
        &amp;lt;Container&amp;gt;
          &amp;lt;tt:attribute name="Element name" value-ref="$a.name"/&amp;gt;
          &amp;lt;tt:attribute name="value" value-ref="$a.value"/&amp;gt;
        &amp;lt;/Container&amp;gt;
      &amp;lt;/tt:loop&amp;gt;
    &amp;lt;/Containers&amp;gt;
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that i miss something with the line :&amp;lt;Container workitemid = "0000007" IsParent = "X"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dump is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt; The exception, which is assigned to class 'CX_ST_MATCH_ATTRIBUTE', was not&lt;/P&gt;&lt;P&gt;  caught and&lt;/P&gt;&lt;P&gt; therefore caused a runtime error.&lt;/P&gt;&lt;P&gt; The reason for the exception is:&lt;/P&gt;&lt;P&gt; XML matching error&lt;/P&gt;&lt;P&gt; Expected was attribute: "Elementname" [ ] Read was element-start: "Container" [&lt;/P&gt;&lt;P&gt;  ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chris Teb on Aug 6, 2009 9:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 06:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046933#M1351764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T06:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046934#M1351765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1424278"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 08:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046934#M1351765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T08:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046935#M1351766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your transformation is wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Element&amp;gt; tag is occured multiple times. But Your transformation says &amp;lt;Container&amp;gt; tag wil occur multiple times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with this transformation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?sap.transform simple?&amp;gt;
&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates"&amp;gt;
&amp;lt;tt:root name="XML_TAB"/&amp;gt;

  &amp;lt;tt:template&amp;gt;
    &amp;lt;Containers&amp;gt;
    &amp;lt;Container&amp;gt;
        &amp;lt;tt:loop name="a" ref=".XML_TAB"&amp;gt;
        &amp;lt;Element &amp;gt;
          &amp;lt;tt:attribute name="name" value-ref="$a.name"/&amp;gt;
          &amp;lt;tt:attribute name="value" value-ref="$a.value"/&amp;gt;
          &amp;lt;/Element&amp;gt;
          &amp;lt;/tt:loop&amp;gt;
        &amp;lt;/Container&amp;gt;
    &amp;lt;/Containers&amp;gt;
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 08:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046935#M1351766</guid>
      <dc:creator>sivasatyaprasad_yerra</dc:creator>
      <dc:date>2009-08-06T08:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046936#M1351767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHeck this link. There is a example for the same type of XML structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nwpi71/helpdata/EN/3a/eefd3f0521c842e10000000a1550b0/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 08:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046936#M1351767</guid>
      <dc:creator>sivasatyaprasad_yerra</dc:creator>
      <dc:date>2009-08-06T08:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046937#M1351768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Identical transformation. It is easy and not required transformation template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ID&lt;/P&gt;&lt;P&gt;SOURCE ...&lt;/P&gt;&lt;P&gt;RESULT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So source and result are not going to change any ways only you have to remove transformation template and replace it with ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure the input XML is following the XSLT format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 09:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046937#M1351768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T09:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046938#M1351769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try exactly like u tell and i get this dump:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt; The exception, which is assigned to class 'CX_ST_MATCH_ELEMENT', was not caught&lt;/P&gt;&lt;P&gt;  and&lt;/P&gt;&lt;P&gt; therefore caused a runtime error.&lt;/P&gt;&lt;P&gt; The reason for the exception is:&lt;/P&gt;&lt;P&gt; XML matching error&lt;/P&gt;&lt;P&gt; Expected was element-end: "Containers" [ ] Read was element-start: "Container"&lt;/P&gt;&lt;P&gt;  [ ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Containers&amp;gt;
    &amp;lt;Container&amp;gt;
        &amp;lt;tt:loop name="a" ref=".XML_TAB"&amp;gt;
        &amp;lt;Element &amp;gt;
          &amp;lt;tt:attribute name="name" value-ref="$a.name"/&amp;gt;
          &amp;lt;tt:attribute name="value" value-ref="$a.value"/&amp;gt;
          &amp;lt;/Element&amp;gt;
          &amp;lt;/tt:loop&amp;gt;
        &amp;lt;/Container&amp;gt;
    &amp;lt;/Containers&amp;gt; -&amp;gt;**the dump in the debugger is here .**
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046938#M1351769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T10:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046939#M1351770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check XML input which is getting passed to transformation. This should end with&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;/Container&amp;gt;
&amp;lt;/Containers&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;I think it is not like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046939#M1351770</guid>
      <dc:creator>sivasatyaprasad_yerra</dc:creator>
      <dc:date>2009-08-06T10:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046940#M1351771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since i upload the file from text file the string maybe is cutting somewhere ,&lt;/P&gt;&lt;P&gt;i check it and let u know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046940#M1351771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T10:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Xml string to abap internal  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046941#M1351772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if you have more than one &lt;STRONG&gt;&amp;lt;Container&amp;gt;&lt;/STRONG&gt; tag in the XML input. If that is the case, then this transformation will not work as this transformation is considered only for one &lt;STRONG&gt;&amp;lt;Container&amp;gt;&lt;/STRONG&gt; tag in &lt;STRONG&gt;&amp;lt;Containers&amp;gt;&lt;/STRONG&gt; tag. Check this also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-to-abap-internal-table/m-p/6046941#M1351772</guid>
      <dc:creator>sivasatyaprasad_yerra</dc:creator>
      <dc:date>2009-08-06T10:39:08Z</dc:date>
    </item>
  </channel>
</rss>

