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: 

exclude rows for total summation ?

former_member186143
Active Contributor
0 Kudos

is it possible to exclude rows from the totalization process with cl_gui_alv_grid

or if not possible to write a footer which can be set to the same alignment as the alv fields on the screen ??

kind regards

arthur

1 ACCEPTED SOLUTION

Former Member
0 Kudos

if you want to exclude the total line then in layout use this..

data : wa_layout type LVC_S_LAYO.

wa_layout-NO_TOTLINE = 'X'.

If you want to remove the total option for NUMC fields , then

wa_layout-NUMC_TOTAL = 'X'.

Message was edited by:

Chandrasekhar Jagarlamudi

3 REPLIES 3

Former Member
0 Kudos

if you want to exclude the total line then in layout use this..

data : wa_layout type LVC_S_LAYO.

wa_layout-NO_TOTLINE = 'X'.

If you want to remove the total option for NUMC fields , then

wa_layout-NUMC_TOTAL = 'X'.

Message was edited by:

Chandrasekhar Jagarlamudi

0 Kudos

nop, I want to exlude certain rows that meet certain conditions to be summed into the grandtotal for a certain column

so I make subtotals for instance of declared hours I have

order1 10

order2 20

order3 5

Subtotal 35

then I want to add a 2 rows underneath with the scheduled and available hours

scheduled 50

available 15 (sheduled minus subtotal of worked which can be calculated in abap before output)

but I don't want to subtotal or grandtotal those rows since the value

100 hours makes no point

former_member186143
Active Contributor
0 Kudos

to old have to close down