Skip to Content
0
Mar 25, 2009 at 03:36 PM

A Problem with a simple SALV Aggregation example.

869 Views

Hi. I am running the following code:

TRY.

lr_aggr = lr_aggrs->get_aggregation( columnname = 'SEATSMAX' ).

CATCH cx_salv_not_found INTO gr_error.

ENDTRY.

TRY.

lr_aggr->set( aggregation = if_salv_c_aggregation=>maximum ).

CATCH cx_salv_data_error INTO gr_error.

ENDTRY.

The lr_aggr->set( aggregation = if_salv_c_aggregation=>maximum ) is failing because I am not getting a good reference from the lr_aggr = lr_aggrs->get_aggregation( columnname = 'SEATSMAX' ) method above. All of my prior references are ok because I am doing other methods against the same ALV grid, but for some reason, the AGGREGATION is not working.

Can anyone see anything that I might be doing wrong?

Thank you!

Andy