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

Regarding subtotal

Former Member
0 Likes
493

hai,

I have three fields in my alv grid display namely empid, empname and count .Depending upon that count field

i have to do the subtotal.for that i did the subtotal but my problem is i have to hide the values of that count field but my o/p value i.e subtotal value has to come in output.if anyone knows the solution pls tell me the solution as soon as possible.

With Regards,

R.Dhineshraj.

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
458

Hi,

Just check for parameter totals_only in slis_layout_alv if using REUSE_ALV_GRID_DISPLAY.

Double click from report program on slis_layout_alv and then double click in slis_layout_alv_spec and then click slis_layout_alv_spec1.

Here you can check the section for Sums and use totals_only(1) type c, " show only totals.

Have a look at it.

Hope this helps you.

Thanks & Regards,

Tarun

3 REPLIES 3
Read only

Former Member
0 Likes
458
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
459

Hi,

Just check for parameter totals_only in slis_layout_alv if using REUSE_ALV_GRID_DISPLAY.

Double click from report program on slis_layout_alv and then double click in slis_layout_alv_spec and then click slis_layout_alv_spec1.

Here you can check the section for Sums and use totals_only(1) type c, " show only totals.

Have a look at it.

Hope this helps you.

Thanks & Regards,

Tarun

Read only

Former Member
0 Likes
458

Hiu2026.

To display sub totals u have to use u2018do_sumu2019 fields in field catalog.

For this u have to build sort tab and I this sort tab u have to specify based on which fields u have to display subtotal. And pass this sort tab in ALV FM.