Application Development and Automation 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: 
Read only

Getting Subtotal in oops ALV

Former Member
0 Likes
526

Hi All,

Actually I am currently working with a OOPS ALV and caught into how to calculate subtotal in OOPS ALV .

How to use the Method GET_SUBTOTALS of Class CL_GUI_ALV_GRID, or any other solutions.If u have any sample code for this plz send it to me. Is ALV also have any funtionality like at new.

Thnks for help.

Regards.

Anmol.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
458

Hi Anmol,

declare a sort internal table and within that, you pass the field for which you want sub total and set SUB_TOT = 'X'.

and pass this internal table to the method.

Thanks,

Srini.

Hi All,

Actually I am currently working with a OOPS ALV and caught into how to calculate subtotal in OOPS ALV .

How to use the Method GET_SUBTOTALS of Class CL_GUI_ALV_GRID, or any other solutions.If u have any sample code for this plz send it to me. Is ALV also have any funtionality like at new.

Thnks for help.

Regards.

Anmol.

2 REPLIES 2
Read only

Former Member
0 Likes
458

Hi Anmol,

Kindly search on SCN, there are some nice example demonstrating this.

Regards

Abhii

Read only

Former Member
0 Likes
459

Hi Anmol,

declare a sort internal table and within that, you pass the field for which you want sub total and set SUB_TOT = 'X'.

and pass this internal table to the method.

Thanks,

Srini.