<?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/2473502#M556422</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&lt;/P&gt;&lt;P&gt;Return code, set by the following ABAP statements. As a rule, if SY-SUBRC = 0, the statement&lt;/P&gt;&lt;P&gt;was executed successfully.&lt;/P&gt;&lt;P&gt;  ASSIGN sets SY-SUBRC to 0 if the field symbol assignment was possible, otherwise to 4.&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK sets SY-SUBRC to 0 if the user has the required authorization,&lt;/P&gt;&lt;P&gt;otherwise to 4, 8, 12, 16, 24, 28, 32, or 36 depending on the cause of the authorization&lt;/P&gt;&lt;P&gt;failure.&lt;/P&gt;&lt;P&gt;  CALL DIALOG with USING sets SY-SUBRC to 0 if the processing is successful, otherwise to&lt;/P&gt;&lt;P&gt;a value other than 0.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION sets SY-SUBRC in accordance with the defined exception handling.&lt;/P&gt;&lt;P&gt;  CALL METHOD sets SY-SUBRC in accordance with the defined exception handling.&lt;/P&gt;&lt;P&gt;  CALL SELECTION-SCREEN sets SY-SUBRC to 0 if the user chooses Enter or Execute, and&lt;/P&gt;&lt;P&gt;4 if the user chooses Cancel.&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION with USING sets SY-SUBRC to 0 if the processing is successful,&lt;/P&gt;&lt;P&gt;otherwise to a value other than 0.&lt;/P&gt;&lt;P&gt;  CATCH SYSTEM-EXCEPTIONS sets SY-SUBRC after the ENDCATCH statement if a&lt;/P&gt;&lt;P&gt;system exception occurs. The value is set 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 the update is successful, otherwise to a&lt;/P&gt;&lt;P&gt;value other than 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 the target variable, otherwise to 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;in the program.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT in OLE2 sets SY-SUBRC to 0 if an external object could be created,&lt;/P&gt;&lt;P&gt;otherwise to 1, 2, or 3, depending on the cause.&lt;/P&gt;&lt;P&gt;  DELETE sets SY-SUBRC to 0 if the operation is successful, otherwise to 4 or another value&lt;/P&gt;&lt;P&gt;other than 0, depending on the cause.&lt;/P&gt;&lt;P&gt;  DEMAND &amp;#133; MESSAGES INTO sets SY-SUBRC to 0 if the message table is empty,&lt;/P&gt;&lt;P&gt;otherwise to a value other than 0.&lt;/P&gt;&lt;P&gt;  DESCRIBE LIST sets SY-SUBRC to 0 if the line or list exists, otherwise to 4 or 8.&lt;/P&gt;&lt;P&gt;  EXEC SQL - ENDEXEC sets SY-SUBRC to 0 in nearly all cases. It does, however, set SYSUBRC&lt;/P&gt;&lt;P&gt;to 4 if no entry is read in a FETCH statement.&lt;/P&gt;&lt;P&gt;  FETCH sets SY-SUBRC to 0 if at least one line was read, otherwise to 4.&lt;/P&gt;&lt;P&gt;  GENERATE SUBROUTINE POOL sets SY-SUBRC to 0 if the generation was successful,&lt;/P&gt;&lt;P&gt;otherwise to 8.&lt;/P&gt;&lt;P&gt;  GET CURSOR sets SY-SUBRC to 0 if the cursor is correctly positioned, otherwise to 4.&lt;/P&gt;&lt;P&gt;  GET PARAMETER sets SY-SUBRC to 0 if a corresponding value exists in SAP memory,&lt;/P&gt;&lt;P&gt;otherwise to 4.&lt;/P&gt;&lt;P&gt;  IMPORT sets SY-SUBRC to 0 if the import is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  INSERT sets SY-SUBRC to 0 if the operation is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  LOAD REPORT sets SY-SUBRC to 0 if the operation is successful, otherwise to 4 or 8&lt;/P&gt;&lt;P&gt;depending on the cause of the error.&lt;/P&gt;&lt;P&gt;  LOOP sets SY-SUBRC to 0 if there is at least one pass through the extract. Otherwise, it is&lt;/P&gt;&lt;P&gt;set to a value other than 0.&lt;/P&gt;&lt;P&gt;  LOOP AT sets SY-SUBRC to 0 if there is at least one loop pass through the internal table,&lt;/P&gt;&lt;P&gt;otherwise to 4.&lt;/P&gt;&lt;P&gt;  MODIFY sets SY-SUBRC to 0 if the operation is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  MODIFY LINE sets SY-SUBRC to 0 if a line in the list was changed, otherwise it sets it to a&lt;/P&gt;&lt;P&gt;value other than 0.&lt;/P&gt;&lt;P&gt;  MODIFY sets SY-SUBRC to 0 if the operation is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  OLE2 Automation: Bundled commands set SY-SUBRC to 0 if all commands could be&lt;/P&gt;&lt;P&gt;executed successfully, otherwise 1, 2, 3, or 4, depending on the cause of the error.&lt;/P&gt;&lt;P&gt;  OPEN DATASET sets SY-SUBRC to 0 if the file could be opened, otherwise to 8.&lt;/P&gt;&lt;P&gt;  Open SQL statements set SY-SUBRC to 0 if the operation is successful, otherwise to a value&lt;/P&gt;&lt;P&gt;other than 0.&lt;/P&gt;&lt;P&gt;  OVERLAY sets SY-SUBRC to 0 if at least one character is overlaid, otherwise to 4.&lt;/P&gt;&lt;P&gt;  READ DATASET sets SY-SUBRC to 0 if the read operation was successful, otherwise to 4&lt;/P&gt;&lt;P&gt;or 8, depending on the cause of the error.&lt;/P&gt;&lt;P&gt;  READ LINE sets SY-SUBRC to 0 if a list line exists, otherwise to a value other than 0.&lt;/P&gt;&lt;P&gt;  READ TABLE sets SY-SUBRC to 0 if table lines are found, otherwise to 2, 4, or 8, depending&lt;/P&gt;&lt;P&gt;on the context and cause of the error.&lt;/P&gt;&lt;P&gt;  REPLACE sets SY-SUBRC to 0 if the search string was replaced, otherwise to a value other&lt;/P&gt;&lt;P&gt;than 0.&lt;/P&gt;&lt;P&gt;  SCROLL sets SY-SUBRC to 0 if the scrolling within the list was successful, otherwise to 4 or&lt;/P&gt;&lt;P&gt;8, depending on the cause.&lt;/P&gt;&lt;P&gt;  SEARCH sets SY-SUBRC to 0 if the search string was found, otherwise to 4.&lt;/P&gt;&lt;P&gt;  SELECT sets SY-SUBRC to 0 if at least one line was read, otherwise to 4, or possibly 8 in&lt;/P&gt;&lt;P&gt;SELECT SINGLE FOR UPDATE.&lt;/P&gt;&lt;P&gt;  SET COUNTRY sets SY-SUBRC if the country code exists in table T005X, otherwise to 4.&lt;/P&gt;&lt;P&gt;  SET BIT sets SY-SUBRC to 0 if the bit could be set, otherwise to a value other than 0.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR sets SY-SUBRC to 0 if the title exists, otherwise to 4.&lt;/P&gt;&lt;P&gt;  SHIFT &amp;#133; UP TO sets SY-SUBRC to 0 if the position could be found within the string,&lt;/P&gt;&lt;P&gt;otherwise to 4.&lt;/P&gt;&lt;P&gt;  SPLIT sets SY-SUBRC to 0 if the sizes of the target fields are adequate, otherwise to 4.&lt;/P&gt;&lt;P&gt;  UPDATE sets SY-SUBRC to 0 if the operation is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  WRITE &amp;#133; TO sets SY-SUBRC to 0 if the assignment is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2007 09:23:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-03T09:23:54Z</dc:date>
    <item>
      <title>Sy-subrc values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/2473496#M556416</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; Can any one let me know the values of Sy-subrc and its meaning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;Jareer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/2473496#M556416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:08:01Z</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/2473497#M556417</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;Field:SY-SUBRC&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;Return value of many ABAP statements. In general, the content 0 means that the statement was executed without problem. Depending on with which statement sy-subrc was set, the error cause can be derived from the respective value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/2473497#M556417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:09:01Z</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/2473498#M556418</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 gives the return code of the previous statement.&lt;/P&gt;&lt;P&gt;sy-subrc = 0 means its true and its executed correctly.&lt;/P&gt;&lt;P&gt;sy-subrc = 4 means there is an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/2473498#M556418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:10:00Z</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/2473499#M556419</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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/2473499#M556419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:10:55Z</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/2473500#M556420</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 subrc variable is used to indicate if a function module or another command in ABAP was successful. &lt;/P&gt;&lt;P&gt;The value of sy-subrc depends on the place where it occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example a command like SELECT is giving a sy-subrc = 4 if no entry was found in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another example is that function module can raise exceptions. If the caller of the function is catching the exceptions, a number is assigned to the exceptions. Whenever the function module is raising the particular exception the sy-subrc in the calling programm is set to this number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally the sy-subrc should be 0 if everything is ok. But for sure there are some exceptions in the ABAP world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Timo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/2473500#M556420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:12:50Z</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/2473501#M556421</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 variable which holds the value of execution of previous statement.&lt;/P&gt;&lt;P&gt;when an statement is executed it has two values.&lt;/P&gt;&lt;P&gt;i.e the statement is executed or not. that value is  maintained by sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc eq 0 // statement executed successfully.&lt;/P&gt;&lt;P&gt;sy-subrc ne 0 // statement not executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;depending on the statement sy-subrc has many values as 0, 2, 4, 8 ,............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table itab where matnr in p_matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0. // if records available with given condition.&lt;/P&gt;&lt;P&gt;       ...............&lt;/P&gt;&lt;P&gt;else.  // no records found with given condition in database table.&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;if useful reward so9me points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/2473501#M556421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:23:20Z</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/2473502#M556422</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&lt;/P&gt;&lt;P&gt;Return code, set by the following ABAP statements. As a rule, if SY-SUBRC = 0, the statement&lt;/P&gt;&lt;P&gt;was executed successfully.&lt;/P&gt;&lt;P&gt;  ASSIGN sets SY-SUBRC to 0 if the field symbol assignment was possible, otherwise to 4.&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK sets SY-SUBRC to 0 if the user has the required authorization,&lt;/P&gt;&lt;P&gt;otherwise to 4, 8, 12, 16, 24, 28, 32, or 36 depending on the cause of the authorization&lt;/P&gt;&lt;P&gt;failure.&lt;/P&gt;&lt;P&gt;  CALL DIALOG with USING sets SY-SUBRC to 0 if the processing is successful, otherwise to&lt;/P&gt;&lt;P&gt;a value other than 0.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION sets SY-SUBRC in accordance with the defined exception handling.&lt;/P&gt;&lt;P&gt;  CALL METHOD sets SY-SUBRC in accordance with the defined exception handling.&lt;/P&gt;&lt;P&gt;  CALL SELECTION-SCREEN sets SY-SUBRC to 0 if the user chooses Enter or Execute, and&lt;/P&gt;&lt;P&gt;4 if the user chooses Cancel.&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION with USING sets SY-SUBRC to 0 if the processing is successful,&lt;/P&gt;&lt;P&gt;otherwise to a value other than 0.&lt;/P&gt;&lt;P&gt;  CATCH SYSTEM-EXCEPTIONS sets SY-SUBRC after the ENDCATCH statement if a&lt;/P&gt;&lt;P&gt;system exception occurs. The value is set 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 the update is successful, otherwise to a&lt;/P&gt;&lt;P&gt;value other than 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 the target variable, otherwise to 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;in the program.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT in OLE2 sets SY-SUBRC to 0 if an external object could be created,&lt;/P&gt;&lt;P&gt;otherwise to 1, 2, or 3, depending on the cause.&lt;/P&gt;&lt;P&gt;  DELETE sets SY-SUBRC to 0 if the operation is successful, otherwise to 4 or another value&lt;/P&gt;&lt;P&gt;other than 0, depending on the cause.&lt;/P&gt;&lt;P&gt;  DEMAND &amp;#133; MESSAGES INTO sets SY-SUBRC to 0 if the message table is empty,&lt;/P&gt;&lt;P&gt;otherwise to a value other than 0.&lt;/P&gt;&lt;P&gt;  DESCRIBE LIST sets SY-SUBRC to 0 if the line or list exists, otherwise to 4 or 8.&lt;/P&gt;&lt;P&gt;  EXEC SQL - ENDEXEC sets SY-SUBRC to 0 in nearly all cases. It does, however, set SYSUBRC&lt;/P&gt;&lt;P&gt;to 4 if no entry is read in a FETCH statement.&lt;/P&gt;&lt;P&gt;  FETCH sets SY-SUBRC to 0 if at least one line was read, otherwise to 4.&lt;/P&gt;&lt;P&gt;  GENERATE SUBROUTINE POOL sets SY-SUBRC to 0 if the generation was successful,&lt;/P&gt;&lt;P&gt;otherwise to 8.&lt;/P&gt;&lt;P&gt;  GET CURSOR sets SY-SUBRC to 0 if the cursor is correctly positioned, otherwise to 4.&lt;/P&gt;&lt;P&gt;  GET PARAMETER sets SY-SUBRC to 0 if a corresponding value exists in SAP memory,&lt;/P&gt;&lt;P&gt;otherwise to 4.&lt;/P&gt;&lt;P&gt;  IMPORT sets SY-SUBRC to 0 if the import is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  INSERT sets SY-SUBRC to 0 if the operation is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  LOAD REPORT sets SY-SUBRC to 0 if the operation is successful, otherwise to 4 or 8&lt;/P&gt;&lt;P&gt;depending on the cause of the error.&lt;/P&gt;&lt;P&gt;  LOOP sets SY-SUBRC to 0 if there is at least one pass through the extract. Otherwise, it is&lt;/P&gt;&lt;P&gt;set to a value other than 0.&lt;/P&gt;&lt;P&gt;  LOOP AT sets SY-SUBRC to 0 if there is at least one loop pass through the internal table,&lt;/P&gt;&lt;P&gt;otherwise to 4.&lt;/P&gt;&lt;P&gt;  MODIFY sets SY-SUBRC to 0 if the operation is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  MODIFY LINE sets SY-SUBRC to 0 if a line in the list was changed, otherwise it sets it to a&lt;/P&gt;&lt;P&gt;value other than 0.&lt;/P&gt;&lt;P&gt;  MODIFY sets SY-SUBRC to 0 if the operation is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  OLE2 Automation: Bundled commands set SY-SUBRC to 0 if all commands could be&lt;/P&gt;&lt;P&gt;executed successfully, otherwise 1, 2, 3, or 4, depending on the cause of the error.&lt;/P&gt;&lt;P&gt;  OPEN DATASET sets SY-SUBRC to 0 if the file could be opened, otherwise to 8.&lt;/P&gt;&lt;P&gt;  Open SQL statements set SY-SUBRC to 0 if the operation is successful, otherwise to a value&lt;/P&gt;&lt;P&gt;other than 0.&lt;/P&gt;&lt;P&gt;  OVERLAY sets SY-SUBRC to 0 if at least one character is overlaid, otherwise to 4.&lt;/P&gt;&lt;P&gt;  READ DATASET sets SY-SUBRC to 0 if the read operation was successful, otherwise to 4&lt;/P&gt;&lt;P&gt;or 8, depending on the cause of the error.&lt;/P&gt;&lt;P&gt;  READ LINE sets SY-SUBRC to 0 if a list line exists, otherwise to a value other than 0.&lt;/P&gt;&lt;P&gt;  READ TABLE sets SY-SUBRC to 0 if table lines are found, otherwise to 2, 4, or 8, depending&lt;/P&gt;&lt;P&gt;on the context and cause of the error.&lt;/P&gt;&lt;P&gt;  REPLACE sets SY-SUBRC to 0 if the search string was replaced, otherwise to a value other&lt;/P&gt;&lt;P&gt;than 0.&lt;/P&gt;&lt;P&gt;  SCROLL sets SY-SUBRC to 0 if the scrolling within the list was successful, otherwise to 4 or&lt;/P&gt;&lt;P&gt;8, depending on the cause.&lt;/P&gt;&lt;P&gt;  SEARCH sets SY-SUBRC to 0 if the search string was found, otherwise to 4.&lt;/P&gt;&lt;P&gt;  SELECT sets SY-SUBRC to 0 if at least one line was read, otherwise to 4, or possibly 8 in&lt;/P&gt;&lt;P&gt;SELECT SINGLE FOR UPDATE.&lt;/P&gt;&lt;P&gt;  SET COUNTRY sets SY-SUBRC if the country code exists in table T005X, otherwise to 4.&lt;/P&gt;&lt;P&gt;  SET BIT sets SY-SUBRC to 0 if the bit could be set, otherwise to a value other than 0.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR sets SY-SUBRC to 0 if the title exists, otherwise to 4.&lt;/P&gt;&lt;P&gt;  SHIFT &amp;#133; UP TO sets SY-SUBRC to 0 if the position could be found within the string,&lt;/P&gt;&lt;P&gt;otherwise to 4.&lt;/P&gt;&lt;P&gt;  SPLIT sets SY-SUBRC to 0 if the sizes of the target fields are adequate, otherwise to 4.&lt;/P&gt;&lt;P&gt;  UPDATE sets SY-SUBRC to 0 if the operation is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;  WRITE &amp;#133; TO sets SY-SUBRC to 0 if the assignment is successful, otherwise to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc-values/m-p/2473502#M556422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:23:54Z</dc:date>
    </item>
  </channel>
</rss>

