title: Aggregating rows
body: <p>In sap I have a table, there are rows with the same name but with different quantity.
  I want to  summarize this rows like this:</p>
  
  <pre><code>    SELECT c~aufnr
             p~matnr p~bdter p~meins p~baugr p~dbskz p~erfmg p~aufnr
             f~maktx
         INTO CORRESPONDING FIELDS OF TABLE it_tab
         FROM  afpo AS c
           INNER JOIN resb AS p ON c~aufnr = p~aufnr
           INNER JOIN makt AS f ON p~matnr = f~matnr.             
  
      LOOP AT it_tab INTO fs_tab.
         COLLECT fs_tab INTO it_tab_collected.
      ENDLOOP.
      it_tab = it_tab_collected.
  </code></pre>
  
  <p>But in this case it sums only absolutelly identically rows. I need to sum up rows only with the same name. </p>
  
  <p>How can I achieve this?</p>
  
  <p>Regards,
  Alexander.</p>