Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Club multinple rows into single row in an internal table

$
0
0

Hi Gurus,

 

I have final internal table gt_final like below

 

Material    Batch     Reason     Quantity

503          Batch1    A                100

503          Batch1    A                 200

503          Batch1     Q               85

503          Batch1     Q               75

503          Batch1     B               75

503          Batch1     B               75

 

Here reasons,  A = Unrestricted Stock, Q = Quality Stock, B = Blocked Stock.

 

Here I need to sum the quantites based on the batch and reason, that means I need to display in output like below

gt_final is the final internal table.

 

Material    Batch     Reason     Quantity

503          Batch1    A                 300

503          Batch1    Q                160

503          Batch1    B                150

 

Please guide me on this.

Thanks and Regards,

Muralikrishna Peravali


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>