<?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: return codes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467078#M554169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pandu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on the result of that ABAP statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the return code is checked using sy-subrc and its value is 0 when the command is succesful and all other times the command is unsuccessful but each value has there own meaning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2007 06:16:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-02T06:16:54Z</dc:date>
    <item>
      <title>return codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467076#M554167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pls,&lt;/P&gt;&lt;P&gt;    in abap program what r all the statements give return code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 05:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467076#M554167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T05:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: return codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467077#M554168</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 return code value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 At least one line was read. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 No lines were read. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 8 The search key was not fully qualified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;STRONG&gt;please reward points if the information is helpful to you&lt;/STRONG&gt;*************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 06:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467077#M554168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T06:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: return codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467078#M554169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pandu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on the result of that ABAP statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the return code is checked using sy-subrc and its value is 0 when the command is succesful and all other times the command is unsuccessful but each value has there own meaning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 06:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467078#M554169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T06:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: return codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467079#M554170</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;All the DB related stetementsl ike INSET, SELECT, MODIFY and DELETE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the Internal table realted statements like READ, APPEND, INSERT, MODIFY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules, Class methods(Not PERFORM's) if they are called using EXCEPTIONS addition and if you assign numbers to the exceptions in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above are some of the most used.&lt;/P&gt;&lt;P&gt;Its hardto list all the ABAP statements that effect sy-subrc what you can do is just press F1 on any KEY WORD for which you want to know and it gives wether this effects sy-subrc or not&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 06:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467079#M554170</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-02T06:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: return codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467080#M554171</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;The statements which give return code are : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select, insert,modify,read, append, update,delete,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the above return sy-subrc.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 06:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467080#M554171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T06:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: return codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467081#M554172</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;if return is 0 it run successfully &lt;/P&gt;&lt;P&gt;if return is 4 it not run successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 06:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467081#M554172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T06:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: return codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467082#M554173</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;in abap all most all open sql statements which r used on internal tables returns return value for ex: SELECT, INSERT, UPDATE, DELETE MODIFY, APPEND returns return value as 0, 4,8,........... based on situation and condition where they are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: SELECT * FROM MARA INTO TABLE ITAB WHERE MATNR = S_MATNR.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;              WRITE:/10 'SUCCESS'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;             WRITE:/10 'FAILURE OF SELECT STATEMENT'.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some 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>Mon, 02 Jul 2007 06:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-codes/m-p/2467082#M554173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T06:25:25Z</dc:date>
    </item>
  </channel>
</rss>

