on 08-18-2010 9:08 AM
Hello everyone.
I'm using aggregation in WD ALV. Does anybody know how to set text in aggregation line in non-numeric fields like "TOTAL:" or something else. Can I set specific aggregation (max value) for one of the numeric fields?
Hi,
I think this will helps you.
*... Configure ALV
wd_this->lr_config = lr_comp_if_alv->get_model( ).
display columns in correct order
lr_column_settings ?= wd_this->lr_config.
lt_column = lr_column_settings->get_columns( ).
loop at lt_column into ls_column.
case ls_column-id.
when 'PRICE'.
aggregate field
call method lr_config->if_salv_wd_field_settings~get_field
exporting
fieldname = 'PRICE'
receiving
value = lr_field_amnt.
create aggregate rule as total
call method lr_field_amnt->if_salv_wd_aggr~create_aggr_rule
exporting
aggregation_type = if_salv_wd_c_aggregation=>aggrtype_total
receiving
value = lv_aggr_rule.
endcase.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem. Does anybody know?
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 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.