<?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 Syntax error when executing code, why? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649364#M2014911</link>
    <description>&lt;P&gt;Hello community!&lt;/P&gt;
  &lt;P&gt;I am doing an exercise on internal tables, and when writing the following code I have a syntax error.&lt;/P&gt;
  &lt;P&gt;The syntax error that it generates is the following: "USING" expected, not "READ TABLE HOLIDAY WITH".&lt;/P&gt;
  &lt;P&gt;could someone guide me?&lt;/P&gt;
  &lt;P&gt;thanks!&lt;/P&gt;
  &lt;P&gt;TYPES:&lt;/P&gt;
  &lt;P&gt; BEGIN OF ty_reg,&lt;/P&gt;
  &lt;P&gt; id(3) type n,&lt;/P&gt;
  &lt;P&gt; text(20) type c,&lt;/P&gt;
  &lt;P&gt; END OF ty_reg.&lt;/P&gt;
  &lt;P&gt;DATA:&lt;/P&gt;
  &lt;P&gt;day TYPE STANDARD TABLE OF ty_reg WITH HEADER LINE,&lt;/P&gt;
  &lt;P&gt;holiday TYPE STANDARD TABLE OF ty_reg WITH HEADER LINE.&lt;/P&gt;
  &lt;P&gt;SORT: day BY id, holiday BY id.&lt;/P&gt;
  &lt;P&gt;LOOP AT day&lt;/P&gt;
  &lt;P&gt; READ TABLE holiday WITH KEY id = day-id INTO day BINARY SEARCH.&lt;/P&gt;
  &lt;P&gt; IF sy-subrc EQ 0.&lt;/P&gt;
  &lt;P&gt; day-text = holiday-text.&lt;/P&gt;
  &lt;P&gt; MODIFY day INDEX sy-tabix.&lt;/P&gt;
  &lt;P&gt; ENDIF.&lt;/P&gt;
  &lt;P&gt;ENDLOOP.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 17:57:36 GMT</pubDate>
    <dc:creator>former_member837795</dc:creator>
    <dc:date>2023-01-18T17:57:36Z</dc:date>
    <item>
      <title>Syntax error when executing code, why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649364#M2014911</link>
      <description>&lt;P&gt;Hello community!&lt;/P&gt;
  &lt;P&gt;I am doing an exercise on internal tables, and when writing the following code I have a syntax error.&lt;/P&gt;
  &lt;P&gt;The syntax error that it generates is the following: "USING" expected, not "READ TABLE HOLIDAY WITH".&lt;/P&gt;
  &lt;P&gt;could someone guide me?&lt;/P&gt;
  &lt;P&gt;thanks!&lt;/P&gt;
  &lt;P&gt;TYPES:&lt;/P&gt;
  &lt;P&gt; BEGIN OF ty_reg,&lt;/P&gt;
  &lt;P&gt; id(3) type n,&lt;/P&gt;
  &lt;P&gt; text(20) type c,&lt;/P&gt;
  &lt;P&gt; END OF ty_reg.&lt;/P&gt;
  &lt;P&gt;DATA:&lt;/P&gt;
  &lt;P&gt;day TYPE STANDARD TABLE OF ty_reg WITH HEADER LINE,&lt;/P&gt;
  &lt;P&gt;holiday TYPE STANDARD TABLE OF ty_reg WITH HEADER LINE.&lt;/P&gt;
  &lt;P&gt;SORT: day BY id, holiday BY id.&lt;/P&gt;
  &lt;P&gt;LOOP AT day&lt;/P&gt;
  &lt;P&gt; READ TABLE holiday WITH KEY id = day-id INTO day BINARY SEARCH.&lt;/P&gt;
  &lt;P&gt; IF sy-subrc EQ 0.&lt;/P&gt;
  &lt;P&gt; day-text = holiday-text.&lt;/P&gt;
  &lt;P&gt; MODIFY day INDEX sy-tabix.&lt;/P&gt;
  &lt;P&gt; ENDIF.&lt;/P&gt;
  &lt;P&gt;ENDLOOP.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 17:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649364#M2014911</guid>
      <dc:creator>former_member837795</dc:creator>
      <dc:date>2023-01-18T17:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error when executing code, why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649365#M2014912</link>
      <description>&lt;P&gt;You have a typo of &lt;EM&gt;holyday&lt;/EM&gt; that should be &lt;EM&gt;holiday&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 18:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649365#M2014912</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2023-01-18T18:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error when executing code, why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649366#M2014913</link>
      <description>&lt;P&gt;Pay attention around the place. Statements must all end with a dot.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 20:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649366#M2014913</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-01-18T20:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error when executing code, why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649367#M2014914</link>
      <description>&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;Please add a dot after the statement 'LOOP AT day'&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 08:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649367#M2014914</guid>
      <dc:creator>abhawsinghka-1</dc:creator>
      <dc:date>2023-01-19T08:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error when executing code, why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649368#M2014915</link>
      <description>&lt;P&gt;No period after "Loop at day"&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-when-executing-code-why/m-p/12649368#M2014915</guid>
      <dc:creator>RichB</dc:creator>
      <dc:date>2023-01-19T17:27:49Z</dc:date>
    </item>
  </channel>
</rss>

