<?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 with join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353773#M519842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either use inner join, or get the data into the internal tables by using FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 23:31:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T23:31:50Z</dc:date>
    <item>
      <title>select with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353772#M519841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello abapers, &lt;/P&gt;&lt;P&gt;below is my scenario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract each entry from DBtab1 for FLD1   in DBtab2-FLD1, and FLD2 in DBtab3-FLD2     &lt;/P&gt;&lt;P&gt;sum(FLD3) by FLD2 into&lt;/P&gt;&lt;P&gt; internal tab  ITAB (fields FLD2, FLD3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thought something like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select FLD1 FLD2 sum( FLD3)  into ITAB from DBtab1 where FLD1 = DBtab2-FLD1  and FLD2 = DBtab3-FLD2&lt;/P&gt;&lt;P&gt;GROUP by   FLD2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know this doesnot work, because fld1 should check each and every entry in DBtab2 and same is the case with DBtab3,&lt;/P&gt;&lt;P&gt;i should be using inner or outer join, can some one help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 23:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353772#M519841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T23:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: select with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353773#M519842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either use inner join, or get the data into the internal tables by using FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 23:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353773#M519842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T23:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: select with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353774#M519843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to have SAP write the code for you use the quick viewer to build a join and generate the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run the quuey. Do a system &amp;gt; statuson the result and lift the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick viewer is either System &amp;gt;services &amp;gt;quick viewer or systemt &amp;gt;quick viewer can't remember which from the session manager transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also to view the documentation in the abap editor type the word join and hit F1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 23:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353774#M519843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T23:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: select with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353775#M519844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the example code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr shkzg meins sum( fklmg )&lt;/P&gt;&lt;P&gt;      into table i_billed&lt;/P&gt;&lt;P&gt;      from ( vbrk as k INNER JOIN vbrp as p on k&lt;SUB&gt;vbeln = p&lt;/SUB&gt;vbeln )&lt;/P&gt;&lt;P&gt;      where ( vbtyp = 'M'           or   "invoice&lt;/P&gt;&lt;P&gt;              vbtyp = 'N'  )        and  "invoice cancellation&lt;/P&gt;&lt;P&gt;              k~fkdat in so_vdatu   and&lt;/P&gt;&lt;P&gt;              matnr in so_matnr     and&lt;/P&gt;&lt;P&gt;              p~werks = p_werks&lt;/P&gt;&lt;P&gt;  group by matnr shkzg meins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 00:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353775#M519844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T00:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: select with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353776#M519845</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;Its better if u use Inner Join or For All entries.......to join the tables.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;madhuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 02:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353776#M519845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T02:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: select with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353777#M519846</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;Its better if u use Inner Join or For All entries.......to join the tables.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;madhuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 02:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join/m-p/2353777#M519846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T02:18:24Z</dc:date>
    </item>
  </channel>
</rss>

