<?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 upto in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824073#M919635</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;if you are using primary key, you can as well use select single... instead of select-upto 1 rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhumitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2008 09:35:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-13T09:35:24Z</dc:date>
    <item>
      <title>select upto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824072#M919634</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;I want to select one row in table vbfa depending on invoice number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since invoice number is one of the primary fields, query will return multiple rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to select any one row and depending on another key fields value I want to write logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from vbfa into ws_vbeln where vbeln = ws_vbeln upto 1 rows.&lt;/P&gt;&lt;P&gt;If vbfa-vbtrp_n = 'A' .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this okay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 09:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824072#M919634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T09:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: select upto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824073#M919635</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;if you are using primary key, you can as well use select single... instead of select-upto 1 rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhumitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 09:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824073#M919635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: select upto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824074#M919636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select * from vbfa into table itab where vbeln = ws_vbeln .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;If  itab-vbtrp_n = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_finla-vbtrp_n =  itab-vbtrp_n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif  itab-vbtrp_n  = 'B'.&lt;/P&gt;&lt;P&gt;it_finla-vbtrp_n =  itab-vbtrp_n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif  itab-vbtrp_n = 'C'.&lt;/P&gt;&lt;P&gt;it_finla-vbtrp_n = itab-vbtrp_n.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 09:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824074#M919636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T09:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: select upto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824075#M919637</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 * from vbfa into ws_vbeln where vbeln = ws_vbeln upto 1 rows.&lt;/P&gt;&lt;P&gt;If vbfa-vbtrp_n = 'A' .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will work alternatively &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single * from vbfa into ws_vbeln where vbeln = ws_vbeln .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 09:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824075#M919637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T09:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: select upto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824076#M919638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can write in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Select * from vbfa into ws_vbeln*&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;upto 1 rows&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where vbeln = fs_vbeln&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and  vbfa-vbtrp_n = 'A' .......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endselect.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Select Single * from vbfa into ws_vbeln*&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where vbeln = fs_vbeln&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and  vbfa-vbtrp_n = 'A' .......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both the case you will get one record only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Anomitro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 09:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upto/m-p/3824076#M919638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T09:41:06Z</dc:date>
    </item>
  </channel>
</rss>

