<?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 upto 1 rows in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706172#M1105673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the following statement possible to re-write using UPTO 1 ROWS instead of using select single?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT *            FROM tcurf INTO TABLE i_tcurf&lt;/P&gt;&lt;P&gt;                              FOR ALL ENTRIES IN i_t005&lt;/P&gt;&lt;P&gt;                              WHERE          kurst = 'M'&lt;/P&gt;&lt;P&gt;                              AND            fcurr = i_t005-waers&lt;/P&gt;&lt;P&gt;                              AND            tcurr = gv_curr&lt;/P&gt;&lt;P&gt;                              AND            gdatu =&amp;gt; w_likp-erdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2008 04:15:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-03T04:15:41Z</dc:date>
    <item>
      <title>upto 1 rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706172#M1105673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the following statement possible to re-write using UPTO 1 ROWS instead of using select single?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT *            FROM tcurf INTO TABLE i_tcurf&lt;/P&gt;&lt;P&gt;                              FOR ALL ENTRIES IN i_t005&lt;/P&gt;&lt;P&gt;                              WHERE          kurst = 'M'&lt;/P&gt;&lt;P&gt;                              AND            fcurr = i_t005-waers&lt;/P&gt;&lt;P&gt;                              AND            tcurr = gv_curr&lt;/P&gt;&lt;P&gt;                              AND            gdatu =&amp;gt; w_likp-erdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 04:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706172#M1105673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T04:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: upto 1 rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706173#M1105674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap-img.com/abap/difference-between-select-single-and-select-upto-one-rows.htm" target="test_blank"&gt;http://sap-img.com/abap/difference-between-select-single-and-select-upto-one-rows.htm&lt;/A&gt;&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;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 04:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706173#M1105674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T04:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: upto 1 rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706174#M1105675</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;Even though it has many entries...that matches your condition,  if you use UP TO 1 ROWS i will select the first row from that matching condition.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its based on your requirement.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 04:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706174#M1105675</guid>
      <dc:creator>raja_narayanan2</dc:creator>
      <dc:date>2008-11-03T04:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: upto 1 rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706175#M1105676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Is the following statement possible to re-write using UPTO 1 ROWS instead of using select single?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;  SELECT *            FROM tcurf INTO TABLE i_tcurf&lt;/P&gt;&lt;P&gt;&amp;gt;                               FOR ALL ENTRIES IN i_t005&lt;/P&gt;&lt;P&gt;&amp;gt;                               WHERE          kurst = 'M'&lt;/P&gt;&lt;P&gt;&amp;gt;                               AND            fcurr = i_t005-waers&lt;/P&gt;&lt;P&gt;&amp;gt;                               AND            tcurr = gv_curr&lt;/P&gt;&lt;P&gt;&amp;gt;                               AND            gdatu =&amp;gt; w_likp-erdat.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Please help.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi sap_kolkata06,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Yes the statement written by you can be rewritten using the addition upto 1 rows. There is not harm in writting so. It will only output a single record in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 04:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706175#M1105676</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2008-11-03T04:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: upto 1 rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706176#M1105677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For performance perspective, i suggest you to go for select single option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 04:40:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706176#M1105677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T04:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: upto 1 rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706177#M1105678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are having all the Key Fields for the where condition  you can use select single Statement.&lt;/P&gt;&lt;P&gt;If you are not having all the key fields it  is good to use UP TO 1 rows for better performance.it will not show warning message in the extended check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both will retrieve only one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your case you can use select single statement since all the Key fields are used in the where condition.&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;Raghu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: dearvirus on Nov 3, 2008 6:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 13:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upto-1-rows/m-p/4706177#M1105678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T13:08:55Z</dc:date>
    </item>
  </channel>
</rss>

