<?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: sql Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890386#M372882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Murthy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its all depends on the statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC&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;·        ASSIGNsets 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 dref-&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;·        DELETEsets SY-SUBRC to 0 if 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;·        FETCHsets 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;·        IMPORTsets 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;·        INSERTsets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        LOAD REPORT sets SY-SUBRC to 0 if operation was successful, otherwise 4 or 8 depending on cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        LOOPsets 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 ATsets 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;·        MODIFYsets 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;·        MODIFYsets 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;·        OVERLAYsets 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;·        REPLACEsets 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;·        SCROLLsets 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;·        SEARCHsets SY-SUBRC to 0 if search string was found, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        SELECTsets 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 BITsets 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;·        SPLITsets 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;·        UPDATEsets 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;Cheers&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jan 2007 20:18:21 GMT</pubDate>
    <dc:creator>Manohar2u</dc:creator>
    <dc:date>2007-01-13T20:18:21Z</dc:date>
    <item>
      <title>sql Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890385#M372881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0 means it contains values in database,&lt;/P&gt;&lt;P&gt;                eq 4 Means It contains NO values ,&lt;/P&gt;&lt;P&gt;What About For 8,12 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs ,&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 20:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890385#M372881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-13T20:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: sql Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890386#M372882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Murthy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its all depends on the statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC&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;·        ASSIGNsets 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 dref-&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;·        DELETEsets SY-SUBRC to 0 if 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;·        FETCHsets 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;·        IMPORTsets 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;·        INSERTsets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        LOAD REPORT sets SY-SUBRC to 0 if operation was successful, otherwise 4 or 8 depending on cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        LOOPsets 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 ATsets 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;·        MODIFYsets 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;·        MODIFYsets 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;·        OVERLAYsets 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;·        REPLACEsets 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;·        SCROLLsets 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;·        SEARCHsets SY-SUBRC to 0 if search string was found, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        SELECTsets 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 BITsets 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;·        SPLITsets 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;·        UPDATEsets 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;Cheers&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 20:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890386#M372882</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2007-01-13T20:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: sql Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890387#M372883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sy-Subrc has many meanings  base on the contex it is used. See the below notes for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC&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;· ASSIGNsets 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 dref-&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;· DELETEsets SY-SUBRC to 0 if 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;· FETCHsets 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;· IMPORTsets 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;· INSERTsets SY-SUBRC to 0 if operation was successful, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· LOAD REPORT sets SY-SUBRC to 0 if operation was successful, otherwise 4 or 8 depending on cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· LOOPsets 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 ATsets 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;· MODIFYsets 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;· MODIFYsets 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;· OVERLAYsets 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;· REPLACEsets 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;· SCROLLsets 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;· SEARCHsets SY-SUBRC to 0 if search string was found, otherwise 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· SELECTsets 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 BITsets 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;· SPLITsets 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;· UPDATEsets 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;- Guru&lt;/P&gt;&lt;P&gt;Reward points for helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 20:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890387#M372883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-13T20:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: sql Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890388#M372884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sy-subrc has been discussed in detail in below thread. Please refer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2214691"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jan 2007 02:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890388#M372884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-14T02:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: sql Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890389#M372885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-SUBRC = 8: &lt;/P&gt;&lt;P&gt;No entry was read. &lt;/P&gt;&lt;P&gt;This return code only occurs with a SORTED TABLE or a STANDARD TABLE with the BINARY SEARCH addition. SY-TABIX is set to the number of all entries plus 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jan 2007 05:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/1890389#M372885</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-01-14T05:42:38Z</dc:date>
    </item>
  </channel>
</rss>

