<?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: hi all in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705370#M626759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this sample..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single a&lt;SUB&gt;vbeln b&lt;/SUB&gt;kunnr &lt;/P&gt;&lt;P&gt;into (lips-vbeln, vbak-kunnr) &lt;/P&gt;&lt;P&gt;from lips as a&lt;/P&gt;&lt;P&gt;inner join vbak as b &lt;/P&gt;&lt;P&gt;on ( b&lt;SUB&gt;vbeln eq a&lt;/SUB&gt;vgbel ) &lt;/P&gt;&lt;P&gt;where a&lt;SUB&gt;vbeln eq b&lt;/SUB&gt;vbeln. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 08:42:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-13T08:42:12Z</dc:date>
    <item>
      <title>hi all</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705367#M626756</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;my question is :  is it possible to have  'inner join' with 'select single' statement???&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705367#M626756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: hi all</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705368#M626757</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;yes u can&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read data from more than one database table in a single SELECT statement by using inner or left outer joins in the FROM clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The disadvantage of using joins is that redundant data is read from the hierarchically-superior table if there is a 1:N relationship between the outer and inner tables. This can considerably increase the amount of data transferred from the database to the application server. Therefore, when you program a join, you should ensure that the SELECT clause contains a list of only the columns that you really need. Furthermore, joins bypass the table buffer and read directly from the database. For this reason, you should use an ABAP Dictionary view instead of a join if you only want to read the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The runtime of a join statement is heavily dependent on the database optimizer, especially when it contains more than two database tables. However, joins are nearly always quicker than using nested SELECT statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705368#M626757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: hi all</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705369#M626758</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;YES this should not be a problem, make sure to give the WHERE clause in a such a way that you donot read more than one record from Database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705369#M626758</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-13T08:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: hi all</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705370#M626759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this sample..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single a&lt;SUB&gt;vbeln b&lt;/SUB&gt;kunnr &lt;/P&gt;&lt;P&gt;into (lips-vbeln, vbak-kunnr) &lt;/P&gt;&lt;P&gt;from lips as a&lt;/P&gt;&lt;P&gt;inner join vbak as b &lt;/P&gt;&lt;P&gt;on ( b&lt;SUB&gt;vbeln eq a&lt;/SUB&gt;vgbel ) &lt;/P&gt;&lt;P&gt;where a&lt;SUB&gt;vbeln eq b&lt;/SUB&gt;vbeln. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705370#M626759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: hi all</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705371#M626760</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;Yes,it is Possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls Check the Following Code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: likp,lips,vbak.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT SINGLE lips&lt;SUB&gt;vbeln vbak&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;INNER JOIN vbak&lt;/P&gt;&lt;P&gt;ON ( vbak&lt;SUB&gt;vbeln EQ lips&lt;/SUB&gt;vgbel )&lt;/P&gt;&lt;P&gt;INTO (lips-vbeln,vbak-kunnr)&lt;/P&gt;&lt;P&gt;WHERE lips~vbeln EQ likp-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705371#M626760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: hi all</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705372#M626761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample code...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_cityfr TYPE spfli-cityfrom, &lt;/P&gt;&lt;P&gt;            p_cityto TYPE spfli-cityto. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa, &lt;/P&gt;&lt;P&gt;         fldate TYPE sflight-fldate, &lt;/P&gt;&lt;P&gt;         carrname TYPE scarr-carrname, &lt;/P&gt;&lt;P&gt;         connid   TYPE spfli-connid, &lt;/P&gt;&lt;P&gt;       END OF wa. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE SORTED TABLE OF wa &lt;/P&gt;&lt;P&gt;               WITH UNIQUE KEY fldate carrname connid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT c&lt;SUB&gt;carrname p&lt;/SUB&gt;connid f~fldate &lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF TABLE itab &lt;/P&gt;&lt;P&gt;       FROM ( ( scarr AS c &lt;/P&gt;&lt;P&gt;         INNER JOIN spfli AS p ON p&lt;SUB&gt;carrid   = c&lt;/SUB&gt;carrid &lt;/P&gt;&lt;P&gt;                              AND p~cityfrom = p_cityfr &lt;/P&gt;&lt;P&gt;                              AND p~cityto   = p_cityto ) &lt;/P&gt;&lt;P&gt;         INNER JOIN sflight AS f ON f&lt;SUB&gt;carrid = p&lt;/SUB&gt;carrid &lt;/P&gt;&lt;P&gt;                                AND f&lt;SUB&gt;connid = p&lt;/SUB&gt;connid ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa. &lt;/P&gt;&lt;P&gt;  WRITE: / wa-fldate, wa-carrname, wa-connid. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705372#M626761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: hi all</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705373#M626762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; U can use select single with Inner join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetch data by joining KNVV &amp;amp; KNA1 and based on selection criteria&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  SELECT single a&lt;SUB&gt;kunnr b&lt;/SUB&gt;vkorg FROM kna1 AS a&lt;/P&gt;&lt;P&gt;  INNER JOIN knvv AS b ON a&lt;SUB&gt;kunnr = b&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;  INTO corresponding fields of wa_knvv&lt;/P&gt;&lt;P&gt;  WHERE b~vkorg = p_vkorg.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LIJO JOHN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all/m-p/2705373#M626762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:48:16Z</dc:date>
    </item>
  </channel>
</rss>

