<?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: Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085752#M433090</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;There are two ways of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using Joins as mentioned earlier by some.&lt;/P&gt;&lt;P&gt;2. Declare two internal tables for the two database tables and populate any one of them. then use FOR ALL ENTRIES in that filled internal table and populate the other internal table from the other database table. Now declare one final internal table and move the data from the two tables into this. Use the final internal table for displaying the records or for reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;naba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 08:34:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-05T08:34:41Z</dc:date>
    <item>
      <title>Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085748#M433086</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; How to select records from two tables?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Sudhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 08:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085748#M433086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085749#M433087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manikam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use joins on two tables if they have any fields in common.&lt;/P&gt;&lt;P&gt;e.g. if we want to select the data from tables VBAK and VBAK then we can write as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT VBAK&lt;SUB&gt;VBELN VBAK&lt;/SUB&gt;AUART VBAP&lt;SUB&gt;POSNR into correspodning fields of table itab from VBAK join VBAP on VBAK&lt;/SUB&gt;VBELN = VBAP~VBELN WHERE&lt;/P&gt;&lt;P&gt;&amp;lt;conditions&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way is to use SELECT ...... FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 08:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085749#M433087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085750#M433088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;manikam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For this you have to use innerjoins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a~mandt&lt;/P&gt;&lt;P&gt;a~vbeln&lt;/P&gt;&lt;P&gt;a~posnr&lt;/P&gt;&lt;P&gt;a~lprio&lt;/P&gt;&lt;P&gt;a~matnr&lt;/P&gt;&lt;P&gt;a~kwmeng&lt;/P&gt;&lt;P&gt;a~vrkme&lt;/P&gt;&lt;P&gt;a~netwr&lt;/P&gt;&lt;P&gt;a~waerk&lt;/P&gt;&lt;P&gt;a~kdmat&lt;/P&gt;&lt;P&gt;a~werks&lt;/P&gt;&lt;P&gt;a~pstyv&lt;/P&gt;&lt;P&gt;a~charg&lt;/P&gt;&lt;P&gt;a~route&lt;/P&gt;&lt;P&gt;u~absta&lt;/P&gt;&lt;P&gt;u~fksta&lt;/P&gt;&lt;P&gt;u~gbsta&lt;/P&gt;&lt;P&gt;u~lfsta&lt;/P&gt;&lt;P&gt;a~posex&lt;/P&gt;&lt;P&gt;a~vgbel&lt;/P&gt;&lt;P&gt;u~besta&lt;/P&gt;&lt;P&gt;v~bsark&lt;/P&gt;&lt;P&gt;v~ihrez&lt;/P&gt;&lt;P&gt;INTO TABLE i_vbap&lt;/P&gt;&lt;P&gt;FROM vbap AS a&lt;/P&gt;&lt;P&gt;INNER JOIN vbup AS u ON u&lt;SUB&gt;vbeln = a&lt;/SUB&gt;vbeln AND u&lt;SUB&gt;posnr = a&lt;/SUB&gt;posnr&lt;/P&gt;&lt;P&gt;INNER JOIN vbkd AS v ON v&lt;SUB&gt;vbeln = a&lt;/SUB&gt;vbeln AND v&lt;SUB&gt;posnr = a&lt;/SUB&gt;posnr&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_vbak&lt;/P&gt;&lt;P&gt;WHERE a~vbeln EQ i_vbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget ot reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 08:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085750#M433088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T08:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085751#M433089</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;u have make use of inner join for selecting records from more than onew table but u have to have atleast one common field in both the tables.&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>Thu, 05 Apr 2007 08:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085751#M433089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085752#M433090</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;There are two ways of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using Joins as mentioned earlier by some.&lt;/P&gt;&lt;P&gt;2. Declare two internal tables for the two database tables and populate any one of them. then use FOR ALL ENTRIES in that filled internal table and populate the other internal table from the other database table. Now declare one final internal table and move the data from the two tables into this. Use the final internal table for displaying the records or for reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;naba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 08:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085752#M433090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T08:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085753#M433091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can select data from two table using the INNER JOIN or OUTER JOIN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 10:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/2085753#M433091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T10:09:32Z</dc:date>
    </item>
  </channel>
</rss>

