<?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: XML to ABAP transformation error when the XML has namespace in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795166#M2024574</link>
    <description>&lt;P&gt;Was the issue mainly related to &lt;STRONG&gt;skip&lt;/STRONG&gt; and referring to the &lt;STRONG&gt;element with namespace&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Did you fix it something like below, using "dummy" (or whatever name) namespace prefix?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;CBISDDStsRptLogMsg 
           xmlns="urn:CBI:xsd:CBISDDStsRptLogMsg.00.01.00"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           tt:ref=".CBISDDStsRptLogMsg"
           xmlns:dummy="urn:CBI:xsd:CBISDDStsRptLogMsg.00.01.00"&amp;gt;        &amp;lt;!-- added xmlns:dummy="..." --&amp;gt;
      &amp;lt;tt:skip name="dummy:GrpHdr"/&amp;gt;                                     &amp;lt;!-- added dummy: --&amp;gt;
      &amp;lt;tt:skip name="dummy:OrgnlGrpInfAndSts"/&amp;gt;                          &amp;lt;!-- added dummy: --&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Nov 2023 11:47:31 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-11-30T11:47:31Z</dc:date>
    <item>
      <title>XML to ABAP transformation error when the XML has namespace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795163#M2024571</link>
      <description>&lt;P&gt;hi experts,&lt;/P&gt;
  &lt;P&gt;i am trying to convert this XML file into Abap internal table where the root tag &amp;lt;CBISDDStsRptLogMsg.... &amp;gt; contains namespace and my STRANS xml transformation is dumping an exception without much clear information. &lt;/P&gt;
  &lt;P&gt;Here is the screenshot of the exception CX_ST_MATCH_ELEMENT.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2227307-cx-st-match-element.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;My objective is to get the bolded values below: &lt;/P&gt;
  &lt;P&gt;&amp;lt;TxInfAndSts&amp;gt; &lt;STRONG&gt;&amp;lt;----NOTE: this is repetitive&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;StsRsnInf&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;Rsn&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;CD&amp;gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&amp;lt;/CD&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;/Rsn&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;AddtlInf&amp;gt;&lt;STRONG&gt;XYZ&lt;/STRONG&gt;&amp;lt;/AddtlInf&amp;gt;&lt;/P&gt;
  &lt;P&gt;This is the provided XML file from the client:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="no"?&amp;gt;
&amp;lt;CBISDDStsRptLogMsg xmlns="urn:CBI:xsd:CBISDDStsRptLogMsg.00.01.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" &amp;gt;
	&amp;lt;GrpHdr&amp;gt;
		&amp;lt;MsgId&amp;gt;.....&amp;lt;/MsgID&amp;gt;
	&amp;lt;/GrpHdr&amp;gt;
	&amp;lt;OrgnlGrpInfAndSts&amp;gt;
		...

                 ...
	&amp;lt;/OrgnlGrpInfAndSts&amp;gt;
	&amp;lt;OrgnlPmtInfAndSts&amp;gt;
		&amp;lt;OrgnlPmtInfId&amp;gt;...&amp;lt;/OrgnlPmtInfId&amp;gt;
		&amp;lt;TxInfAndSts&amp;gt;
			&amp;lt;OrgnlInstrId&amp;gt;.....&amp;lt;/OrgnlInstrId&amp;gt;
			&amp;lt;OrgnlEndToEndId&amp;gt;.....&amp;lt;/OrgnlEndToEndId&amp;gt;
			&amp;lt;TxSts&amp;gt;.....&amp;lt;/TxSts&amp;gt;
			&amp;lt;StsRsnInf&amp;gt;
				&amp;lt;Orgtr&amp;gt;
					&amp;lt;Nm&amp;gt;.....&amp;lt;/Nm&amp;gt;
				&amp;lt;/Orgtr&amp;gt;
				&amp;lt;Rsn&amp;gt;
					&amp;lt;Cd&amp;gt;ABC&amp;lt;/Cd&amp;gt;
				&amp;lt;/Rsn&amp;gt;
				&amp;lt;AddtlInf&amp;gt;XYZ&amp;lt;/AddtlInf&amp;gt;
			&amp;lt;/StsRsnInf&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;and here is my STRANS deserialization transformation code:&lt;/P&gt;
  &lt;P&gt;if i debug this transformation, it is dumping when it reaches the &amp;lt;OrgnlPmtInfAndSts&amp;gt; tag.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;?sap.transform simple?&amp;gt;&lt;BR /&gt;&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  &amp;lt;tt:root name="CBISDDStsRptLogMsg" type="ddic:ZEUDDR_XML_IT"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  &amp;lt;tt:template&amp;gt;&lt;BR /&gt;    &amp;lt;CBISDDStsRptLogMsg xmlns="urn:CBI:xsd:CBISDDStsRptLogMsg.00.01.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" tt:ref=".CBISDDStsRptLogMsg"&amp;gt;&lt;BR /&gt;      &amp;lt;tt:skip name="GrpHdr"/&amp;gt;&lt;BR /&gt;      &amp;lt;tt:skip name="OrgnlGrpInfAndSts"/&amp;gt;&lt;BR /&gt;      &amp;lt;OrgnlPmtInfAndSts&amp;gt;&lt;BR /&gt;        &amp;lt;tt:skip name="OrgnlPmtInfId"/&amp;gt;&lt;BR /&gt;        &amp;lt;tt:loop ref="ITEMS"&amp;gt;&lt;BR /&gt;          &amp;lt;TxInfAndSts&amp;gt;&lt;BR /&gt;            &amp;lt;tt:skip name="OrgnlInstrId"/&amp;gt;&lt;BR /&gt;            &amp;lt;tt:skip name="OrgnlEndToEndId"/&amp;gt;&lt;BR /&gt;            &amp;lt;tt:skip name="TxSts"/&amp;gt;&lt;BR /&gt;            &amp;lt;StsRsnInf&amp;gt;&lt;BR /&gt;              &amp;lt;tt:skip name="Orgtr"/&amp;gt;&lt;BR /&gt;              &amp;lt;Rsn&amp;gt;&lt;BR /&gt;                &amp;lt;Cd tt:value-ref="REASON_CODE"/&amp;gt;&lt;BR /&gt;              &amp;lt;/Rsn&amp;gt;&lt;BR /&gt;              &amp;lt;AddtlInf tt:value-ref="REASON_TEXT"/&amp;gt;&lt;BR /&gt;            &amp;lt;/StsRsnInf&amp;gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I do have any further idea why the error is happening even when I have provided the exact tag names. Would appreciate if you could advise what is the error about and how to resolve it. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 04:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795163#M2024571</guid>
      <dc:creator>lcs00</dc:creator>
      <dc:date>2023-11-30T04:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: XML to ABAP transformation error when the XML has namespace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795164#M2024572</link>
      <description>&lt;P&gt;solved by digging deeper into the forum with the correct keywords&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13977108/sap-simple-transformation-deserialize-strange-resu.html"&gt;solution by Sandra Rossi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 09:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795164#M2024572</guid>
      <dc:creator>lcs00</dc:creator>
      <dc:date>2023-11-30T09:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: XML to ABAP transformation error when the XML has namespace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795165#M2024573</link>
      <description>&lt;P&gt;I cannot reproduce your issue. &lt;STRONG&gt;Probably it's not related at all with namespaces.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Possibly it's due to how is defined ZEUDDR_XML_IT versus what you have in your transformation and XML.&lt;/P&gt;&lt;P&gt;Can't say more for now. Please share the exact definition of ZEUDDR_XML_IT. I recommend a screenshot of the Hierarchy view of ZEUDDR_XML_IT.&lt;/P&gt;&lt;P&gt;NB: if it's a short dump, you have to add a TRY CATCH block to catch the ST exceptions.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 10:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795165#M2024573</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-11-30T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: XML to ABAP transformation error when the XML has namespace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795166#M2024574</link>
      <description>&lt;P&gt;Was the issue mainly related to &lt;STRONG&gt;skip&lt;/STRONG&gt; and referring to the &lt;STRONG&gt;element with namespace&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Did you fix it something like below, using "dummy" (or whatever name) namespace prefix?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;CBISDDStsRptLogMsg 
           xmlns="urn:CBI:xsd:CBISDDStsRptLogMsg.00.01.00"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           tt:ref=".CBISDDStsRptLogMsg"
           xmlns:dummy="urn:CBI:xsd:CBISDDStsRptLogMsg.00.01.00"&amp;gt;        &amp;lt;!-- added xmlns:dummy="..." --&amp;gt;
      &amp;lt;tt:skip name="dummy:GrpHdr"/&amp;gt;                                     &amp;lt;!-- added dummy: --&amp;gt;
      &amp;lt;tt:skip name="dummy:OrgnlGrpInfAndSts"/&amp;gt;                          &amp;lt;!-- added dummy: --&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2023 11:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795166#M2024574</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-11-30T11:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: XML to ABAP transformation error when the XML has namespace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795167#M2024575</link>
      <description>&lt;P&gt;yup i used &lt;EM&gt;name="&lt;STRONG&gt;dummy:&lt;/STRONG&gt;GrpHdr"&lt;/EM&gt; and so on for all the tags that i would like to skip, and it works though i must admit that i do not understand the reason behind this&lt;/P&gt;&lt;P&gt;i also tried this tt:extensible="deep-dynamic" at the Root tag and it works too. This way i do not need to declare a dummy namespace or use the tt:skip at all, and i can straight away access the tags that i want. However in my case, i am afraid my XML could contain tags with same names but at different parent nodes, so i used the first method instead. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 01:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformation-error-when-the-xml-has-namespace/m-p/12795167#M2024575</guid>
      <dc:creator>lcs00</dc:creator>
      <dc:date>2023-12-01T01:40:25Z</dc:date>
    </item>
  </channel>
</rss>

