on 02-02-2007 10:19 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.