<?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: Read table statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984315#M72622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-SUBRC = 0: &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;SY-SUBRC = 2: &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;SY-SUBRC = 4: &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;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;SY-SUBRC = 8:&amp;lt;/i&amp;gt;&amp;lt;/b&amp;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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2005 07:09:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-30T07:09:39Z</dc:date>
    <item>
      <title>Read table statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984314#M72621</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;while reading the internal table, if the subrc value is 8 .&lt;/P&gt;&lt;P&gt;what does it mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2005 07:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984314#M72621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-30T07:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read table statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984315#M72622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-SUBRC = 0: &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;SY-SUBRC = 2: &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;SY-SUBRC = 4: &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;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;SY-SUBRC = 8:&amp;lt;/i&amp;gt;&amp;lt;/b&amp;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2005 07:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984315#M72622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-30T07:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read table statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984316#M72623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rajkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's an example :&lt;/P&gt;&lt;P&gt;*in progtab are 2 entries &lt;/P&gt;&lt;P&gt;*now entry is'nt found:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sy-subrc = &amp;lt;b&amp;gt;8&amp;lt;/b&amp;gt; , sy-tabix = number of entries + 1 = &amp;lt;b&amp;gt;3&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:  BEGIN OF PROGTAB OCCURS 10,
       NAME LIKE TRDIR-NAME,
       END OF PROGTAB.
MOVE TRDIR-NAME TO PROGTAB-NAME.
READ TABLE PROGTAB WITH KEY PROGTAB BINARY SEARCH.   
 IF SY-SUBRC &amp;lt;&amp;gt; 0.                                    
   INSERT PROGTAB INDEX SY-TABIX.                     
 ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;P&gt;                                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2005 07:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984316#M72623</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-06-30T07:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Read table statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984317#M72624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 10:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984317#M72624</guid>
      <dc:creator>former_member209499</dc:creator>
      <dc:date>2015-11-03T10:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Read table statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984318#M72625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 11:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement/m-p/984318#M72625</guid>
      <dc:creator>former_member197132</dc:creator>
      <dc:date>2015-11-03T11:55:56Z</dc:date>
    </item>
  </channel>
</rss>

