<?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 difference between the selects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105920#M104766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;         appending table cvbfa&lt;/P&gt;&lt;P&gt;         from vbfa&lt;/P&gt;&lt;P&gt;              where vbelv = :vs_vbelv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select *&lt;/P&gt;&lt;P&gt;         appending table cvbfa&lt;/P&gt;&lt;P&gt;         from vbfa&lt;/P&gt;&lt;P&gt;              where vbelv = vs_vbelv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2005 15:21:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-25T15:21:50Z</dc:date>
    <item>
      <title>difference between the selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105920#M104766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;         appending table cvbfa&lt;/P&gt;&lt;P&gt;         from vbfa&lt;/P&gt;&lt;P&gt;              where vbelv = :vs_vbelv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select *&lt;/P&gt;&lt;P&gt;         appending table cvbfa&lt;/P&gt;&lt;P&gt;         from vbfa&lt;/P&gt;&lt;P&gt;              where vbelv = vs_vbelv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 15:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105920#M104766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: difference between the selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105921#M104767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the first one may be "Native SQL" rather than "Open SQL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.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;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 15:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105921#M104767</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-25T15:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: difference between the selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105922#M104768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second statement doesn't seem to me a Native SQL statement!! It's just another (lesser used) way of writing the first statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data itab type table of spfli.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : itab type table of spfli.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are both equivalent statements. However, I'm sure that you agree that the colon operator is generally used whn multiple statements need to be &amp;lt;i&amp;gt;chained&amp;lt;/i&amp;gt; together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab1 type table of spfli,&lt;/P&gt;&lt;P&gt;       itab2 type table of sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is certainly the more preferred way of declaring data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, in your case, you could actually have written something like - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data vs_vbelv type vbelv.
data vb_vbelv type vbelv.
data cvbfa type table of vbfa.

select *
appending table cvbfa
from vbfa
where vbelv = : vs_vbelv ,
                vb_vbelv .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT statement above would otherwise have to be written as -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select *
appending table cvbfa
from vbfa
where vbelv = vs_vbelv.

select *
appending table cvbfa
from vbfa
where vbelv = vb_vbelv .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of writing two different select statements, you write only one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that clears the doubt you had.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 16:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105922#M104768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: difference between the selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105923#M104769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow,  I never knew that you could do that with a select statement,  I guess "ranges" or "select-options", made this type of coding obselete?  I've never seen this before.  Good one, Anand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 16:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105923#M104769</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-25T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: difference between the selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105924#M104770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rich,&lt;/P&gt;&lt;P&gt;i believe we could get away from using ranges like this too.&lt;/P&gt;&lt;P&gt;select * from xxxx into yyyy where&lt;/P&gt;&lt;P&gt; xxxx-zzzz in ( const1 , const2, ....constn ).&lt;/P&gt;&lt;P&gt;thanks guys for all the answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 16:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105924#M104770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: difference between the selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105925#M104771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Honestly, I thought I had &amp;lt;i&amp;gt;answered&amp;lt;/i&amp;gt; this question. This post is still marked as 'unanswered'. Could you please close this thread by either&lt;/P&gt;&lt;P&gt;1) rewarding 10 points to an answer&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2) choosing the option "Solved it on my own" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 04:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-the-selects/m-p/1105925#M104771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T04:15:37Z</dc:date>
    </item>
  </channel>
</rss>

