<?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: Node Syntax Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398974#M1240569</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 have checked in ECC 6 and no errors came.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the bleow code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : payroll type paygb_result.&lt;/P&gt;&lt;P&gt;data: wa_pens like line of  payroll-nat-pens, ( or)&lt;/P&gt;&lt;P&gt;      wa_pens type PC22P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT payroll-nat-pens INTO wa_pens.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Loop at you have to specify the declared Node name ( i.e. payroll )but you specified the reference structure ( i.e. paygb_result-nat-pens ) which is wrong.&lt;/P&gt;&lt;P&gt;Please check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2009 14:42:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-02T14:42:20Z</dc:date>
    <item>
      <title>Node Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398969#M1240564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a piece of code based on the PNP logical database. I have declared a NODE &lt;/P&gt;&lt;P&gt;as: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NODES: payroll TYPE paygb_result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can refer to fields in the INTER component i.e. DATA: wa_rt LIKE LINE OF payroll-inter-rt &lt;/P&gt;&lt;P&gt;but when I refer to the part which is country specific &lt;/P&gt;&lt;P&gt;i.e. DATA: wa_pens LIKE LINE OF payroll-nat-pens &lt;/P&gt;&lt;P&gt;the syntax checker is saying that "PAYROLL" does not have a component called "NAT_PENS". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can double click on paygb_result which shoes a component called NAT. Then clicking on &lt;/P&gt;&lt;P&gt;PAYGB_NATIONAL then displays the component PENS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me why this is happening? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 13:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398969#M1240564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T13:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Node Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398970#M1240565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : t_rt  TYPE LINE OF paygb_result-inter-rt ,
        t_pen TYPE LINE OF paygb_result-nat-pens .

DATA: wa_rt TYPE t_rt .
DATA: wa_pens TYPE t_pen .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 14:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398970#M1240565</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-04-02T14:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Node Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398971#M1240566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for replying,but how do I now look at the results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT paygb_result-nat-pens INTO wa_pens.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now get another syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 14:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398971#M1240566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T14:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Node Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398972#M1240567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Managed to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many, many thanks mate. You have solved a very big headache!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 14:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398972#M1240567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Node Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398973#M1240568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
NODES: payroll TYPE paygb_result.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement uses table which is only known to system at runtime.&lt;/P&gt;&lt;P&gt;In order you could address fields of this table (only NAT component which is country specific) you must declare another one of the same &lt;EM&gt;paygb_result&lt;/EM&gt; type.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: it_pens TYPE paygb_result-nat-pens,   
        wa_pens LIKE LINE OF it_pens.  "using PAYROLL here, system will not recognize it, hence the syntax error

"now you can address WA_PENS fields here
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you noticed you can, however address component &lt;EM&gt;payroll-inter-rt&lt;/EM&gt; , becasue it is non country specific, so is available for all payroll result types ( &lt;EM&gt;paygb_result , paynl_result , paypl_result&lt;/EM&gt; etc ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 14:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398973#M1240568</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-04-02T14:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Node Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398974#M1240569</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 have checked in ECC 6 and no errors came.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the bleow code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : payroll type paygb_result.&lt;/P&gt;&lt;P&gt;data: wa_pens like line of  payroll-nat-pens, ( or)&lt;/P&gt;&lt;P&gt;      wa_pens type PC22P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT payroll-nat-pens INTO wa_pens.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Loop at you have to specify the declared Node name ( i.e. payroll )but you specified the reference structure ( i.e. paygb_result-nat-pens ) which is wrong.&lt;/P&gt;&lt;P&gt;Please check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 14:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/node-syntax-error/m-p/5398974#M1240569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T14:42:20Z</dc:date>
    </item>
  </channel>
</rss>

