<?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: ALV OOps report- getting data from two tables and adding issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530602#M1263572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is very straight forward, loop one table and read the other table and sum the net value. populate the final table with the total value , other details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End of your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2009 14:24:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-22T14:24:44Z</dc:date>
    <item>
      <title>ALV OOps report- getting data from two tables and adding issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530596#M1263566</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;This is sales employee performance report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to select all the fields from two tables based on user input ie VKorg, sales employee .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one field callled " Net sales"in both the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on sales employee number, i need to add that net sales which i get from two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to generate single report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give some inputs reg. the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea is select all the data from both tables using join statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530596#M1263566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T14:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOps report- getting data from two tables and adding issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530597#M1263567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;can u just provide the table name&lt;/P&gt;&lt;P&gt;i guess VBAK and VBAP&lt;/P&gt;&lt;P&gt;if it is the case&lt;/P&gt;&lt;P&gt;in both table same amount will be there i guess&lt;/P&gt;&lt;P&gt;because one is  header and another is item&lt;/P&gt;&lt;P&gt;in case if the table is different&lt;/P&gt;&lt;P&gt;just provide the table&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;s.janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530597#M1263567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T14:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOps report- getting data from two tables and adding issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530598#M1263568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have different names for that field, Based on employee number of one table read the other table and sum it and populate another table, use this table for ALV display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530598#M1263568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOps report- getting data from two tables and adding issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530599#M1263569</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;This is LIS generated tables (custom defined tables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like S006/S002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530599#M1263569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T14:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOps report- getting data from two tables and adding issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530600#M1263570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay Babu Dudla  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both tables..only employee number have different field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when ever employee name is same in both field..it has to add netsales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you provide some sudo code or some link for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530600#M1263570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T14:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOps report- getting data from two tables and adding issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530601#M1263571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select a~net&lt;/P&gt;&lt;P&gt;          b~net1&lt;/P&gt;&lt;P&gt;from s006 as a join s007 as b &lt;/P&gt;&lt;P&gt;into table itab &lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;vkorg = b&lt;/SUB&gt;vkorg&lt;/P&gt;&lt;P&gt;where a~vkorg = inout-vkorg&lt;/P&gt;&lt;P&gt;and (depends)employee = employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you can collect the net quantity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530601#M1263571</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-04-22T14:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOps report- getting data from two tables and adding issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530602#M1263572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is very straight forward, loop one table and read the other table and sum the net value. populate the final table with the total value , other details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End of your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530602#M1263572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T14:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOps report- getting data from two tables and adding issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530603#M1263573</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 have written like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from S002 as a join S006 as b&lt;/P&gt;&lt;P&gt;    into table ME-&amp;gt;SS002_RAW[] &lt;/P&gt;&lt;P&gt;    where vkorg in me-&amp;gt;select_parameters-&amp;gt;SO_VKORG[] = vkorg in me-&amp;gt;select_parameters-&amp;gt;SO_VKORG[]&lt;/P&gt;&lt;P&gt;          and ZZSLSEMP01 in me-&amp;gt;select_parameters-&amp;gt;SO_so_empl[] = ZZSLSEMP02 in me-&amp;gt;select_parameters-&amp;gt;SO_so_empl[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i do like that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incorrect structure of FROM clause . . . .	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you give some idea on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Raja on Apr 22, 2009 11:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-report-getting-data-from-two-tables-and-adding-issue/m-p/5530603#M1263573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T14:33:16Z</dc:date>
    </item>
  </channel>
</rss>

