<?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: SELECT AND ENDSELECT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158776#M456408</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 the Select, it is checking for a reocrd which is equal to l_device, if that is success then it will exit from that select and in the header of the table TRP03L will contain a record which is equals to L_DEVICE.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2007 07:26:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-02T07:26:23Z</dc:date>
    <item>
      <title>SELECT AND ENDSELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158774#M456406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am debugging one report.&lt;/P&gt;&lt;P&gt;In that report some select statements are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If  itab is initial.&lt;/P&gt;&lt;P&gt;Select * from tsp03l where padest =  l_device.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me its meaning.&lt;/P&gt;&lt;P&gt;What is the purpose of exit statement here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Anil.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 07:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158774#M456406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T07:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND ENDSELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158775#M456407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   exit will come out of the select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 07:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158775#M456407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T07:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND ENDSELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158776#M456408</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 the Select, it is checking for a reocrd which is equal to l_device, if that is success then it will exit from that select and in the header of the table TRP03L will contain a record which is equals to L_DEVICE.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 07:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158776#M456408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T07:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND ENDSELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158777#M456409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When a record is found , then it comes out of the loop of select..endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 07:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158777#M456409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T07:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND ENDSELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158778#M456410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If itab[] is initial.&lt;/P&gt;&lt;P&gt;Select * from tsp03l where padest = l_device.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT statement will exit from the select statement when it had found the value of l_device in the table tsp03l&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 07:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158778#M456410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T07:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND ENDSELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158779#M456411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select * ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does it actually means ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it select all the records from all the field accoring to the where condition that you have given....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and endselect....is just acts as a loop for selecting all the records... so using exit... if you write then the executuion of the select query will be ended if the record is found out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please award if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 07:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158779#M456411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T07:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND ENDSELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158780#M456412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;           If the record is found.&lt;/P&gt;&lt;P&gt; i.e. if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    exit statement will be executed and compiler&lt;/P&gt;&lt;P&gt;       will come out from select...endselect  loop.&lt;/P&gt;&lt;P&gt;this means that it will check for any other value further.&lt;/P&gt;&lt;P&gt;Exit statement  bring the compiler out of loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;then select...endselect loop will be continue...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 07:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158780#M456412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T07:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT AND ENDSELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158781#M456413</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;This statements are used to get  Long/short device names for Spools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab is inital it is checking db table comparing variable l_device &lt;/P&gt;&lt;P&gt;for it is getting db fields if found and then exiting the select. means if data is selected tsp03l stru will contain data, this data would have used in further codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 07:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-endselect/m-p/2158781#M456413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T07:45:03Z</dc:date>
    </item>
  </channel>
</rss>

