<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379262#M1041911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why We need to use SY-SUBRC check after SELECT Statement?If we do'nt use whether it will give dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Aug 2008 09:24:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-23T09:24:45Z</dc:date>
    <item>
      <title>SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379262#M1041911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why We need to use SY-SUBRC check after SELECT Statement?If we do'nt use whether it will give dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 09:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379262#M1041911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379263#M1041912</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;Well SY-SUBRC is a system field when ever any operation successfully completes then its value is 0 and if fails then its value will be not equal to zero.So to know wheteher the SELECt operation is succesful or not we are validating teh SY-SUBRC eq 0 or not that'sa ll.&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;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 09:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379263#M1041912</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-08-23T09:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379264#M1041913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;    its not goin to give any dump.&lt;/P&gt;&lt;P&gt; but if u want to execute other statements after u r select statement u can give sy-subrc condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 09:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379264#M1041913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T09:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379265#M1041914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Why We need to use SY-SUBRC check after SELECT Statement?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is what i got from F1 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The SELECT statement sets the values of the system fields sy-subrc and sy-dbcnt.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sy-subrc Relevance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0 The SELECT statement sets sy-subrc to 0 for every pass by value to an ABAP data object. The ENDSELECT statement sets sy-subrc to 0 if at least one row was transferred in the SELECT loop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4 The SELECT statement sets sy-subrc to 4 if the result set is empty, that is, if no data was found in the database.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8 The SELECT statement sets sy-subrc to 8 if the FOR UPDATE addition is used in result, without the primary key being specified fully after WHERE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After every value that is transferred to an ABAP data object, the SELECT statement sets sy-dbcnt to the number of rows that were transferred. If the result set is empty, sy-dbcnt is set to 0.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If we do'nt use whether it will give dump?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;No&lt;/STRONG&gt;.But good practice if your use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 09:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379265#M1041914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T09:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379266#M1041915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of asking this question just execute and see the result wether it give dump or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either u are very new to ABAP and do not bother to study or u are asking such qustion just for the sake of points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 09:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/4379266#M1041915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T09:50:19Z</dc:date>
    </item>
  </channel>
</rss>

