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: 

ALV Grid- text at the end of sort group

Former Member
0 Kudos

Hi,

I am using an ALV grid to display a report. At the end of one field I want some text and some value (which is calculated in the program) to be displayed instead of the subtotal/totals. I have used sort in the program. However I am not aware of how to display my own text 'total' and precalculated value instead of the sub-totals, totals.

Helllp....

regards,

Poonam

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

This is applicable for REUSE_ALV_LIST_DISPLAY and REUSE_ALV_GRID_DISPLAY only.


is_layout-totals_text = 'My Total Text'.
is_layout-subtotals_text = 'My Subtotal Text'.

Regards,

Subramanian V.

6 REPLIES 6

Former Member
0 Kudos

Hi,

This is applicable for REUSE_ALV_LIST_DISPLAY and REUSE_ALV_GRID_DISPLAY only.


is_layout-totals_text = 'My Total Text'.
is_layout-subtotals_text = 'My Subtotal Text'.

Regards,

Subramanian V.

0 Kudos

Hi Subramanian,

I was expecting your prompt reply

Ive tried this but somehow it isnt working.

Moreover, how do I suppress that column subtotal which is appearing? I want my own subtotal there!

Regards,

poonam

0 Kudos

Look at this program <b>BCALV_TEST_LIST</b>.

Regards,

Subramanian V.

0 Kudos

Any idea how to use AFTER_LINE_OUTPUT event for this??

Ive converted the Grid to a list, attached a form name to the event and put in a write statement in the form. Now this one gives me a line after each line of the list. But i need that only at the end of a sort group just like the subtotals line.

Regards,

Poonam

0 Kudos

Wasn't the program , I had mentioned earlier useful ? When I ran that progrram <b>BCALV_TEST_LIST</b>, it showed my own subtotal text and total text.

Correct me if I am wrong, you want a subtotal text below a particular column ? If so is the case, then I am afraid, that is not possible, unless with some weird and complex manipulation.

If you just want a subtotal/total text, then this is possible using the subtotal_text and totals_text parameters in the layout.

Regards,

Subramanian V.

0 Kudos

I have finally overcome this problem by just adding another line in the final internal table itself and then coloring it.

Thanks for ur input.