cancel
Showing results for 
Search instead for 
Did you mean: 

Scrollup and down icons not working in ALV. Please help!

gopalkrishna_baliga
Participant
0 Kudos

Hi Experts,

I have a ALV webdynpro ABAP report. I have to show only fixed no of rows.

But the scrollup and scroll down icons in the ALV (^) not working when I use subtotal (aggregation).

Interestingly scrolling works perfectly if I remove my subtotal code.

My subtotal code is like this:

*...Sort PRODUCT and group it for subtotal

*lr_field_settings ?= l_value.

*lr_field = lr_field_settings->get_field( 'PRODUCT' ).

*lr_field->if_salv_wd_sort~set_group_aggregation_allowed( ABAP_TRUE ).

*lr_field->if_salv_wd_sort~create_sort_rule( ).

*l_sortrule = lr_field->if_salv_wd_sort~GET_SORT_RULE( ).

*l_sortrule->set_sort_order( if_salv_wd_c_sort=>sort_order_ascending ).

*l_sortrule->set_group_aggregation( ABAP_TRUE ).

*

**...Aggregate Field QTY

*lr_field = lr_field_settings->get_field( 'QTY' ).

*lr_field->if_salv_wd_aggr~create_aggr_rule( ).

*lr_aggr_rule = lr_field->if_salv_wd_aggr~get_aggr_rule( ).

*lr_aggr_rule->set_aggregation_type( if_salv_wd_c_aggregation=>aggrtype_total ).

*

**lr_field_settings ?= l_value.

**lr_field_settings->set_group_aggr_displayed( abap_true ).

One more thing, In addition to subtotal it also shows grand total in the end. Is this the normal feature or my code for subtotal is wrong?

So what could be the problem?

Any sample code will be really helpfull. Please help!

Thanks

Gopal

Message was edited by:

gopalkrishna baliga

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member215843
Active Participant
0 Kudos

Hi Gopal,

Please try to build the effect you commented out in the settings of the ALV. You can save it as a special layout. If scrolling works then, you should check which part of your coding leads to the problem and possibly correct it.

If this is not possible, just create an OSS message.

Ciao, Regina