<?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>Question Re: Problem Select sum with group by. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaa-p/12184581#M4557499</link>
    <description>&lt;P&gt;I rename sum( menge ) as sum.still not work. So,I use table type.and it's work.&lt;/P&gt;&lt;P&gt;and second problem, you are right.  when I insert UoM =&amp;gt; PC, it's not appears in printout. when i insert UoM =&amp;gt; ST. in smartform appears PC.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2020 05:33:39 GMT</pubDate>
    <dc:creator>former_member635273</dc:creator>
    <dc:date>2020-02-08T05:33:39Z</dc:date>
    <item>
      <title>Problem Select sum with group by.</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaq-p/12184579</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;SELECT SUM( menge ) brpme FROM zmtc_item INTO CORRESPONDING FIELDS OF TABLE it_tot
  WHERE ebeln = p_ebeln  GROUP BY brpme.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;the problem is value return 0 in smartforms and UoM (M and ***) it should be (M and PC). like pic sap2.jpg&lt;/P&gt;
  &lt;P&gt;This is when i debug.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1775998-sap3.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;and this is in smartforms&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1775997-sap2.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 03:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaq-p/12184579</guid>
      <dc:creator>former_member635273</dc:creator>
      <dc:date>2020-02-08T03:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Select sum with group by.</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaa-p/12184580#M4557498</link>
      <description>&lt;P&gt;You have two problems:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;When using „into corresponding fields“, the column names need to be identical. This is not the case for „sum( menge )“, as it is a dynamic column that will be named by the dbms or ABAP as probably „SUMMENGE“, or not get a name assigned at all&lt;BR /&gt;=&amp;gt; rename in your select statement this column: „sum( menge) as menge“&lt;BR /&gt;Or use a table type that matches your selection fields in order and type, and don’t use into corresponding fields&lt;/LI&gt;&lt;LI&gt;I assume the translation for PC is missing, since this is only a problem on the printout&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sat, 08 Feb 2020 04:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaa-p/12184580#M4557498</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-02-08T04:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Select sum with group by.</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaa-p/12184581#M4557499</link>
      <description>&lt;P&gt;I rename sum( menge ) as sum.still not work. So,I use table type.and it's work.&lt;/P&gt;&lt;P&gt;and second problem, you are right.  when I insert UoM =&amp;gt; PC, it's not appears in printout. when i insert UoM =&amp;gt; ST. in smartform appears PC.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 05:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaa-p/12184581#M4557499</guid>
      <dc:creator>former_member635273</dc:creator>
      <dc:date>2020-02-08T05:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Select sum with group by.</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaa-p/12184582#M4557500</link>
      <description>&lt;P&gt;Sorry for that mistake of mine, of course I meant to write „sum( menge) as menge“, after all you want the column to have the same name so that the „into corresponding fields“ statement works. Sorry for the confusion.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 07:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-select-sum-with-group-by/qaa-p/12184582#M4557500</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-02-08T07:02:34Z</dc:date>
    </item>
  </channel>
</rss>

