<?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 Error during access to reference node XML reading in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-access-to-reference-node-xml-reading-in-abap/m-p/688316#M30887</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I am facing an issue while reading the XML file content to an ABAP structure. It says the reference node is incorrect. The exact error is as below. &lt;/P&gt;
  &lt;P&gt;"An exception occurred that is explained in detail below. The exception, which is assigned to class 'CX_ST_REF_ACCESS', was not caught and therefore caused a runtime error. The reason for the exception is: Error during access to reference node 'CORRELATIONID'. The reference node is not defined or does not have the necessary type. For more information follow the link: ABAP Keyword Documentation."&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I understand that transformation is not able to reach the structure at runtime but why and where is the mistake?&lt;/P&gt;
  &lt;P&gt;Below is my XML transformation.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S33 { color: #009300; }&lt;/P&gt;
  &lt;P&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" xmlns:def="http://www.sap.com/abapxml/types/defined"&amp;gt;&lt;BR /&gt;&amp;lt;tt:root name="ZCREATEITEMREQUEST" type="ddic:ZCREATEITEMREQUEST"/&amp;gt;&lt;BR /&gt;&amp;lt;tt:template&amp;gt;&lt;BR /&gt;&amp;lt;ns3:createItemRequest xmlns:ns2="http://schemas.zimmer.com/plm/item" xmlns:ns3="http://schemas.zimmer.com/plm/itemapi"&amp;gt;&lt;BR /&gt;&amp;lt;correlationId tt:value-ref="ZCREATEITEMREQUEST.CORRELATIONID"/&amp;gt;&lt;BR /&gt;&amp;lt;sourceSystem tt:value-ref=".ZCREATEITEMREQUEST.SOURCESYSTEM"/&amp;gt;&lt;BR /&gt;&amp;lt;targetSystem tt:value-ref=".ZCREATEITEMREQUEST.TARGETSYSTEM"/&amp;gt;&lt;BR /&gt;&amp;lt;ITEM&amp;gt;&lt;BR /&gt;&amp;lt;tt:loop ref=".ZCREATEITEMREQUEST.ITEM"&amp;gt;&lt;BR /&gt;&amp;lt;ZECCN_RESULT&amp;gt;&lt;BR /&gt;&amp;lt;CATALOGNUMBER tt:value-ref="CATALOGNUMBER"/&amp;gt;&lt;BR /&gt;&amp;lt;LOGICALSYSTEMSGROUP tt:value-ref="LOGICALSYSTEMSGROUP"/&amp;gt;&lt;BR /&gt;&amp;lt;LEGALREGULATION tt:value-ref="LEGALREGULATION"/&amp;gt;&lt;BR /&gt;&amp;lt;CEMARKCLASSIFICATION tt:value-ref="CEMARKCLASSIFICATION"/&amp;gt;&lt;BR /&gt;&amp;lt;/ZECCN_RESULT&amp;gt;&lt;BR /&gt;&amp;lt;/tt:loop&amp;gt;&lt;BR /&gt;&amp;lt;/ITEM&amp;gt;&lt;BR /&gt;&amp;lt;/ns3:createItemRequest&amp;gt;&lt;BR /&gt;&amp;lt;/tt:template&amp;gt;&lt;BR /&gt;&amp;lt;/tt:transform&amp;gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Below the structure in where I am reading the XML. Below is the source XML structure. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/230347-str.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Below is my source XML file.(just filled with test data).&lt;/P&gt;
  &lt;P&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?&amp;gt; &amp;lt;ns3:createItemRequest xmlns:ns2="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" xmlns:ns3="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"&amp;gt; &lt;/P&gt;
  &lt;P&gt; &amp;lt;correlationId&amp;gt;sssssssssssssssssssssssssssssssss&amp;lt;/correlationId&amp;gt; &amp;lt;sourceSystem&amp;gt;aaaaaa&amp;lt;/sourceSystem&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;targetSystem&amp;gt;ddd&amp;lt;/targetSystem&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;item&amp;gt; &lt;/P&gt;
  &lt;P&gt; &amp;lt;catalogNumber&amp;gt;test1&amp;lt;/catalogNumber&amp;gt; &amp;lt;logicalSystemsGroup&amp;gt;wccg&amp;lt;/logicalSystemsGroup&amp;gt; &amp;lt;legalRegulation&amp;gt;test2&amp;lt;/legalRegulation&amp;gt; &amp;lt;cemarkclassification&amp;gt;xxx&amp;lt;/cemarkclassification&amp;gt; &lt;/P&gt;
  &lt;P&gt; &amp;lt;/item&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;/ns3:createItemRequest&amp;gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Oct 2018 16:32:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-10-02T16:32:22Z</dc:date>
    <item>
      <title>Error during access to reference node XML reading in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-access-to-reference-node-xml-reading-in-abap/m-p/688316#M30887</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I am facing an issue while reading the XML file content to an ABAP structure. It says the reference node is incorrect. The exact error is as below. &lt;/P&gt;
  &lt;P&gt;"An exception occurred that is explained in detail below. The exception, which is assigned to class 'CX_ST_REF_ACCESS', was not caught and therefore caused a runtime error. The reason for the exception is: Error during access to reference node 'CORRELATIONID'. The reference node is not defined or does not have the necessary type. For more information follow the link: ABAP Keyword Documentation."&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I understand that transformation is not able to reach the structure at runtime but why and where is the mistake?&lt;/P&gt;
  &lt;P&gt;Below is my XML transformation.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S33 { color: #009300; }&lt;/P&gt;
  &lt;P&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" xmlns:def="http://www.sap.com/abapxml/types/defined"&amp;gt;&lt;BR /&gt;&amp;lt;tt:root name="ZCREATEITEMREQUEST" type="ddic:ZCREATEITEMREQUEST"/&amp;gt;&lt;BR /&gt;&amp;lt;tt:template&amp;gt;&lt;BR /&gt;&amp;lt;ns3:createItemRequest xmlns:ns2="http://schemas.zimmer.com/plm/item" xmlns:ns3="http://schemas.zimmer.com/plm/itemapi"&amp;gt;&lt;BR /&gt;&amp;lt;correlationId tt:value-ref="ZCREATEITEMREQUEST.CORRELATIONID"/&amp;gt;&lt;BR /&gt;&amp;lt;sourceSystem tt:value-ref=".ZCREATEITEMREQUEST.SOURCESYSTEM"/&amp;gt;&lt;BR /&gt;&amp;lt;targetSystem tt:value-ref=".ZCREATEITEMREQUEST.TARGETSYSTEM"/&amp;gt;&lt;BR /&gt;&amp;lt;ITEM&amp;gt;&lt;BR /&gt;&amp;lt;tt:loop ref=".ZCREATEITEMREQUEST.ITEM"&amp;gt;&lt;BR /&gt;&amp;lt;ZECCN_RESULT&amp;gt;&lt;BR /&gt;&amp;lt;CATALOGNUMBER tt:value-ref="CATALOGNUMBER"/&amp;gt;&lt;BR /&gt;&amp;lt;LOGICALSYSTEMSGROUP tt:value-ref="LOGICALSYSTEMSGROUP"/&amp;gt;&lt;BR /&gt;&amp;lt;LEGALREGULATION tt:value-ref="LEGALREGULATION"/&amp;gt;&lt;BR /&gt;&amp;lt;CEMARKCLASSIFICATION tt:value-ref="CEMARKCLASSIFICATION"/&amp;gt;&lt;BR /&gt;&amp;lt;/ZECCN_RESULT&amp;gt;&lt;BR /&gt;&amp;lt;/tt:loop&amp;gt;&lt;BR /&gt;&amp;lt;/ITEM&amp;gt;&lt;BR /&gt;&amp;lt;/ns3:createItemRequest&amp;gt;&lt;BR /&gt;&amp;lt;/tt:template&amp;gt;&lt;BR /&gt;&amp;lt;/tt:transform&amp;gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Below the structure in where I am reading the XML. Below is the source XML structure. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/230347-str.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Below is my source XML file.(just filled with test data).&lt;/P&gt;
  &lt;P&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?&amp;gt; &amp;lt;ns3:createItemRequest xmlns:ns2="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" xmlns:ns3="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"&amp;gt; &lt;/P&gt;
  &lt;P&gt; &amp;lt;correlationId&amp;gt;sssssssssssssssssssssssssssssssss&amp;lt;/correlationId&amp;gt; &amp;lt;sourceSystem&amp;gt;aaaaaa&amp;lt;/sourceSystem&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;targetSystem&amp;gt;ddd&amp;lt;/targetSystem&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;item&amp;gt; &lt;/P&gt;
  &lt;P&gt; &amp;lt;catalogNumber&amp;gt;test1&amp;lt;/catalogNumber&amp;gt; &amp;lt;logicalSystemsGroup&amp;gt;wccg&amp;lt;/logicalSystemsGroup&amp;gt; &amp;lt;legalRegulation&amp;gt;test2&amp;lt;/legalRegulation&amp;gt; &amp;lt;cemarkclassification&amp;gt;xxx&amp;lt;/cemarkclassification&amp;gt; &lt;/P&gt;
  &lt;P&gt; &amp;lt;/item&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;/ns3:createItemRequest&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 16:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-access-to-reference-node-xml-reading-in-abap/m-p/688316#M30887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-02T16:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error during access to reference node XML reading in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-access-to-reference-node-xml-reading-in-abap/m-p/688317#M30888</link>
      <description>&lt;P&gt;Oopppsss...&lt;/P&gt;&lt;P&gt;I got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I colled the return parameter incorrectly in the program. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-access-to-reference-node-xml-reading-in-abap/m-p/688317#M30888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-02T17:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error during access to reference node XML reading in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-access-to-reference-node-xml-reading-in-abap/m-p/14068793#M2041550</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Hello Engineer.

I know this post is from a long time ago, but the exact same thing is happening to me and I'd like to know exactly how you solved it.

Can you please help me?

Thank you so much.&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-access-to-reference-node-xml-reading-in-abap/m-p/14068793#M2041550</guid>
      <dc:creator>vmcuervo</dc:creator>
      <dc:date>2025-04-07T19:45:54Z</dc:date>
    </item>
  </channel>
</rss>

