<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486346#M560725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Depending on what the senario is, the value could be anything. For ABAP statements, it is usually, 0,4,8 which means success or failure. Or from BDC CALL tranaction, 1001, will mean failure. Or if we are talking about sy-subrc value after calling a function module, it will depend on the exceptions list from the function module, and what values are assigned to the exceptions. Here is could be anything.&lt;/P&gt;&lt;P&gt;Sy-subrc = 0 -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Success&lt;/P&gt;&lt;P&gt;Sy-subrc = 4 -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Failure(known reason)&lt;/P&gt;&lt;P&gt;Sy-subrc = 8 -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Internal error(Unknown reason).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2007 09:34:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-09T09:34:29Z</dc:date>
    <item>
      <title>Sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486345#M560724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want complete description on sy-subrc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 09:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486345#M560724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T09:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486346#M560725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Depending on what the senario is, the value could be anything. For ABAP statements, it is usually, 0,4,8 which means success or failure. Or from BDC CALL tranaction, 1001, will mean failure. Or if we are talking about sy-subrc value after calling a function module, it will depend on the exceptions list from the function module, and what values are assigned to the exceptions. Here is could be anything.&lt;/P&gt;&lt;P&gt;Sy-subrc = 0 -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Success&lt;/P&gt;&lt;P&gt;Sy-subrc = 4 -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Failure(known reason)&lt;/P&gt;&lt;P&gt;Sy-subrc = 8 -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Internal error(Unknown reason).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 09:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486346#M560725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T09:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486347#M560726</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;SY-SUBRC is the system return parameter that SAP provides for all actions like Select, Read, the outcome of a Function module etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, if the SY-SUBRC = 0, then that action has been performed successfully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SY-SUBRC &amp;gt; 0 then, the system has raised an exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***do reward if usefull&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 09:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486347#M560726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T09:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486348#M560727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GOTO SE11, and type SY / SYST and display,goto SUBRC field you can see the description there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is mainly useful, to know whether return code is successful or failure or error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0-SUCCESS 4- FAILURE  8- ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 09:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486348#M560727</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-07-09T09:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486349#M560728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-subrc statement is for checking the errors in the coding.&lt;/P&gt;&lt;P&gt;it applies after quries and read statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0&lt;/P&gt;&lt;P&gt;the result contains at least one record.&lt;/P&gt;&lt;P&gt;if sy-subrc = 4&lt;/P&gt;&lt;P&gt;The result table is empty&lt;/P&gt;&lt;P&gt;if sy-subrc = 8&lt;/P&gt;&lt;P&gt;applies only to select single for update you did not specify all the primary key fields in the where condition .The result table is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this link,&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 11:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486349#M560728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T11:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486350#M560729</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;  SY-SUBRC is a system field that stores the status of previously executed statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a statement is SUCCESSFUL it stores the value 0.&lt;/P&gt;&lt;P&gt;otherwise it will store any other value like 4 , 8 based on the error condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 11:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2486350#M560729</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-07-09T11:08:58Z</dc:date>
    </item>
  </channel>
</rss>

