<?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 sy-subrc = 8 when looping through a table... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194780#M1202126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am looping one table and reading other.&lt;/P&gt;&lt;P&gt;  now sy-subr = 8,it is showing what can be the reason.&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;Edited by: Julius Bussche on Feb 24, 2009 10:50 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subject title improved&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 06:21:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T06:21:09Z</dc:date>
    <item>
      <title>sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194780#M1202126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am looping one table and reading other.&lt;/P&gt;&lt;P&gt;  now sy-subr = 8,it is showing what can be the reason.&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;Edited by: Julius Bussche on Feb 24, 2009 10:50 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subject title improved&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194780#M1202126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194781#M1202127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abhishek ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc = 8 means your criteria is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194781#M1202127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194782#M1202128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 8: &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>Tue, 24 Feb 2009 06:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194782#M1202128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194783#M1202129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry,&lt;/P&gt;&lt;P&gt;my q was incomplete.&lt;/P&gt;&lt;P&gt;record is there ,i have written logic for sy-subrc = 0 as well as for 4 also.&lt;/P&gt;&lt;P&gt;but for 8 i have not written any logic becz i dint expect this situation,as i am using binary search may this is the problem.if y give me the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194783#M1202129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194784#M1202130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why dont you put ur conditions for like.&lt;/P&gt;&lt;P&gt;if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way all the situations will b handeled. as table will be read only in case sy-subrc is inital.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Palak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194784#M1202130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194785#M1202131</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;Check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 At least one line was read. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 No lines were read. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 8 The search key was not fully qualified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194785#M1202131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194786#M1202132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using binary search, make sure that the table is sorted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 08:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194786#M1202132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T08:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194787#M1202133</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;please check the search creteria you are using.is it valid on the given table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;sy-subrc =8 implies search criteria is not valid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 09:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194787#M1202133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194788#M1202134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the entry was determined with a binary search, and the end of the table was reached, then sy-tabix is set to the number of rows + 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194788#M1202134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T10:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc = 8 when looping through a table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194789#M1202135</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;If&lt;/P&gt;&lt;P&gt;sy-subrc = 4 No lines were read. &lt;/P&gt;&lt;P&gt;sy-subrc = 8 The search key was not fully qualified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u can add the logic for sy-subrc = 8 or u can change the logic as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 11:08:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-8-when-looping-through-a-table/m-p/5194789#M1202135</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-02-25T11:08:17Z</dc:date>
    </item>
  </channel>
</rss>

