<?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/2123608#M445446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fareed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its totally wrong according to me if one says that SY-SUBRC can be assigned with more than two meanings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC has always given a successful ( = 0 )  OR an unsuccessful ( NE 0 ) result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am wrong then tell me what it means when SY-SUBRC = 8000; I have recently came across this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2007 18:51:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-19T18:51:53Z</dc:date>
    <item>
      <title>sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123604#M445442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one send me all the sy-subrc numbers like for 0 its successful&lt;/P&gt;&lt;P&gt;and for 1 2  3 .....&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;fareed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 12:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123604#M445442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T12:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123605#M445443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0 - Success&lt;/P&gt;&lt;P&gt;4 - Failure&lt;/P&gt;&lt;P&gt;8 - Unknown Error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course sy-subrc could be set to anything when working with function module exceptions, it depends on what you assign when handling the EXCEPTIONs section in the FM signature.&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, 19 Apr 2007 12:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123605#M445443</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-19T12:58: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/2123606#M445444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more information........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return value set by the following ABAP statements. In general, a content of 0 means that the statement was executed without problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN sets SY-SUBRC to 0 if assignment to field symbol is possible, otherwise 4. &lt;/P&gt;&lt;P&gt;ASSIGN &amp;lt;dref&amp;gt;-&amp;gt;* sets SY-SUBRC to 0 if dereferencing is possible, otherwise 4.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK sets SY-SUBRC to 0 if the user has the necessary authorization, otherwise 4, 8, 12, 16, 24, 28, 32, or 36 depending on the cause. &lt;/P&gt;&lt;P&gt;CALL DIALOG with USING sets SY-SUBRC to 0, if processing was successful, otherwise &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION sets SY-SUBRC according to the exception handling. &lt;/P&gt;&lt;P&gt;CALL METHOD sets SY-SUBRC according to the exception handling.&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN sets SY-SUBRC to 0 if the user chose Enter or Execute and 4 if the user chose Cancel.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION with USING sets SY-SUBRC to 0 if processing was successful, otherwise &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS sets SY-SUBRC if there are runtime errors after the ENDCATCH statement. The value is specified in the program. &lt;/P&gt;&lt;P&gt;COMMIT WORK sets SY-SUBRC to 0.&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT sets SY-SUBRC to 0 if update was successful, otherwise &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;COMMUNICATION INIT DESTINATION &amp;#133; RETURNCODE sets SY-SUBRC as specified.&lt;/P&gt;&lt;P&gt;CONCATENATE sets SY-SUBRC to 0 if the result fits into target variable, otherwise 4.&lt;/P&gt;&lt;P&gt;CREATE OBJECT sets SY-SUBRC if the exceptions of the instance constructor are handled.&lt;/P&gt;&lt;P&gt;CREATE OBJECT in OLE2 sets SY-SUBRC to 0 if an external object was created, otherwise 1,2, 3 with different causes.&lt;/P&gt;&lt;P&gt;DELETE sets SY-SUBRC to 0 if the operation was successful, otherwise 4 or &amp;lt;&amp;gt; 0 depending on cause.&lt;/P&gt;&lt;P&gt;DEMAND &amp;#133; MESSAGES INTO sets SY-SUBRC to 0 if a message table is empty, otherwise &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;DESCRIBE LIST sets SY-SUBRC to 0 if row or list exists, otherwise 4 or 8.&lt;/P&gt;&lt;P&gt;EXEC SQL - ENDEXEC sets SY-SUBRC to 0 in almost all cases. Only if no set was read with FETCH is SY-SUBRC 4.&lt;/P&gt;&lt;P&gt;FETCH sets SY-SUBRC to 0 if at least one row was read, otherwise 4.&lt;/P&gt;&lt;P&gt;GENERATE SUBROUTINE POOL sets SY-SUBRC to 0 if generation was successful, otherwise 8.&lt;/P&gt;&lt;P&gt;GET CURSOR sets SY-SUBRC to 0 if the cursor is correctly positioned, otherwise 4.&lt;/P&gt;&lt;P&gt;GET PARAMETER sets SY-SUBRC to 0 if value found in SAP Memory, otherwise 4.&lt;/P&gt;&lt;P&gt;IMPORT sets SY-SUBRC to 0 if import of data objects was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;IMPORT sets SY-SUBRC to 0 if import of data objects was successful, otherwise 4. &lt;/P&gt;&lt;P&gt;LOAD REPORT sets SY-SUBRC to 0 if the operation was successful, otherwise 4 or 8 depending on cause. &lt;/P&gt;&lt;P&gt;LOOP sets SY-SUBRC to 0 if loop over extract was passed at least once, otherwise 4.&lt;/P&gt;&lt;P&gt;LOOP AT sets SY-SUBRC to 0 if loop over internal table was passed at least once, otherwise 4.&lt;/P&gt;&lt;P&gt;MODIFY sets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;MODIFY LINE sets SY-SUBRC to 0 if list row was changed, otherwise &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MODIFY sets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;OLE2 automation, bundled commands set SY-SUBRC to 0 if all were successfully executed, otherwise 1, 2, 3, 4 depending on cause.&lt;/P&gt;&lt;P&gt;OPEN DATASET sets SY-SUBRC to 0 if the file was opened, otherwise 8.&lt;/P&gt;&lt;P&gt;Open SQL commands set SY-SUBRC to 0 if operation was successful, otherwise &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;OVERLAY sets SY-SUBRC to 0 if at least one character is overlayed, otherwise 4.&lt;/P&gt;&lt;P&gt;READ DATASET sets SY-SUBRC to 0 if the read operation was successful, otherwise 4 or 8 depending on cause.&lt;/P&gt;&lt;P&gt;READ LINE sets SY-SUBRC to 0 if list row exists, otherwise &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;READ TABLE sets SY-SUBRC to 0 if the table row was found, otherwise 2, 4, 8 depending on cause.&lt;/P&gt;&lt;P&gt;REPLACE sets SY-SUBRC to 0 if search string could be replaced, otherwise &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;ROLLBACK WORK always sets SY-SUBRC to 0.&lt;/P&gt;&lt;P&gt;SCROLL sets SY-SUBRC to 0 if scrolling in list successful, otherwise 4 or 8 depending on cause.&lt;/P&gt;&lt;P&gt;SEARCH sets SY-SUBRC to 0 if search string was found, otherwise 4.&lt;/P&gt;&lt;P&gt;SELECT sets SY-SUBRC to 0 if at least one row was read, otherwise 4 or even 8 with SELECT SINGLE FOR UPDATE.&lt;/P&gt;&lt;P&gt;SET COUNTRY sets SY-SUBRC to 0 if country ID was found in table T005X, otherwise 4.&lt;/P&gt;&lt;P&gt;SET BIT sets SY-SUBRC to 0 if bit was set, otherwise &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;SET TITLEBAR sets SY-SUBRC to 0 if title exists, otherwise 4.&lt;/P&gt;&lt;P&gt;SHIFT &amp;#133; UP TO sets SY-SUBRC to 0 if position was found in character string, otherwise 4.&lt;/P&gt;&lt;P&gt;SPLIT sets SY-SUBRC to 0 if size of target fields is sufficient, otherwise 4.&lt;/P&gt;&lt;P&gt;UPDATE sets SY-SUBRC to 0 if operation successful, otherwise 4.&lt;/P&gt;&lt;P&gt;WRITE &amp;#133; TO sets SY-SUBRC to 0 if assignment successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~~Guduri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 13:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123606#M445444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T13:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123607#M445445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sy-subrc in general have 2 values mainly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 &amp;amp; 4 0 - Success &amp;amp; 4- failure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can be other exceptions like ACESS DENIED, UNKNOWN ERROR etc depending upon the FM called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 18:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123607#M445445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T18:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123608#M445446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fareed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its totally wrong according to me if one says that SY-SUBRC can be assigned with more than two meanings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC has always given a successful ( = 0 )  OR an unsuccessful ( NE 0 ) result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am wrong then tell me what it means when SY-SUBRC = 8000; I have recently came across this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 18:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123608#M445446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T18:51: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/2123609#M445447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Blue Moon here. SY-SUBRC = 0 is success and SY-SUBRC &amp;lt;&amp;gt; 0 is failure. If the SY-SUBRC value is set while calling a function module, then it will be set to whatever value you pass to each exception of that function module call. In such cases, SY-SUBRC has the meaning of that particular exception. See below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      FILENAME                = OUT_FILE
      FILETYPE                = 'ASC'
      WRITE_FIELD_SEPARATOR   = 'X'
      APPEND                  = 'X'
    TABLES
      DATA_TAB                = IT_FILE_DATA
    EXCEPTIONS
      FILE_WRITE_ERROR        = 1
      NO_BATCH                = 2
      GUI_REFUSE_FILETRANSFER = 3
      INVALID_TYPE            = 4
      NO_AUTHORITY            = 5
      UNKNOWN_ERROR           = 6
      HEADER_NOT_ALLOWED      = 7
      SEPARATOR_NOT_ALLOWED   = 8
      FILESIZE_NOT_ALLOWED    = 9
      HEADER_TOO_LONG         = 10
      DP_ERROR_CREATE         = 11
      DP_ERROR_SEND           = 12
      DP_ERROR_WRITE          = 13
      UNKNOWN_DP_ERROR        = 14
      ACCESS_DENIED           = 15
      DP_OUT_OF_MEMORY        = 16
      DISK_FULL               = 17
      DP_TIMEOUT              = 18
      FILE_NOT_FOUND          = 19
      DATAPROVIDER_EXCEPTION  = 20
      CONTROL_FLUSH_ERROR     = 21
      OTHERS                  = 22.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case SY-SUBRC can any of the non-zero values that are against each exception here. A SY-SUBRC value of 8 here means no seperator allowed. The same SY-SUBRC = 8 in another function module call or a READ statement, or a SELECT statement could mean entirely different. The only thing that is constant is a when SY-SUBRC is 0 which means success. Everything else is failure. Just to make those exceptions more meaningful, you will get different non-zero values set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 19:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123609#M445447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T19:56: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/2123610#M445448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fareed,&lt;/P&gt;&lt;P&gt;&lt;/P&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;For examples:&lt;/P&gt;&lt;P&gt;&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;P&gt;sy-subrc = 1001 -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; Failure error in BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 04:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123610#M445448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T04:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123611#M445449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fareed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link, This is the history for all the system variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope ur problem is resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Award if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudheer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 08:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123611#M445449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T08:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123612#M445450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai fareed_nasir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on the statement we use in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So better to check which value means what in the SAP help on your System or Just Press F1 on the Keyword on your ABAP report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't conform 4 means failue,etc...&lt;/P&gt;&lt;P&gt;Most of the times 0 means succesful,you can accept it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can do like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rama.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 12:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123612#M445450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T12:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123613#M445451</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;These are the errors sy-subrc returs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      FILE_WRITE_ERROR        = 1&lt;/P&gt;&lt;P&gt;      NO_BATCH                = 2&lt;/P&gt;&lt;P&gt;      GUI_REFUSE_FILETRANSFER = 3&lt;/P&gt;&lt;P&gt;      INVALID_TYPE            = 4&lt;/P&gt;&lt;P&gt;      NO_AUTHORITY            = 5&lt;/P&gt;&lt;P&gt;      UNKNOWN_ERROR           = 6&lt;/P&gt;&lt;P&gt;      HEADER_NOT_ALLOWED      = 7&lt;/P&gt;&lt;P&gt;      SEPARATOR_NOT_ALLOWED   = 8&lt;/P&gt;&lt;P&gt;      FILESIZE_NOT_ALLOWED    = 9&lt;/P&gt;&lt;P&gt;      HEADER_TOO_LONG         = 10&lt;/P&gt;&lt;P&gt;      DP_ERROR_CREATE         = 11&lt;/P&gt;&lt;P&gt;      DP_ERROR_SEND           = 12&lt;/P&gt;&lt;P&gt;      DP_ERROR_WRITE          = 13&lt;/P&gt;&lt;P&gt;      UNKNOWN_DP_ERROR        = 14&lt;/P&gt;&lt;P&gt;      ACCESS_DENIED           = 15&lt;/P&gt;&lt;P&gt;      DP_OUT_OF_MEMORY        = 16&lt;/P&gt;&lt;P&gt;      DISK_FULL               = 17&lt;/P&gt;&lt;P&gt;      DP_TIMEOUT              = 18&lt;/P&gt;&lt;P&gt;      FILE_NOT_FOUND          = 19&lt;/P&gt;&lt;P&gt;      DATAPROVIDER_EXCEPTION  = 20&lt;/P&gt;&lt;P&gt;      CONTROL_FLUSH_ERROR     = 21&lt;/P&gt;&lt;P&gt;      OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;     1001 : Failure in bdc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkata chalapathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 19:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123613#M445451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123614#M445452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I add some sanity into this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Subrc values depend on 2 things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If a standard command is used - like select, then a series of fixed values are used. These are documented in the help page for the respective command in the help pages. They have also been detailed above in other posters comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The subrc returning from a method call or function module depends on the called FM or method. As a developer, I can control what subrc is returned and can use any numbers I like from 1 to a large number. Each and every function module will have a different list of subrc calls so listing them here is a waste of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best bet is to use SE37 for FM's, go into the Exceptions tab and see what exceptions are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For method calls, use SE24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 14:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123614#M445452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123615#M445453</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;U need to &amp;lt;b&amp;gt;award points for useful answers&amp;lt;/b&amp;gt; and u have to mention it as solved if ur question is solved. Dont forget. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123615#M445453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123616#M445454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Farred,&lt;/P&gt;&lt;P&gt;           According to me sy-subrc is like a boolean variable..It will only return zero and non zero value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zero--&amp;gt; will denote the success of our queries&lt;/P&gt;&lt;P&gt;Non-zero---&amp;gt; values will tell that our query contains some fault...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to reward if this helps yar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 04:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123616#M445454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T04:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123617#M445455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from my point of view .subrc is used to check the above statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subrc activities:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will only return zero and non zero value.(i.e)It depends on the statement we use in the report.&lt;/P&gt;&lt;P&gt;Inorder to  understand easily .&lt;/P&gt;&lt;P&gt;It will check the previous or above statement.the stament is correct in the sense subrc = 0,otherwise the previous statement was not correct it is not 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if its useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards &lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 05:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123617#M445455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T05:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123618#M445456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai fareed_nasir uddin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-SUBRC = 0:&amp;lt;/b&amp;gt; The result table contains at least one record = Successful&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-SUBRC = 4:&amp;lt;/b&amp;gt; The result table is empty = Failure&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-SUBRC = 8:&amp;lt;/b&amp;gt; Applies only to SELECT SINGLE FOR UPDATE: You did not specify all of 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;regards,&lt;/P&gt;&lt;P&gt;kavitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 04:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123618#M445456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T04:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123619#M445457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;     SY-SUBRC = 0 (success)&lt;/P&gt;&lt;P&gt;     SY-SUBRC = 4 (failure)&lt;/P&gt;&lt;P&gt;     SY-SUBRC = 8 (unknow error )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 10:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2123619#M445457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T10:00:10Z</dc:date>
    </item>
  </channel>
</rss>

