<?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: TRANSFORMATION ABAP : Error accessing the ref. node in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230612#M1984412</link>
    <description>&lt;P&gt;Hi Sandra,&lt;BR /&gt;Its the second time you help me, thanks for your reply !&lt;BR /&gt;I changed it with the second way ZST_XML_CROF structure (instead of ZTT_XML_CROF table)&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1866790-zst-xml-crof.png" /&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" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined"&amp;gt;
  &amp;lt;tt:root name="ROOT" type="?"/&amp;gt;
  &amp;lt;tt:root name="CRPROD_FILE" type="ddic:ZST_XML_CROF"/&amp;gt;
  &amp;lt;tt:template&amp;gt;
    &amp;lt;CRPROD_FILE&amp;gt;
        &amp;lt;FNAME tt:value-ref="CRPROD_FILE.CROF_FIC.FNAME"/&amp;gt;
        &amp;lt;ZLOGID tt:value-ref="CRPROD_FILE.CROF_FIC.ZLOGID"/&amp;gt;
        &amp;lt;ZNBPROD tt:value-ref="CRPROD_FILE.CROF_FIC.ZNBPROD"/&amp;gt;
        &amp;lt;PROD_ORDER&amp;gt;
          &amp;lt;AUFNR tt:value-ref="CRPROD_FILE.CROF_HD.AUFNR"/&amp;gt;
          &amp;lt;GSTRP tt:value-ref="CRPROD_FILE.CROF_HD.GSTRP"/&amp;gt;
          &amp;lt;GLTRP tt:value-ref="CRPROD_FILE.CROF_HD.GLTRP"/&amp;gt;
          &amp;lt;GLTRI tt:value-ref="CRPROD_FILE.CROF_HD.GLTRI"/&amp;gt;
          &amp;lt;MATNR tt:value-ref="CRPROD_FILE.CROF_HD.MATNR"/&amp;gt;
          &amp;lt;MENGE tt:value-ref="CRPROD_FILE.CROF_HD.MENGE"/&amp;gt;
          &amp;lt;MENGE1 tt:value-ref="CRPROD_FILE.CROF_HD.MENGE1"/&amp;gt;
        &amp;lt;/PROD_ORDER&amp;gt;
      &amp;lt;/CRPROD_FILE&amp;gt;
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;and now i got the "Error accessing the ref. node '&lt;STRONG&gt;CROF_FIC.FNAME&lt;/STRONG&gt;'".&lt;P&gt;How to declare this Node ?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 08:50:42 GMT</pubDate>
    <dc:creator>former_member715026</dc:creator>
    <dc:date>2020-12-01T08:50:42Z</dc:date>
    <item>
      <title>TRANSFORMATION ABAP : Error accessing the ref. node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230610#M1984410</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;With this Transformation :&lt;BR /&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" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined"&amp;gt;
  &amp;lt;tt:root name="ROOT" type="?"/&amp;gt;
  &amp;lt;tt:root name="CRPROD_FILE" type="ddic:ZTT_XML_CROF"/&amp;gt;
  &amp;lt;tt:template&amp;gt;
    &amp;lt;tt:loop ref=".CRPROD_FILE"&amp;gt;
      &amp;lt;CRPROD_FILE&amp;gt;
        &amp;lt;FNAME tt:value-ref="CROF_FIC.FNAME"/&amp;gt;
        &amp;lt;ZLOGID tt:value-ref="CROF_FIC.ZLOGID"/&amp;gt;
        &amp;lt;ZNBPROD tt:value-ref="CROF_FIC.ZNBPROD"/&amp;gt;
        &amp;lt;PROD_ORDER&amp;gt;
          &amp;lt;AUFNR tt:value-ref="CROF_HD.AUFNR"/&amp;gt;
          &amp;lt;GSTRP tt:value-ref="CROF_HD.GSTRP"/&amp;gt;
          &amp;lt;GLTRP tt:value-ref="CROF_HD.GLTRP"/&amp;gt;
          &amp;lt;GLTRI tt:value-ref="CROF_HD.GLTRI"/&amp;gt;
          &amp;lt;MATNR tt:value-ref="CROF_HD.MATNR"/&amp;gt;
          &amp;lt;MENGE tt:value-ref="CROF_HD.MENGE"/&amp;gt;
          &amp;lt;MENGE1 tt:value-ref="CROF_HD.MENGE1"/&amp;gt;
        &amp;lt;/PROD_ORDER&amp;gt;
      &amp;lt;/CRPROD_FILE&amp;gt;
    &amp;lt;/tt:loop&amp;gt;
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;And this File in input :
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&amp;gt;
&amp;lt;CRPROD_FILE&amp;gt;
&amp;lt;FNAME&amp;gt;FILE_TST.xml&amp;lt;/FNAME&amp;gt;
&amp;lt;ZLOGID&amp;gt;TSTID&amp;lt;/ZLOGID&amp;gt;&amp;lt;ZNBPROD&amp;gt;1&amp;lt;/ZNBPROD&amp;gt;&amp;lt;PROD_ORDER&amp;gt;&amp;lt;AUFNR&amp;gt;900001005861&amp;lt;/AUFNR&amp;gt;&amp;lt;GSTRP&amp;gt;20200713&amp;lt;/GSTRP&amp;gt;&amp;lt;GLTRP&amp;gt;2020717&amp;lt;/GLTRP&amp;gt;&amp;lt;GLTRI&amp;gt;2020714&amp;lt;/GLTRI&amp;gt;&amp;lt;MATNR&amp;gt;101061&amp;lt;/MATNR&amp;gt;&amp;lt;MENGE&amp;gt;10&amp;lt;/MENGE&amp;gt;&amp;lt;MENGE1&amp;gt;10&amp;lt;/MENGE1&amp;gt;&amp;lt;/PROD_ORDER&amp;gt;&amp;lt;/CRPROD_FILE&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;We got the "Error accessing the ref. node '&lt;STRONG&gt;CRPROD_FILE&lt;/STRONG&gt;'".&lt;BR /&gt;What is wrong ?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 16:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230610#M1984410</guid>
      <dc:creator>former_member715026</dc:creator>
      <dc:date>2020-11-30T16:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSFORMATION ABAP : Error accessing the ref. node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230611#M1984411</link>
      <description>&lt;P&gt;There are two possible solutions, depending on what you want to achieve:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Either you want the element &amp;lt;CRPROD_FILE&amp;gt; to occur several times in the XML file, in that case your XML structure is missing a root element (&amp;lt;CRPROD_FILES&amp;gt; or &amp;lt;DATA&amp;gt; for instance).&lt;/LI&gt;&lt;LI&gt;Or you want the element &amp;lt;CRPROD_FILE&amp;gt; to occur only once in the XML file, so you should put &amp;lt;CRPROD_FILE&amp;gt; outside the loop. And maybe you need to do other changes in your transformation.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 30 Nov 2020 19:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230611#M1984411</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-11-30T19:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSFORMATION ABAP : Error accessing the ref. node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230612#M1984412</link>
      <description>&lt;P&gt;Hi Sandra,&lt;BR /&gt;Its the second time you help me, thanks for your reply !&lt;BR /&gt;I changed it with the second way ZST_XML_CROF structure (instead of ZTT_XML_CROF table)&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1866790-zst-xml-crof.png" /&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" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined"&amp;gt;
  &amp;lt;tt:root name="ROOT" type="?"/&amp;gt;
  &amp;lt;tt:root name="CRPROD_FILE" type="ddic:ZST_XML_CROF"/&amp;gt;
  &amp;lt;tt:template&amp;gt;
    &amp;lt;CRPROD_FILE&amp;gt;
        &amp;lt;FNAME tt:value-ref="CRPROD_FILE.CROF_FIC.FNAME"/&amp;gt;
        &amp;lt;ZLOGID tt:value-ref="CRPROD_FILE.CROF_FIC.ZLOGID"/&amp;gt;
        &amp;lt;ZNBPROD tt:value-ref="CRPROD_FILE.CROF_FIC.ZNBPROD"/&amp;gt;
        &amp;lt;PROD_ORDER&amp;gt;
          &amp;lt;AUFNR tt:value-ref="CRPROD_FILE.CROF_HD.AUFNR"/&amp;gt;
          &amp;lt;GSTRP tt:value-ref="CRPROD_FILE.CROF_HD.GSTRP"/&amp;gt;
          &amp;lt;GLTRP tt:value-ref="CRPROD_FILE.CROF_HD.GLTRP"/&amp;gt;
          &amp;lt;GLTRI tt:value-ref="CRPROD_FILE.CROF_HD.GLTRI"/&amp;gt;
          &amp;lt;MATNR tt:value-ref="CRPROD_FILE.CROF_HD.MATNR"/&amp;gt;
          &amp;lt;MENGE tt:value-ref="CRPROD_FILE.CROF_HD.MENGE"/&amp;gt;
          &amp;lt;MENGE1 tt:value-ref="CRPROD_FILE.CROF_HD.MENGE1"/&amp;gt;
        &amp;lt;/PROD_ORDER&amp;gt;
      &amp;lt;/CRPROD_FILE&amp;gt;
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;and now i got the "Error accessing the ref. node '&lt;STRONG&gt;CROF_FIC.FNAME&lt;/STRONG&gt;'".&lt;P&gt;How to declare this Node ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 08:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230612#M1984412</guid>
      <dc:creator>former_member715026</dc:creator>
      <dc:date>2020-12-01T08:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSFORMATION ABAP : Error accessing the ref. node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230613#M1984413</link>
      <description>&lt;P&gt;Please use the COMMENT button for comments, questions, adding details, replying to OP comment, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 17:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230613#M1984413</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-12-01T17:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSFORMATION ABAP : Error accessing the ref. node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230614#M1984414</link>
      <description>&lt;P&gt;I think the issue is more about the starting point of VALUE-REF. You should start from the root using a dot. And you could reduce the size of the names with tt:ref:&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" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined"&amp;gt;
  &amp;lt;tt:root name="ROOT" type="?"/&amp;gt;
  &amp;lt;tt:root name="CRPROD_FILE" type="ddic:ZST_XML_CROF"/&amp;gt;
  &amp;lt;tt:template&amp;gt;
    &amp;lt;CRPROD_FILE tt:ref=".CRPROD_FILE"&amp;gt;                &amp;lt;!-- =============== here --&amp;gt;
        &amp;lt;FNAME tt:value-ref="CROF_FIC.FNAME"/&amp;gt;
        &amp;lt;ZLOGID tt:value-ref="CROF_FIC.ZLOGID"/&amp;gt;
        &amp;lt;ZNBPROD tt:value-ref="CROF_FIC.ZNBPROD"/&amp;gt;
        &amp;lt;PROD_ORDER tt:ref="CROF_HD"&amp;gt;                  &amp;lt;!-- =============== and here --&amp;gt;
          &amp;lt;AUFNR tt:value-ref="AUFNR"/&amp;gt;
          &amp;lt;GSTRP tt:value-ref="GSTRP"/&amp;gt;
          &amp;lt;GLTRP tt:value-ref="GLTRP"/&amp;gt;
          &amp;lt;GLTRI tt:value-ref="GLTRI"/&amp;gt;
          &amp;lt;MATNR tt:value-ref="MATNR"/&amp;gt;
          &amp;lt;MENGE tt:value-ref="MENGE"/&amp;gt;
          &amp;lt;MENGE1 tt:value-ref="MENGE1"/&amp;gt;
        &amp;lt;/PROD_ORDER&amp;gt;
      &amp;lt;/CRPROD_FILE&amp;gt;
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Dec 2020 18:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transformation-abap-error-accessing-the-ref-node/m-p/12230614#M1984414</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-12-01T18:01:35Z</dc:date>
    </item>
  </channel>
</rss>

