<?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 join table SUM using for all entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482009#M1556406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;            Will anyone pls. tell me what is the problem in this query, it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT aufnr SUM( menge )&lt;/P&gt;&lt;P&gt;     INTO CORRESPONDING FIELDS OF TABLE itab_aufnr&lt;/P&gt;&lt;P&gt;     FROM mkpf&lt;/P&gt;&lt;P&gt;     INNER JOIN mseg ON mseg&lt;SUB&gt;mblnr EQ mkpf&lt;/SUB&gt;mblnr AND mkpf&lt;SUB&gt;mjahr EQ mseg&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN itab_rework&lt;/P&gt;&lt;P&gt;      WHERE mseg~aufnr = itab_rework-aufnr&lt;/P&gt;&lt;P&gt;      GROUP BY aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please search for available information before asking, "it's not working" is not a proper error description.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Dec 6, 2010 9:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Dec 2010 07:39:18 GMT</pubDate>
    <dc:creator>muhammad_sohail</dc:creator>
    <dc:date>2010-12-06T07:39:18Z</dc:date>
    <item>
      <title>join table SUM using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482009#M1556406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;            Will anyone pls. tell me what is the problem in this query, it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT aufnr SUM( menge )&lt;/P&gt;&lt;P&gt;     INTO CORRESPONDING FIELDS OF TABLE itab_aufnr&lt;/P&gt;&lt;P&gt;     FROM mkpf&lt;/P&gt;&lt;P&gt;     INNER JOIN mseg ON mseg&lt;SUB&gt;mblnr EQ mkpf&lt;/SUB&gt;mblnr AND mkpf&lt;SUB&gt;mjahr EQ mseg&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN itab_rework&lt;/P&gt;&lt;P&gt;      WHERE mseg~aufnr = itab_rework-aufnr&lt;/P&gt;&lt;P&gt;      GROUP BY aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please search for available information before asking, "it's not working" is not a proper error description.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Dec 6, 2010 9:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 07:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482009#M1556406</guid>
      <dc:creator>muhammad_sohail</dc:creator>
      <dc:date>2010-12-06T07:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: join table SUM using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482010#M1556407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your syntax check will clearly explain the problem. Aggregate functions are not allowed with for all entries.&lt;/P&gt;&lt;P&gt;Please check yourself before posting because the syntax message itself explains thats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 07:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482010#M1556407</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-12-06T07:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: join table SUM using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482011#M1556408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's means that I cannot use aggregate functions with for all entries, but I want to take the sum() on the basis of aufnr. When I have used it in loop it is taking so much time to execute.&lt;/P&gt;&lt;P&gt;How I should solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 07:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482011#M1556408</guid>
      <dc:creator>muhammad_sohail</dc:creator>
      <dc:date>2010-12-06T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: join table SUM using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482012#M1556409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I have used it in loop it is taking so much time to execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That depends upon the amount of data you are processing and the set of codes written inside the loop. For sum you have to use collect statement or a SUM statement inside a control break statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 07:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-table-sum-using-for-all-entries/m-p/7482012#M1556409</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-12-06T07:59:07Z</dc:date>
    </item>
  </channel>
</rss>

