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

ALV -- Do Sum ?

Former Member
0 Likes
824

Hi experts,

In my ALV output, I have done sub-total for all the fields using int_FCAT-do_sum = 'X' in field catalogue. I dont want the values to be displayed in output. I need to display only the total sum values at the end. How to hide the values in the column other than sum values at the end in ALV?

For e.g if the alv is shown as below:

1 12 1

2 10 1

3 20 1

-


6 42 3

-


2 01 1

3 05 3

-


5 06 4

In this above output how to hide the values in column 1 that is how to hide the values 1,2,3 in and how to hide the values in 2 & 3. But I need to display the subtotal values 6 & 5 at the end.

Regards,

Sakthi

Edited by: Sakthi Saravanan C on Jan 11, 2009 1:23 PM

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
684

Hi,

Use 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.

Hope this helps you.

Thanks & Regards,

Tarun Gambhir

5 REPLIES 5
Read only

Former Member
0 Likes
684

This message was moderated.

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
685

Hi,

Use 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.

Hope this helps you.

Thanks & Regards,

Tarun Gambhir

Read only

Former Member
0 Likes
684

you can do one thing

insted of writing FCAT-do_sum = 'X' , you can write the logic to do the sum of your column

and then append that sum atyour internal table,

Read only

Former Member
0 Likes
684
Read only

Former Member
0 Likes
684

Problem solved thank you