12-31-2004 10:38 AM
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
12-31-2004 10:46 AM
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.
12-31-2004 10:46 AM
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.
12-31-2004 10:50 AM
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
12-31-2004 10:53 AM
Look at this program <b>BCALV_TEST_LIST</b>.
Regards,
Subramanian V.
01-03-2005 10:40 AM
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
01-03-2005 10:51 AM
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.
01-05-2005 8:32 AM
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.