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.
Showing results for 
Search instead for 
Did you mean: 

ABAP-SALV Collect statement

Former Member
0 Kudos


I have a header and an item table which contains customer records in the header table and line items in the item table . A Customer has many billing document and hence there are a lot line items with the same material.

I want to use the collect statement to group all the materials and have one line item for one type of material and want to sum all the quantities of those materials and the price of the material.

suggest the best solution for the particular scenario.

thank you.


Former Member
0 Kudos

Hi Rahul,

You can consider using ABAP Tree Control feature if you are planning to use ABAP Dialog Programing. It will be very elegant and will provide you with a nice UI. Have a look at the demo codes for the functionality.

Use the Transaction DWDM to get all the control examples. You can get more examples in SLIS Package.

If you try using ABAP Web Dynpro , then also you can design it in the way you want.

Hope this will help.