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: 

sale order wise - subtotal line - CL_GUI_ALV_GRID

rangerlet_mesee
Participant
0 Kudos
220

Hi,

I would like to achieve in my sale order report...sale order wise summary or subtotal line for each sale order.

What are the methods useful here and can I have an example to achieve it?

Thanks!

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos
197

In your grid define the sales order as a sort field with subtotal and look at generated fieldcatalog and sort with the ALV grid consistency check

Then in your code, use either following methods of CL_GUI_ALV_GRID

  • SET_TABLE_FOR_FIRST_DISPLAY - parameters IT_FIELDCATALOG (fields to sum) and IT_SORT (sort key and level of sub-total)
  • GET_SORT_CRITERIA and SET_SORT_CRITERIA - parameter ET_SORT and IT_SORT
1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos
198

In your grid define the sales order as a sort field with subtotal and look at generated fieldcatalog and sort with the ALV grid consistency check

Then in your code, use either following methods of CL_GUI_ALV_GRID

  • SET_TABLE_FOR_FIRST_DISPLAY - parameters IT_FIELDCATALOG (fields to sum) and IT_SORT (sort key and level of sub-total)
  • GET_SORT_CRITERIA and SET_SORT_CRITERIA - parameter ET_SORT and IT_SORT