Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Group an internal table by customer group, billing doc, and material group2.

Former Member
0 Kudos

Hi experts. I just want to ask your logic behind this problem on how to do it in ABAP. I am just new in ABAP and i need this as a requirement for my report.
For example I have an internal table consisting the ff structure.
SO - Customer - Materialno - Materialgroup2 - Liters

001 - James - 1 - GroupA - 5
001 - James - 2 - GroupA - 10
001 - James - 3 - GroupB - 20
002 - John - 2 - GroupA - 10
002 - John - 3 - GroupA - 10
002 - John - 4 - GroupB - 20
002 - John - 5 - GroupB - 5.


I need to add it by customer, billing doc, and by their material group2. Now the final output of the internal table should be like this.

SO - Customer - MaterialGroup2 - Liters
001 - James - GroupA - 15
001 - James - GroupB - 20
002 - John - GroupA - 20.
002 - John - GroupB - 25.

1 ACCEPTED SOLUTION
1 REPLY 1