<?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 Please solve the code inpsector error: Sequential read access possible in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161050#M1515862</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; &lt;/P&gt;&lt;P&gt;  i am getting code inspector warning message . could u please try to provide the solution for that warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code inspector warning message is :   Sequential read access possible for a hashed table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My statment :  read table &amp;lt;lt_product_mbr&amp;gt; with table key (ujr0_c_member_id) = &amp;lt;l_product&amp;gt; assigning &amp;lt;ls_product_mbr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i declared  &amp;lt;LT_PRODUCT_MBR&amp;gt;  TYPE ANY TABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventough i delared  it as a type hashed or sorted . it is giving same warning message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Koti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Aug 2010 09:21:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-09T09:21:25Z</dc:date>
    <item>
      <title>Please solve the code inpsector error: Sequential read access possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161050#M1515862</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; &lt;/P&gt;&lt;P&gt;  i am getting code inspector warning message . could u please try to provide the solution for that warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code inspector warning message is :   Sequential read access possible for a hashed table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My statment :  read table &amp;lt;lt_product_mbr&amp;gt; with table key (ujr0_c_member_id) = &amp;lt;l_product&amp;gt; assigning &amp;lt;ls_product_mbr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i declared  &amp;lt;LT_PRODUCT_MBR&amp;gt;  TYPE ANY TABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventough i delared  it as a type hashed or sorted . it is giving same warning message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Koti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161050#M1515862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T09:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Please solve the code inpsector error: Sequential read access possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161051#M1515863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you specified the key field dynamically (variable in brackets). That means&lt;/P&gt;&lt;P&gt;it can not be checked statically whether the table key of the hashed table&lt;/P&gt;&lt;P&gt;is used or not since this is only clear at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the dynamic key specification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table &amp;lt;lt_product_mbr&amp;gt; with table key (ujr0_c_member_id) = &amp;lt;l_product&amp;gt; assigning &amp;lt;ls_product_mbr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and not the direct key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table &amp;lt;lt_product_mbr&amp;gt; with table key field = &amp;lt;l_product&amp;gt; assigning &amp;lt;ls_product_mbr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the CI will  warn you that you may end up with a sequential red (if not the table key of the hashed table&lt;/P&gt;&lt;P&gt;is used in the variable at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161051#M1515863</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-08-09T10:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Please solve the code inpsector error: Sequential read access possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161052#M1515864</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;PRE&gt;&lt;CODE&gt;
read table &amp;lt;lt_product_mbr&amp;gt; with table key (ujr0_c_member_id) = &amp;lt;l_product&amp;gt; assigning &amp;lt;ls_product_mbr&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the above code in following manner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table &amp;lt;lt_product_mbr&amp;gt; with key (ujr0_c_member_id) = &amp;lt;l_product&amp;gt; assigning &amp;lt;ls_product_mbr&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use &lt;STRONG&gt;with table key&lt;/STRONG&gt; use the &lt;STRONG&gt;with key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this One.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 12:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161052#M1515864</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2010-08-12T12:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Please solve the code inpsector error: Sequential read access possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161053#M1515865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Ravishankar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i tried  ur solution ,but it is giving same warning message.  i declared that table type as hashed table. i tried to change the table type as standard table  the warning message is resolved but it is going to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Koti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 04:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161053#M1515865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-13T04:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Please solve the code inpsector error: Sequential read access possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161054#M1515866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic condition is not allowed on &lt;STRONG&gt;read table&lt;/STRONG&gt; statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table &amp;lt;lt_product_mbr&amp;gt; with key field = &amp;lt;l_product&amp;gt; assigning &amp;lt;ls_product_mbr&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the your statement above manner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 05:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161054#M1515866</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2010-08-13T05:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Please solve the code inpsector error: Sequential read access possible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161055#M1515867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koti,&lt;/P&gt;&lt;P&gt;I faced similar kind of issue, I found some workaround solution, to fix the Code inspector warning. &lt;/P&gt;&lt;P&gt;I hope it will work for you also&lt;/P&gt;&lt;P&gt;read table &amp;lt;lt_product_mbr&amp;gt; with table key (ujr0_c_member_id) = &amp;lt;l_product&amp;gt; assigning &amp;lt;ls_product_mbr&amp;gt;.&lt;/P&gt;&lt;P&gt;Instead of reading table with dynamic condition, loop the field-symbol and within loop check the dynamic field value like mentioned below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;bold&lt;/STRONG&gt;          FIELD-SYMBOLS : &amp;lt;FS_FIELD&amp;gt;    TYPE ANY.&lt;/P&gt;&lt;P&gt;          LOOP AT &amp;lt;LT_PRODUCT_MBR&amp;gt; ASSIGNING &amp;lt;LS_PRODUCT_MBR&amp;gt;.&lt;/P&gt;&lt;P&gt;           ASSIGN COMPONENT  UJR0_C_MEMBER_ID  OF  STRUCTURE  &amp;lt;LS_PRODUCT_MBR&amp;gt;  TO  &amp;lt;FS_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;           	IF &amp;lt;FS_FIELD&amp;gt; EQ  &amp;lt;L_PRODUCT&amp;gt;.	&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;DO YOUR LOGIC.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;                           EXIT.&lt;/P&gt;&lt;P&gt;         	 ENDIF.&lt;/P&gt;&lt;P&gt;          ENDLOOP.  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;bold&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards&lt;/P&gt;&lt;P&gt;Hari Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 11:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-solve-the-code-inpsector-error-sequential-read-access-possible/m-p/7161055#M1515867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T11:44:27Z</dc:date>
    </item>
  </channel>
</rss>

