<?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: Synatx error with READ statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328673#M797314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;The correct syntax is:&lt;/P&gt;&lt;P&gt;Read table itab1 with key a = it_tab2-a &lt;/P&gt;&lt;P&gt;                                      b = it_tab2-b &lt;/P&gt;&lt;P&gt;                                      c = it_tab2-c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 12:41:54 GMT</pubDate>
    <dc:creator>Peter_Lintner</dc:creator>
    <dc:date>2008-01-24T12:41:54Z</dc:date>
    <item>
      <title>Synatx error with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328671#M797312</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;Is the below syntax correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab1 with key  a = it_tab2-a and b = it_tab2-b and c = it_tab2-c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above syntax is showing  some error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328671#M797312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T12:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Synatx error with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328672#M797313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove all 'and'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab1 with key a = it_tab2-a &lt;/P&gt;&lt;P&gt; b = it_tab2-b &lt;/P&gt;&lt;P&gt; c = it_tab2-c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328672#M797313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T12:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Synatx error with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328673#M797314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;The correct syntax is:&lt;/P&gt;&lt;P&gt;Read table itab1 with key a = it_tab2-a &lt;/P&gt;&lt;P&gt;                                      b = it_tab2-b &lt;/P&gt;&lt;P&gt;                                      c = it_tab2-c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328673#M797314</guid>
      <dc:creator>Peter_Lintner</dc:creator>
      <dc:date>2008-01-24T12:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Synatx error with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328674#M797315</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table doesn't allow ne operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It reads only one record...Either by index or key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE MY_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE MY_TAB WITH KEY CODE = 'ATG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the results for SY-SUBRC checks after read table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An entry was read. &lt;/P&gt;&lt;P&gt;SY-TABIX is set to the index of the entry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 2: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An entry was read. &lt;/P&gt;&lt;P&gt;SY-TABIX is set to the index of the entry. This return code can only occur when you use the COMPARING addition. For further detauls, refer to the COMPARING section of the additions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No entry was read. &lt;/P&gt;&lt;P&gt;The value of SY-TABIX depends on the table type and whether the BINARY SEARCH addition was specified. &lt;/P&gt;&lt;P&gt;If the table is a SORTED TABLE or a table sorted in ascending order of the type STANDARD TABLE with the BINARY SEARCH addition, SY-TABIX refers to the next-highest index. &lt;/P&gt;&lt;P&gt;Otherwise, SY-TABIX is undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 8: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No entry was read. &lt;/P&gt;&lt;P&gt;This return code only occurs with a SORTED TABLE or a STANDARD TABLE with the BINARY SEARCH addition. SY-TABIX is set to the number of all entries plus 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading records with keys&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading lines with Index&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3730358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3730358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328674#M797315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T12:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Synatx error with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328675#M797316</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;Write as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: wa1 like line of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab1 into wa1 with key a = it_tab2-a b = it_tab2-b c = it_tab2-c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328675#M797316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T12:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Synatx error with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328676#M797317</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;The correct syntax is&lt;/P&gt;&lt;P&gt;READ TABLE itab1 WITH KEY a = itab2-field1&lt;/P&gt;&lt;P&gt;                                              b = itab2-field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If itab1 and itab2 are defined with header line.&lt;/P&gt;&lt;P&gt;If they do not have a header line then declare work areas for them and read as follows :&lt;/P&gt;&lt;P&gt;READ TABLE itab1 INTO wa1 WITH KEY a = wa2-field1&lt;/P&gt;&lt;P&gt;                                                             b = wa2-field2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328676#M797317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T12:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Synatx error with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328677#M797318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Don't use AND in read statement. Try it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab1 with key a = it_tab2-a &lt;/P&gt;&lt;P&gt;b = it_tab2-b &lt;/P&gt;&lt;P&gt;c = it_tab2-c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L.Velu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328677#M797318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T12:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Synatx error with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328678#M797319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ajay, ur iab1 should contains a, b, c fileds, and it_tab2 also should contain a, b, c fields.&lt;/P&gt;&lt;P&gt;then remove and in ur syntax.&lt;/P&gt;&lt;P&gt;loop at it_tab2.&lt;/P&gt;&lt;P&gt;read table itab1 with key a = it_tab2-a &lt;/P&gt;&lt;P&gt;                                    b = it_tab2-b&lt;/P&gt;&lt;P&gt;                                    c = it_tab2-c.&lt;/P&gt;&lt;P&gt;process code......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synatx-error-with-read-statement/m-p/3328678#M797319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T12:51:47Z</dc:date>
    </item>
  </channel>
</rss>

