<?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 Possible Sequential Read Access for a Sorted Table(SCI): LOOP with Where Clause. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-sequential-read-access-for-a-sorted-table-sci-loop-with-where/m-p/11731063#M1948870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body explain me why the SCI Warning occurs in LOOP ENDLOOP with WHERE Clause in Sorted Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field f1 &amp;amp; f2 is a non-key field.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at lt_sorted into lwa_sorted where ( f1 EQ value OR f1 EQ value ) AND f2 = value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement gives SCI warnings as Possible Sequential Read Access for a Sorted Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2016 09:19:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-06-27T09:19:28Z</dc:date>
    <item>
      <title>Possible Sequential Read Access for a Sorted Table(SCI): LOOP with Where Clause.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-sequential-read-access-for-a-sorted-table-sci-loop-with-where/m-p/11731063#M1948870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body explain me why the SCI Warning occurs in LOOP ENDLOOP with WHERE Clause in Sorted Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field f1 &amp;amp; f2 is a non-key field.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at lt_sorted into lwa_sorted where ( f1 EQ value OR f1 EQ value ) AND f2 = value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement gives SCI warnings as Possible Sequential Read Access for a Sorted Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 09:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-sequential-read-access-for-a-sorted-table-sci-loop-with-where/m-p/11731063#M1948870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-27T09:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Sequential Read Access for a Sorted Table(SCI): LOOP with Where Clause.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/possible-sequential-read-access-for-a-sorted-table-sci-loop-with-where/m-p/11731064#M1948871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if your two fields you use in the WHERE clause are no key fields, you will have a sequential read on the internal table. That's the hint from the check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can solve this by several changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you table has many rows, I would prefer to define a secondary index with the two affected fields. First field should be F2 because it has only one equal condition in your WHERE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 09:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/possible-sequential-read-access-for-a-sorted-table-sci-loop-with-where/m-p/11731064#M1948871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-27T09:38:19Z</dc:date>
    </item>
  </channel>
</rss>

