<?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/2004346#M408401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me, how many values system variable SY-SUBRC may have.&lt;/P&gt;&lt;P&gt;And what are the significance of each values and at which condition, what value will be fired ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2007 05:19:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-27T05:19:18Z</dc:date>
    <item>
      <title>SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004346#M408401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me, how many values system variable SY-SUBRC may have.&lt;/P&gt;&lt;P&gt;And what are the significance of each values and at which condition, what value will be fired ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004346#M408401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004347#M408402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Return Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC&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;Regards,&lt;/P&gt;&lt;P&gt;Pavan P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004347#M408402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004348#M408403</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;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;&amp;lt;b&amp;gt;ASSIGN&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if assignment to field symbol is possible, otherwise 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ASSIGN &amp;lt;dref&amp;gt;-&amp;gt;*&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if dereferencing is possible, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AUTHORITY-CHECK&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL DIALOG with USING&amp;lt;/b&amp;gt; sets SY-SUBRC to 0, if processing was successful, otherwise &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL FUNCTION&amp;lt;/b&amp;gt; sets SY-SUBRC according to the exception handling. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL METHOD&amp;lt;/b&amp;gt; sets SY-SUBRC according to the exception handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL SELECTION-SCREEN&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL TRANSACTION with USING&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if processing was successful, otherwise &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CATCH SYSTEM-EXCEPTIONS&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;COMMIT WORK&amp;lt;/b&amp;gt; sets SY-SUBRC to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;COMMIT WORK AND WAIT&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if update was successful, otherwise &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;COMMUNICATION INIT DESTINATION &amp;#133; RETURNCODE&amp;lt;/b&amp;gt; sets SY-SUBRC as specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONCATENATE&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if the result fits into target variable, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CREATE OBJECT&amp;lt;/b&amp;gt; sets SY-SUBRC if the exceptions of the instance constructor are handled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CREATE OBJECT&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DELETE&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DEMAND &amp;#133; MESSAGES INTO&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if a message table is empty, otherwise &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DESCRIBE LIST&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if row or list exists, otherwise 4 or 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EXEC SQL - ENDEXEC&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FETCH&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if at least one row was read, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;GENERATE SUBROUTINE POOL&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if generation was successful, otherwise 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;GET CURSOR&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if the cursor is correctly positioned, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;GET PARAMETER&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if value found in SAP Memory, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IMPORT&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if import of data objects was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IMPORT&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if import of data objects was successful, otherwise 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOAD REPORT&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if the operation was successful, otherwise 4 or 8 depending on cause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOOP&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if loop over extract was passed at least once, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOOP AT&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if loop over internal table was passed at least once, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODIFY&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODIFY LINE&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if list row was changed, otherwise &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODIFY&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OLE2 automation,&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OPEN DATASET&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if the file was opened, otherwise 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Open SQL&amp;lt;/b&amp;gt; commands set SY-SUBRC to 0 if operation was successful, otherwise &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OVERLAY&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if at least one character is overlayed, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ DATASET&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if the read operation was successful, otherwise 4 or 8 depending on cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ LINE&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if list row exists, otherwise &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ TABLE&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if the table row was found, otherwise 2, 4, 8 depending on cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REPLACE&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if search string could be replaced, otherwise &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ROLLBACK&amp;lt;/b&amp;gt; WORK always sets SY-SUBRC to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SCROLL&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if scrolling in list successful, otherwise 4 or 8 depending on cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SEARCH&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if search string was found, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET COUNTRY&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if country ID was found in table T005X, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET BIT&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if bit was set, otherwise &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET TITLEBAR&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if title exists, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SHIFT &amp;#133; UP TO&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if position was found in character string, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SPLIT&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if size of target fields is sufficient, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;UPDATE&amp;lt;/b&amp;gt; sets SY-SUBRC to 0 if operation successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WRITE &amp;#133; TO&amp;lt;/b&amp;gt; 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;Reward if helpful.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004348#M408403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:22: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/2004349#M408404</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;Go through the following thread.&lt;/P&gt;&lt;P&gt;You will get sufficient information provided there.&lt;/P&gt;&lt;P&gt;/community &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;P&gt;threadID=354063&amp;amp;messageID=3201627#3201627&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004349#M408404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004350#M408405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a big list.. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004350#M408405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:27: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/2004351#M408406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  see this thrid.&lt;/P&gt;&lt;P&gt;   the values that have generally 0,4,8. Depending on context it will come.&lt;/P&gt;&lt;P&gt; but in case of function modules u can get any value whar ever u handle for exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC&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;for different statements&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;&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;&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;&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;&lt;/P&gt;&lt;P&gt;CALL FUNCTION sets SY-SUBRC according to the exception handling. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD sets SY-SUBRC according to the exception handling.&lt;/P&gt;&lt;P&gt;&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;&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;&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;&lt;/P&gt;&lt;P&gt;COMMIT WORK sets SY-SUBRC to 0.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;COMMUNICATION INIT DESTINATION &amp;#133; RETURNCODE sets SY-SUBRC as specified.&lt;/P&gt;&lt;P&gt;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&lt;/P&gt;&lt;P&gt;MODIFY sets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;MODIFY sets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&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;&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;&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;&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;&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;&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;&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;&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;&lt;/P&gt;&lt;P&gt;ROLLBACK WORK always sets SY-SUBRC to 0.&lt;/P&gt;&lt;P&gt;&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;&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;&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;&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;&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;&lt;/P&gt;&lt;P&gt;SET TITLEBAR sets SY-SUBRC to 0 if title exists, otherwise 4.&lt;/P&gt;&lt;P&gt;&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;&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;&lt;/P&gt;&lt;P&gt;UPDATE sets SY-SUBRC to 0 if operation successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&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;Message was edited by: &lt;/P&gt;&lt;P&gt;        sunil kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        sunil kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004351#M408406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: SY-SUBRC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004352#M408407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sangram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SY-SUBRC will contain 0 when the above statement get successfully executed, if the statement is not successfully executed then it contains the value 4.&lt;/P&gt;&lt;P&gt;I think I have answered your doubt.&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Vipin Das&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 05:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-subrc/m-p/2004352#M408407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T05:29:31Z</dc:date>
    </item>
  </channel>
</rss>

