cancel
Showing results for 
Search instead for 
Did you mean: 

ALV not showing all the rows! Please help!

gopalkrishna_baliga
Participant
0 Kudos

Hi Experts,

I have webdynpro ALV report and I am using SALV_WD_TABLE as the reusable component. In component controller's WDDOINIT I have written the code for pulling teh data from R/3 table and binding it to ALV table.

In the view's WDDOMODIFYVIEW event I have written the following code to get subtotal and grand total of Qty column based on product column.

I have coded like this:

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 PRODUCT

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 ).

It is working now but my ALV table is not showing all the rows. I have 6 products and it is showing from product 2. But it is calculating grand total and subtotal correctly. I am not able to see the first product row and subtotal for that. Even if I click on the ^ icon in the ALV table below it is not showing all the rows.

What could be the problem?

Please help

Thanks

Gopal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

did you somehow manage to set the "first visible row" property on table object

to 2. Only thing I can think of that could cause this effect.

Cheers

Phil