Skip to Content
0
Former Member
Jan 11, 2008 at 07:31 PM

How to hide fields in ALV grid

1129 Views

Hi,

I want to hide fields in ALV grid and display on total of amount column.

For ex: amount

100

100

-


Total amount- 200

-


In this example i want to show only 200 in my ALV grid.How can i do this?please help me if anyone knows how to hide fields.I am using code like this,

*Total Purchases

clear gs_fieldcat.

gs_fieldcat-fieldname = 'H2BAS'.

gs_fieldcat-ref_tabname = 'tp_summary'.

*gs_fieldcat-no_out = 'X'.

gs_fieldcat-do_sum = 'X'.

but with NO_OUT nothing is displayed including TOTAL at the end, but i want to display total not the fields cotents but still want to use to do_sum.

Thanks in advance.