<?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: regarding this select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-this-select-statement/m-p/2614150#M599894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- This Statement is going to call the Subroutine called rajesh&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform rajesh.&lt;/P&gt;&lt;P&gt;*-- This Form.. endForm is the Subroutine definition&lt;/P&gt;&lt;P&gt;from rajesh.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*--  Select the fields xxxx can be any fiedls from the table XXXX &lt;/P&gt;&lt;P&gt;where the field   XXXX is equal the value in the field XXXX.&lt;/P&gt;&lt;P&gt;if it finds one such entry in the table then come out of the select statment no more loop into the select.&lt;/P&gt;&lt;P&gt;select ... endselect will select one record at a time and loops. .. here you are using exit so when this select finds one record then it will come out of the loop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select xxxx xxxx xxxx from table XXXX where XXXX = XXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- if the select finds an entry in vbap for sales order number 123456 then it will come out&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;select vbeln posrn from vbap where vbeln = '123456'.&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;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Aug 2007 14:46:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-04T14:46:37Z</dc:date>
    <item>
      <title>regarding this select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-this-select-statement/m-p/2614148#M599892</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;       please explain this code clearly.&lt;/P&gt;&lt;P&gt;perform rajesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from rajesh.&lt;/P&gt;&lt;P&gt;           select xxxx xxxx xxxx from table XXXX where XXXX = XXXX&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;           exit.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;          endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 14:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-this-select-statement/m-p/2614148#M599892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T14:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding this select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-this-select-statement/m-p/2614149#M599893</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;select xxxx xxxx xxxx from table XXXX where XXXX = XXXX&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;&lt;/P&gt;&lt;P&gt;In the Where clause, if XXXX = XXXX (If these both fields are same) then the select will be exited.&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>Sat, 04 Aug 2007 14:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-this-select-statement/m-p/2614149#M599893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: regarding this select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-this-select-statement/m-p/2614150#M599894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- This Statement is going to call the Subroutine called rajesh&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform rajesh.&lt;/P&gt;&lt;P&gt;*-- This Form.. endForm is the Subroutine definition&lt;/P&gt;&lt;P&gt;from rajesh.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*--  Select the fields xxxx can be any fiedls from the table XXXX &lt;/P&gt;&lt;P&gt;where the field   XXXX is equal the value in the field XXXX.&lt;/P&gt;&lt;P&gt;if it finds one such entry in the table then come out of the select statment no more loop into the select.&lt;/P&gt;&lt;P&gt;select ... endselect will select one record at a time and loops. .. here you are using exit so when this select finds one record then it will come out of the loop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select xxxx xxxx xxxx from table XXXX where XXXX = XXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- if the select finds an entry in vbap for sales order number 123456 then it will come out&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;select vbeln posrn from vbap where vbeln = '123456'.&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;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 14:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-this-select-statement/m-p/2614150#M599894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T14:46:37Z</dc:date>
    </item>
  </channel>
</rss>

