<?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: sy-subrc values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968245#M397473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0 is a success in all cases...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other values depends on what "statement / function" you executed...it depends on that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2007 13:49:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-15T13:49:34Z</dc:date>
    <item>
      <title>sy-subrc values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968243#M397471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;friends we see sy-subrc returning some values ,please provide me alist of values&lt;/P&gt;&lt;P&gt;and what do they suggest?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 13:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968243#M397471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T13:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968244#M397472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The values and there meanings depend on the statement.  One important thing is that when SY-SUBRC = 0, then the previous statement is successful,  when it is not 0, then the previous statement was not successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 13:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968244#M397472</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-02-15T13:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968245#M397473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0 is a success in all cases...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other values depends on what "statement / function" you executed...it depends on that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 13:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968245#M397473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T13:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968246#M397474</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 value will get set depending upon the statements. If u press F1 and see the documentation u can understand.&lt;/P&gt;&lt;P&gt;Do F1 for READ, SELECT, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc  =0 then the statement suceeded adn if it is 4 it is with error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S sy-ubrc value changes .&lt;/P&gt;&lt;P&gt;Eg. While u modify&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;The entry was changed. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;Index position too large. No entry was changed, since the table contains less than idx entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not only 0 and 4 is there also 2,4,8...&lt;/P&gt;&lt;P&gt;See the READ help doc&lt;/P&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 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;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;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Judith Jessie Selvi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 13:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968246#M397474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T13:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968247#M397475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of sy-subrc depends on the instruction that's run before the sy-subrc check. When the statement runs correctly the sy-subrc will be equal zero, otherwise it encontered and error.&lt;/P&gt;&lt;P&gt;You can see the exceptions of a function using the model to call the function or accessing it by se37 and get the meaning of the sy-subrc numbers that the function returns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 13:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/1968247#M397475</guid>
      <dc:creator>hermanoclaro</dc:creator>
      <dc:date>2007-02-15T13:57:08Z</dc:date>
    </item>
  </channel>
</rss>

