cancel
Showing results for 
Search instead for 
Did you mean: 

regarding sum function of alv couldn't work

Former Member
0 Kudos

hi all:

I use the following code to sum up values of DMBTR, the code is put in method WDDOINIT,

when alv has no items at the very begining and insert some items to it, but when press

enter, there would be an error says Adapter error in &VIEW_ELEMENT_TYPE& "BUKRS" of view

"SALV_WD_TABLE.VIEW_TABLE": CellVariant ID "TOTAL" does not exist

do you have any idea to solve it ?

thank you very much

*******************************************************************

data: lr_sum_amnt TYPE REF TO CL_SALV_WD_FIELD,

lv_aggr_rule type ref to CL_SALV_WD_AGGR_RULE.

CALL METHOD lr_config->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD

EXPORTING

FIELDNAME = 'DMBTR'

RECEIVING

VALUE = lr_sum_amnt.

CALL METHOD lr_sum_amnt->IF_SALV_WD_AGGR~CREATE_AGGR_RULE

EXPORTING

AGGREGATION_TYPE = IF_SALV_WD_C_AGGREGATION=>AGGRTYPE_TOTAL

RECEIVING

VALUE = lv_aggr_rule.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

It doesn't sound like something you can fix. You should probably consider opening a support ticket. I search for notes and the closest was 1359149 - but that seems to be the opposite problem.

Answers (0)